POST dealer/orders
Create an order in SAP.
Request Information
Parameters
Name | Description |
---|---|
json |
|
Request body formats
text/plain, application/x-www-form-urlencoded, text/json, application/json
Sample:
{ "dealer" : 83289, "key" : "********-**50-****-****-11599*******", "dealer_reference" : "Order 123456", "order_date" : "160511", "order_time" : "090000", "order_type" : "S", "ship_address_id" : "1", "lines" :[{ "part_number" : "17211-ZC3-000", "order_quantity" : 10, "backorder" : "N" },{ "part_number" : "17211-ZF5-V01", "order_quantity" : 10, "backorder" : "Y" }] } or { "dealer" : 408328, "key" : "********-**50-****-****-11599*******", "dealer_reference" : "Order 123456", "order_date" : "160511", "order_time" : "090000", "order_type" : "S", "ship_address_id" : "1", "lines" :[{ "part_number" : "17211-ZC3-000", "order_quantity" : 10, "backorder" : "N" },{ "part_number" : "17211-ZF5-V01", "order_quantity" : 10, "backorder" : "Y" }] }
Response Information
Response body formats
application/json, text/json
Sample:
{ "delivery": true, "receipt": "Create order successfully.", "sap_info": {} } Or Bad Response: { "delivery": false, "receipt": "Create order failed.", "sap_info": {} }