Integration Overview
...
API Recipes
Process Orders
step 1 get new orders set the 'order state codes' parameter to 'waiting acceptance' to get new orders see or11 list orders docid\ sejryjucis7z0okcwi 9d step 2 accept or reject the order typically this step involves a stock check on your side to confirm if you have the inventory on hand to fulfill this order if you can fulfill this order, accept it, and if you cannot then reject it note if you reject it, the order flow is complete in addition, your inventory will be set to 0 in your store and the item will automatically be removed from our site to prevent future orders from being placed until you replenish stock see or21 accept or refuse order lines docid\ gf hkwqx072sm78crbh2c step 3 cancel the order (optional) you can cancel an order after it has been accepted, up to the point of shipment once cancelled, the order flow is complete a use case would be if you did an inventory check in step 2, and accepted the order, but later discover that you actually don't have enough to fulfill, or the shipping address is invalid, or the item breaks when packing and you can't replace it see or29 cancel an order docid\ zeps9p1m8sl8o3bzs9oa step 4 get the packing slip retrieve the packing slip and include it with the customer's shipment set the 'document codes' parameter to 'system delivery bill' to filter on the packing slip document type see or73 get packing slip docid\ rwcjh2tiwyqczs5yqfmoq step 5 add carrier info add the carrier info and tracking number used to ship the order see or23 update carrier tracking information docid\ xof8zlyxupwjslu0l4gog step 6 confirm shipment once the order has been shipped, the final step is to confirm the shipment, which marks it complete by you see or24 validate the shipment of an order docid 6klchsagfacqeotysxdit step 7 get refund data (optional) to obtain orders that have been refunded/returned, use api or11 and in the response look for the refunds object under orders order lines refunds to retrieve the reason for the refund, capture the reason code from the api or11 response at orders order lines refunds reason code, then use the reason code with api re01 to get the details see or11 list orders docid\ sejryjucis7z0okcwi 9d and re01 list reasons