Use this API to create an order in the Dsco Platform. This API may only be used by retailer accounts.
Reference the Order JSON Object.
The Create Order API documents the API's URL, it's arguments/return values and how to interact with it (GET, POST, PUT, etc.) in the Dsco Interactive Playground.
Input Order JSON Object
Pass an instance of an Order JSON Object as the body of the http request and that order will be created.
Note that dscoSupplierId is required when creating an order in order to verify that the item is associated with the correct supplier. The dscoSupplierId should go at the top-level of the JSON structure. Additionally, each order line item may specifiy dscoSupplierId also, although it's not required. If dscoSupplierId is present on an order line item then it will be used instead of the top-level value. This allows for the creation of an order where individual line items will be fulfilled by different suppliers.
Note that each OrderLineItem JSON Object in the lineItems array attribute must include either a dscoItemId or a SKU and may contain both.
Output Order Object
The Create Order API returns the newly created Order which will include the Dropship generated orderId.