bigcommerce - Updating Order to shipped without tracking inventory -
how can update order shipped contains untracked product using bigcommerce web api?
i have order product not being tracked part of inventory on bigcommerce.
i need make appropriate web api call update status shipped. have tried make call using put /orders/id/shipments/id.json
call below
<?xml version="1.0" encoding="utf-8" ?> <shipment> <tracking_number/> <order_address_id>533</order_address_id> <items> <item> <order_product_id>628</order_product_id> <quantity>1</quantity> </item> </items> </shipment>
, following 400 bad request response.
<?xml version="1.0"?> <errors> <error> <status>400</status> <message>the field 'quantity' invalid.</message> <details> <invalid_reason>the quantity specified greater quantity of product available ship.</invalid_reason> <available_quantity>0</available_quantity> <order_product_id>628</order_product_id> </details> </error> </errors>
i realize change product tracked, customer doesn't track inventory way (and avoid forcing them change process). have tried omitting quantity, states required.
you can update orderstatus shipped. request on endpoint tells ids associated various aspect of order http://developer.bigcommerce.com/docs/api/v2/resources/order_statuses
the put resource on order lets update status http://developer.bigcommerce.com/docs/api/v2/resources/orders
Comments
Post a Comment