POST Order/create
Post data about a new Order.
Request Information
URI Parameters
None.
Body Parameters
Necessary data to create the order.
CreateOrderRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| itemqty | Collection of Pair of string [key] and decimal number [value] |
None. |
|
| warehouseid | decimal number |
None. |
|
| ordertype | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"itemqty": [
{
"Key": "sample string 1",
"Value": 2.1
},
{
"Key": "sample string 1",
"Value": 2.1
}
],
"warehouseid": 1.0,
"ordertype": "sample string 2"
}
application/xml, text/xml
Sample:
<CreateOrderRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sportrick.ApiModel.Requests">
<itemqty xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
<d2p1:KeyValuePairOfstringdouble>
<d2p1:key>sample string 1</d2p1:key>
<d2p1:value>2.1</d2p1:value>
</d2p1:KeyValuePairOfstringdouble>
<d2p1:KeyValuePairOfstringdouble>
<d2p1:key>sample string 1</d2p1:key>
<d2p1:value>2.1</d2p1:value>
</d2p1:KeyValuePairOfstringdouble>
</itemqty>
<ordertype>sample string 2</ordertype>
<warehouseid>1</warehouseid>
</CreateOrderRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Information about the order created, after being processed
Order| Name | Description | Type | Additional information |
|---|---|---|---|
| orderid | string |
None. |
|
| number | integer |
None. |
|
| ordertype | string |
None. |
|
| senddate | date |
None. |
|
| note | string |
None. |
|
| warehouse | Warehouse |
None. |
|
| rows | Collection of OrderRow |
None. |
|
| customer | Customer |
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.