Fulfilling orders via /fulfillmentorder when using a Fulfilment Service

Fulfilling orders via /fulfillmentorder when using a Fulfilment Service

alexlesa
Shopify Partner
2 0 3

We have recently had to upgrade our API integration to 2022-07 which means fulfilling orders should be done using fulfilments rather than directly to the sales orders as done previously.

 

The problem we are encountering is a lot of our customers have configured their inventory system/backend as a fulfilment service. This means, when we query to see what fulfilments are available on the sales order, we get back an empty array. How are we able to update the order and say that it is fulfilled in this scenario? (We are mainly concerned with marking the order as fulfilled and sending back carrier + tracking information). 

 

Any recommendations that are compliant with 2022-07 or above would be greatly appreciated 

Reply 1 (1)

garyrgilbert
Shopify Partner
428 41 178

Hi There,

 

You need to query the fulfillmentOrders endpoint for the order_id this will return all fulfillment orders for a particular order regardless of which fulfillment location it's being assigned to.

 

https://shopify.dev/api/admin-rest/2023-01/resources/fulfillmentorder#get-fulfillment-orders-fulfill...

 

Cheers,

 

Gary

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