POST | /dealers/order | Places a new order with the specified items. |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Items | body | NewOrderItemList | Yes | Items to order. |
UseDropshipment | body | bool? | No | Dropshipment indication. |
DeliveryAddress | body | NewOrderAddress | No | Delivery address. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
SessionToken | query | string | Yes | Session token received from successful authentication. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
PartId | body | int | Yes | Unique ID for the part. |
Quantity | body | int | Yes | Quantity to order. |
Reference | body | string | No | Custom reference. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CompanyName | body | string | No | Company name. |
FirstName | body | string | No | First name. |
LastName | body | string | No | Last name. |
StreetName | body | string | Yes | Street name. |
HouseNumber | body | string | Yes | House number. |
HouseNumberAddition | body | string | No | House number addition. |
PostalCode | body | string | Yes | Postal code. |
City | body | string | Yes | City. |
CountryCode | body | string | Yes | Country code. |
TelephoneNumber | body | string | No | Telephone number. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Result | model | T | No | Result value |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
IsSuccessful | model | bool | No | Specifies if the operation was successful. |
ErrorMessage | model | string | No | States error message in case of unsuccessful operation. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
OrderNumber | model | string | No | Number for the order that has been placed. |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /dealers/order HTTP/1.1
Host: services.acct.2service.nl
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Items":[{"PartId":0,"Quantity":0,"Reference":"String"}],"UseDropshipment":false,"DeliveryAddress":{"CompanyName":"String","FirstName":"String","LastName":"String","StreetName":"String","HouseNumber":"String","HouseNumberAddition":"String","PostalCode":"String","City":"String","CountryCode":"String","TelephoneNumber":"String"},"SessionToken":"String"}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"Result":{"OrderNumber":"String"},"IsSuccessful":false,"ErrorMessage":"String"}