Updating location_id with orders REST API

LeedsAF
New Member
3 0 0

Hi All,

 

I'm trying to change the location ID of an order using /2021-07/orders/{orderid}.json by sending the order id and location_id, but I receive the error:

"Required parameter missing or invalid"

 

I can't tell from the documentation what the required parameters are. Does anyone have any idea?

 

Thanks!

Reply 1 (1)
L_J_K
Shopify Staff
Shopify Staff
400 64 81

Hey @LeedsAF 

It's sounds like you'd be needing to use the move.json endpoint on the fulfillmentOrder resource as you need to reference the location ID on an order. A fulfillment order allows you to reference the location - it represents either an item or a group of items in an order that are to be fulfilled from the same location. I'd check out the move.json endpoint docs here. Hope that helps!

 

| Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!