POST Orders/AddOrderItem
Request Information
URI Parameters
None.
Body Parameters
OrderItemBinding| Name | Description | Type | Additional information |
|---|---|---|---|
| VariationID | integer |
None. |
|
| Quantity | decimal number |
None. |
|
| Observations |
Customer observations |
string |
String length: inclusive between 0 and 500 |
| ForceNew |
If true, a new orderItem is created even if one with same variation exists |
boolean |
None. |
| OrderID | integer |
None. |
|
| Token | globally unique identifier |
None. |
|
| Lang | string |
None. |
|
| StoreID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"VariationID": 1,
"Quantity": 2.0,
"Observations": "sample string 3",
"ForceNew": true,
"OrderID": 5,
"Token": "102df954-a451-42fb-8412-cf629f5863a2",
"Lang": "sample string 7",
"StoreID": 8
}
application/xml, text/xml
Sample:
<OrderItemBinding xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Binding.Order"> <Lang xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Common.Base">sample string 7</Lang> <StoreID xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Common.Base">8</StoreID> <OrderID xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Common.Order">5</OrderID> <Token xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Common.Order">102df954-a451-42fb-8412-cf629f5863a2</Token> <ForceNew>true</ForceNew> <Observations>sample string 3</Observations> <Quantity>2</Quantity> <VariationID>1</VariationID> </OrderItemBinding>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
OrderItem| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| OrderID | integer |
None. |
|
| Variation | Variation |
None. |
|
| Quantity | decimal number |
None. |
|
| ShippingTime | decimal number |
None. |
|
| Price | PriceBreakdown |
None. |
|
| OriginalPrice | PriceBreakdown |
None. |
|
| AutoAddRemove |
This item is automatically added or removed and cannot be modified by the web front |
boolean |
None. |
| Components | Collection of OrderItemComponent |
None. |
|
| Observations |
Customer observations |
string |
None. |
| CollectionName | string |
None. |
Response Formats
application/json
Sample:
Sample not available.
text/json
Sample:
Sample not available.
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.