Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.

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
385 40 155

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