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 if neither dscoSupplierId nor dscoTradingPartnerId are provided, Dsco will do its best to find an item that matches the sku/upc/ean provided in one of your trading partners.  If it can't find one, the API will throw an error.  If it finds the same sku/upc/ean in more than one trading partner, the API will throw an error since it can't tell which one it should use.  The safest thing then is for you to include either dscoSupplierId or dscoTradingParnterId to identify which trading partner an item is associated with.

Any line item that does not include either a dscoSupplierId or dscoTradingPartnerId of its own will use the  dscoSupplierId or dscoTradingPartnerId in the root of the Order object if it is provided there. 

 Note that each OrderLineItem JSON Object in the lineItems array attribute must include a unique identifier for the item, one of dscoItemId, sku, upc or ean.

 Output Order Object

The Create Order API returns the newly created Order which will include the Dropship generated orderId.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.