How do you set an order status to pending or processing via the JSON API? I see functions such as OrderItemList_BackOrder and OrderItemList_Cancel, but no functions for pending and processing.
Announcement
Collapse
No announcement yet.
JSON API - Order Status Pending & Processing
Collapse
X
-
You would call OrderItemList_CreateShipment and place line items into a shipment. That would move the items' status to Picking. Then you could call OrderShipmentList_Update and mark the shipment as shipped and that would move the item's status to ShippedDavid Carver
Miva, Inc. | Software Developer
Comment
-
I found that removing all items from a shipment using OrderItemList_RemoveFromShipment will bring the order status back to "pending". If the order status is "backordered" and there is no shipment, I can still add all of the order items into OrderItemList_RemoveFromShipment and the order status will return back to "pending". Is there a more proper way of going from "backordered" to "pending" than this procedure?
Last question, how is the "pending" order shipment status used? I don't see any way of updating an order shipment status to "pending" or even what purpose it would have.
Last edited by TipPro; 05-02-23, 12:26 PM. Reason: I removed my questions about moving the order status from canceled to anything else since that isn't something that should be allowed to happen.
Comment
-
There is not way to remove an item from backorder status without creating a shipment with the item or removing and re adding the item.
As for the pending status it is used for new orders or orders that have no shipping, backorder, or returned items. All orders start in the pending status, then when a shipment is created or an item(s) is marked as back ordered the order will change to processing.
Nicholas Adkins
Technical Training Specialist / Miva, Inc.
[email protected]
https://www.miva.com/mivalearn
Comment
Comment