Store api - Create order¶
Endpoint: PurchaseBox¶
- Method:
POST - URL:
/store/reseller/createorder?culture={culture}&apikey={apikey}
Request¶
| Name | Description | Type | Mandatory |
|---|---|---|---|
orderKey |
External order reference | String | Y |
articles |
ResellerCartArticleBase | Object[] | Y |
invoiceAddress |
ResellerInvoiceAddress | Object | Y |
shippingAddress |
ResellerShippingAddress | Object | Y |
"orderKey" can have a maximum of 50 characters and must be unique
ResellerCartArticleBase¶
| Name | Description | Type | Mandatory |
|---|---|---|---|
key |
External order item reference | String | Y |
productId |
Integer | N* | |
outletGuid |
Guid | N* | |
manufacturerId |
Integer | Y | |
attrIds |
String | Y | |
itemIds |
String | Y | |
quantity |
Integer | Y |
"key" can have a maximum of 50 characters
* At least one of the two must be supported
ResellerInvoiceAddress¶
| Name | Description | Type | Mandatory |
|---|---|---|---|
company |
String | Y | |
taxCode |
String | Y | |
city |
String | Y | |
zipCode |
String | Y | |
address1 |
String | Y | |
address2 |
String | Y | |
nationId |
Integer | Y |
nationId => 78 for china
ResellerShippingAddress¶
| Name | Description | Type | Mandatory |
|---|---|---|---|
company |
String | Y | |
city |
String | Y | |
zipCode |
String | Y | |
address1 |
String | Y | |
address2 |
String | Y | |
nationId |
Integer | Y |
nationId => 78 for china
Response¶
| Name | Description | Type |
|---|---|---|
orderCode |
Internal order code | String |
resellerOrderKey |
External order reference | String |
Error¶
In case of errors there will be a code field and a description field with the explanation of the error.