Updating shipmentStatus using order PUT doesn't work

basterbruggebasterbrugge Member Posts: 5

Hi,

We have an ERP integration running for one of our customers and this integration tries to update the shipmentStatus of an order to shipped using /orders/<id>.json PUT. This call succeeds, but the shipmentStatus of the order isn't updated. The same API call works fine for our test shop. The difference between both is that orders in the shop of our customer don't have a shipment and the orders in our test shop do.

Two questions:

  • Can we configure our test shop to create orders without a shipment attached?
  • Why doesn't /orders/<id>.json work properly when there isn't a shipment attached to an order? And how can we set this order to completed via the API?

Thx.

1 comment

  • LucienVersendaalLucienVersendaal Moderator, Lightspeed Staff Posts: 241 moderator

    Hi @basterbrugge ,

    Thank you for contacting us.

    • Can we configure our test shop to create orders without a shipment attached? A payment and shipment method are required and expected in an order.
    • Why doesn't /orders/<id>.json work properly when there isn't a shipment attached to an order? And how can we set this order to completed via the API? This is because an order expects a payment and shipment method. When you set payment to paid and shipment to shipped. You'll see the order is completed.

    I hope this will help you.

Sign In or Register to comment.