POST api/Repair/SubmitPlaceOrder
Request Information
URI Parameters
None.
Body Parameters
SubmitOrderInfoModel| Name | Description | Type | Additional information |
|---|---|---|---|
| MA001 | string |
None. |
|
| MA002 | string |
None. |
|
| MA015 | string |
None. |
|
| MA017 | string |
None. |
|
| RepairId | integer |
None. |
|
| ShopName | string |
None. |
|
| BossName | string |
None. |
|
| Phone | string |
None. |
|
| Address | string |
None. |
|
| Qty | integer |
None. |
|
| Amount | decimal number |
None. |
|
| Note | string |
None. |
|
| OrderProductList | Collection of SubmitOrderProductInfo |
None. |
Request Formats
application/json, text/json
Sample:
{
"MA001": "sample string 1",
"MA002": "sample string 2",
"MA015": "sample string 3",
"MA017": "sample string 4",
"RepairId": 5,
"ShopName": "sample string 6",
"BossName": "sample string 7",
"Phone": "sample string 8",
"Address": "sample string 9",
"Qty": 10,
"Amount": 11.0,
"Note": "sample string 12",
"OrderProductList": [
{
"S_ID": 1,
"MB001": "sample string 2",
"MB002": "sample string 3",
"MB003": "sample string 4",
"MA001": "sample string 5",
"MA002": "sample string 6",
"Unit": "sample string 7",
"Qty": 8,
"Price": 9.0
},
{
"S_ID": 1,
"MB001": "sample string 2",
"MB002": "sample string 3",
"MB003": "sample string 4",
"MA001": "sample string 5",
"MA002": "sample string 6",
"Unit": "sample string 7",
"Qty": 8,
"Price": 9.0
}
]
}
application/xml, text/xml
Sample:
<SubmitOrderInfoModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Model.Agent">
<Address>sample string 9</Address>
<Amount>11</Amount>
<BossName>sample string 7</BossName>
<MA001>sample string 1</MA001>
<MA002>sample string 2</MA002>
<MA015>sample string 3</MA015>
<MA017>sample string 4</MA017>
<Note>sample string 12</Note>
<OrderProductList>
<SubmitOrderProductInfo>
<MA001>sample string 5</MA001>
<MA002>sample string 6</MA002>
<MB001>sample string 2</MB001>
<MB002>sample string 3</MB002>
<MB003>sample string 4</MB003>
<Price>9</Price>
<Qty>8</Qty>
<S_ID>1</S_ID>
<Unit>sample string 7</Unit>
</SubmitOrderProductInfo>
<SubmitOrderProductInfo>
<MA001>sample string 5</MA001>
<MA002>sample string 6</MA002>
<MB001>sample string 2</MB001>
<MB002>sample string 3</MB002>
<MB003>sample string 4</MB003>
<Price>9</Price>
<Qty>8</Qty>
<S_ID>1</S_ID>
<Unit>sample string 7</Unit>
</SubmitOrderProductInfo>
</OrderProductList>
<Phone>sample string 8</Phone>
<Qty>10</Qty>
<RepairId>5</RepairId>
<ShopName>sample string 6</ShopName>
</SubmitOrderInfoModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Code | integer |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Code": 1,
"Message": "sample string 2"
}
application/xml, text/xml
Sample:
<ResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Model.Agent"> <Code>1</Code> <Message>sample string 2</Message> </ResultModel>