POST api/SellerOrder/AddOrderItem
Request Information
URI Parameters
None.
Body Parameters
ReqAddOrderItems| Name | Description | Type | Additional information |
|---|---|---|---|
| OrderId | integer |
None. |
|
| Products | Collection of ProductItems |
None. |
Request Formats
application/json, text/json
Sample:
{
"OrderId": 1,
"Products": [
{
"ProductId": 1,
"Quantity": 2,
"UnitPrice": 3.0
},
{
"ProductId": 1,
"Quantity": 2,
"UnitPrice": 3.0
}
]
}
application/xml, text/xml
Sample:
<ReqAddOrderItems xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NEOWAY.Model.Request">
<OrderId>1</OrderId>
<Products>
<ProductItems>
<ProductId>1</ProductId>
<Quantity>2</Quantity>
<UnitPrice>3</UnitPrice>
</ProductItems>
<ProductItems>
<ProductId>1</ProductId>
<Quantity>2</Quantity>
<UnitPrice>3</UnitPrice>
</ProductItems>
</Products>
</ReqAddOrderItems>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |