JSON API - Order Status Pending & Processing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TipPro
    Mivite


    • Apr 2006
    • 293

    #1

    JSON API - Order Status Pending & Processing

    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.
  • dcarver
    Director of Software Dev.




    • May 2013
    • 400

    #2
    You can't set the order status by hand, the order status is always set based on the status the items in the order. For example, if you cancel all items in the order the order status will be set to Cancelled.
    David Carver
    Miva, Inc. | Software Developer

    Comment

    • TipPro
      Mivite


      • Apr 2006
      • 293

      #3
      Thank you for the reply. How do you set an item status to pending or processing (picking) using the API?

      Comment

      • dcarver
        Director of Software Dev.




        • May 2013
        • 400

        #4
        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 Shipped
        David Carver
        Miva, Inc. | Software Developer

        Comment

        • TipPro
          Mivite


          • Apr 2006
          • 293

          #5
          Perfect, thanks for the response.

          Comment

          • TipPro
            Mivite


            • Apr 2006
            • 293

            #6
            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

            • Nick
              Super Moderator











              • Dec 2011
              • 576

              #7
              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

              Working...
              X