A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
This documentation for Fulfillment Order - https://shopify.dev/docs/api/admin-rest/2023-01/resources/fulfillmentorder - states that "Fulfillment orders are created automatically when an order is created.". So I should expect to see something returned when making a call to
/admin/api/2023-01/orders/{order_id}/fulfillment_orders.json - correct?
Whenever I make a call to it though, I get back an empty array. Why would that be?
Solved! Go to the solution
This is an accepted solution.
So it turns out these 2 permissions were missing
"read_merchant_managed_fulfillment_orders"
"write_merchant_managed_fulfillment_orders"
Once these were added, then it worked. So in the end I had to add these 6 new perms
"read_third_party_fulfillment_orders"
"write_third_party_fulfillment_orders"
"read_assigned_fulfillment_orders"
"write_assigned_fulfillment_orders"
"read_merchant_managed_fulfillment_orders"
"write_merchant_managed_fulfillment_orders"
Hi @rah_shop 👋
To start, I would recommend checking whether your app has all appropriate permissions. When the fulfillment order is created, it will be assigned a specific location, and it's likely that your app doesn't have permissions to view fulfillment orders at that particular location.
Hope that helps!
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
This is an accepted solution.
So it turns out these 2 permissions were missing
"read_merchant_managed_fulfillment_orders"
"write_merchant_managed_fulfillment_orders"
Once these were added, then it worked. So in the end I had to add these 6 new perms
"read_third_party_fulfillment_orders"
"write_third_party_fulfillment_orders"
"read_assigned_fulfillment_orders"
"write_assigned_fulfillment_orders"
"read_merchant_managed_fulfillment_orders"
"write_merchant_managed_fulfillment_orders"
The API documentation states that there are multiple scopes and to reference each endpoint to see what scopes are needed, but there are no references to them all in the documentation.
In the end I needed the following scopes for our fulfillment app:
View or manage fulfillment services
View or manage fulfillment orders assigned to merchant-managed locations
View or manage orders, transactions, fulfillments, and abandoned checkouts
View or manage fulfillment orders assigned to a location managed by any fulfillment service