Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Nothing returned from the /admin/api/2022-07/orders/{order id}/fulfillment_orders.json endpoint

Nothing returned from the /admin/api/2022-07/orders/{order id}/fulfillment_orders.json endpoint

cartrover-will
Shopify Partner
23 0 3

Our application is in integration platform servicing hundreds of Shopify customers, facilitating the transfer of their orders to various warehouse management systems. We have an option to filter on fulfillment_service so that orders are only loaded for specific fulfillment locations. This must be updated to use the fulfillment_orders endpoint as the fulfillment_service field will no longer be supported on the orders api endpoint.

 

We are trying to retrieve order fulfillments from the /admin/api/2022-07/orders/{order id}/fulfillment_orders.json endpoint. Based on these docs https://shopify.dev/docs/api/admin-rest/2022-07/resources/fulfillmentorder#get-orders-order-id-fulfi... it looks like a fulfillment should be created when the order is created. However when we make an api call to retrieve fulfillments for a specific order, we receive a 200 response and an empty array. What am I missing here? Are there additional steps that need to be taken to create fulfillments? 

Replies 3 (3)

aveshopstech
Shopify Partner
33 1 29

Bump. Same situation here. Our app is not registered as a fulfillment service, and the orders I'm querying were not created by a 3rd party fulfillment service either. The app has [read/write]_merchant_managed_fulfillment_orders permissions. The endpoint I'm calling is [GET] https://{storedomain}.myshopify.com/admin/api/2022-07/orders/{order_id}/fulfillment_orders.json. The response code I receive is 200, but the response is empty. According to the docs, "fulfillment orders are created automatically when an order is created." What are we missing?

aveshopstech
Shopify Partner
33 1 29

[:facepalm:] I found the issue. In my case, at least, the order ID that I was looking up was not valid. It is odd that instead of receiving a "Resource Not Found" error I got a 200. Either way, once I supplied a valid order ID I did, indeed, get a response that included FulfillmentOrder data.

Michael_AG
Shopify Staff
47 8 11

Hi,

 

I assume your access scopes do not match the nature of fulfillment orders you are willing to retrieve. Does this help? We will soon update Fulfillment Order docs and include this text. If you are still experiencing problems, DM me with your shop name and the URL you are calling.

 

Michael_AG_0-1679591776398.png

 

To learn more visit the Shopify Help Center or the Community Blog.