POST api/Order
Creates a new order, returns this orders information
Request Information
URI Parameters
None.
Body Parameters
CreateOrderModel for sending in the order: when personal shipping information is left out, billing information will automatically be used as shipping information.
CreateOrderModel| Name | Description | Type | Additional information |
|---|---|---|---|
| BillTo | Person |
Required |
|
| ShipTo | Person |
None. |
|
| ExternalID |
Your personal order reference |
string |
None. |
| SkipEnhancement |
If you don't want this order to be enhanced by us you can set this value to true |
boolean |
None. |
| CallBackURL |
Will be used to send order status callbacks to |
string |
None. |
| Products | Collection of ProductModel |
Required |
Request Formats
application/json
Sample:
Sample not available.
text/json
Sample:
Sample not available.
Response Information
Resource Description
OrderDetailsReturnModel| Name | Description | Type | Additional information |
|---|---|---|---|
| OrderID | integer |
None. |
|
| ExternalID | string |
None. |
|
| Message | string |
None. |
|
| Success | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"OrderID": 1,
"ExternalID": "sample string 2",
"Message": "sample string 3",
"Success": true
}
application/xml, text/xml
Sample:
<OrderDetailsReturnModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <OrderID>1</OrderID> <ExternalID>sample string 2</ExternalID> <Message>sample string 3</Message> <Success>true</Success> </OrderDetailsReturnModel>