Is it possible to know which fulfilment location to fulfil an order against (REST API)?

csilk
Shopify Partner
7 0 0

I can't see a fulfilment location ID in the order JSON; without this ID how is it possible to know which location to fulfil against?

 

EDIT: I could map the fulfilment locations in Shopify to the Fulfilment locations (or the equivalent) in the ERP then the ERP would pass that Shopify fulfilment location ID into to the Fulfilment JSON.

How are other people handling this?

Thanks

Reply 1 (1)

garyrgilbert
Shopify Partner
390 40 162

Hi There, 

 

you can't rely on the information in the order json. You should use the fulfillmentorder resource. This will get you which items are to be delivered by which location and in which quantity.

 

https://shopify.dev/docs/api/admin-rest/2023-04/resources/fulfillmentorder

 

Cheers,

Gary

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