A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
for this api call
https://{shopurl}/admin/api/2022-07/orders/{order_id}/fulfillment_orders.json
I am getting response :
Solved! Go to the solution
This is an accepted solution.
I had the same issue. I do some reading in Shopify documentation and add the following permission to my app and it's started working for me.
read_merchant_managed_fulfillment_orders,write_merchant_managed_fulfillment_orders,read_third_party_fulfillment_orders,write_third_party_fulfillment_orders,read_assigned_fulfillment_orders,write_assigned_fulfillment_orders
I'm also having this issue, haven't been able to find a solution for how to create a fulfillment order.
I have resolved the issue basically in the store in which you have installed the app go to settings section and then in settings go to checkout section scroll bottom u will find automatically fulfillment then select that and save it.
It will be fixed then
@Shivm -
that's not the setting. This makes everything fulfilled automatically; and marked as such on order list...
I have two shops - test and prod; with the same setting on
'Don’t fulfill any of the order’s line items automatically"
on this
https://{shopurl}/admin/api/2022-07/orders/{order_id}/fulfillment_orders.json
I am getting response :
but I getting that fulfillment orders after setting that.
I ended up just switching to API version 2022-04.
With this, you're able to create a fulfillment for with the order id and don't have to reference a fulfillment order that doesn't yet exist.
Not the ideal solution but it was the only way I could find for it to work the way I needed.
Make sure you have this permission:
I had the same issue, always getting an empty fulfillment_order
I have these permissions enabled on my app but it's not returning the fulfillment_order object. We had this working fine on our dev store but doesn't seem to be working on the production store.
Following up to this for others with this issue. We were using a Custom app and needed to add:
write_merchant_managed_fulfillment_orders read_merchant_managed_fulfillment_orders
To have these returned.
Adding those additional merchant_managed permissions, as mentioned by Rigelstpierre, resolved the issue for me
I just spent an entire day trying to figure this out and your post @rigelstpierre was exactly what I needed! Thank you!!
nice, you save me
Answer by @rigelstpierre was the correct one and it resolved my issue. I updated my scopes, reinstalled the application and when I created new orders, fulfillment order resource was created automatically.
Shopify needs to update their documentation and add these scopes there so people don't face these issues again
@Inzamam94 Can you explain a bit more the way you updated the scopes? Thank you.
Hey @Simmy2 - I can help here. One of the ways that updating your app scopes can be done by making a request to the merchant's store via the authorization grant screen. We have some documentation on this here. The implementation of that redirect request is up to you, but it can be as simple as sending that URL to the merchant and having them approve the updated scopes.
If you're using one of our libraries to build your app, it's a bit easier. There's an overview here that goes over how to do this with our Node.js library. If you've set up your app using the Shopify CLI, the process is even easier. In the template code that's generated when you run an app creation flow, the CLI will generate a .toml file called "shopify.app.toml", which contains a space where you can easily modify auth scopes. If your app is already installed on a merchant's store, the built-in OAuth process that is also part of our CLI-generated app template will request updated scopes from any store where the app is installed, provided you have authenticated access to the shops.
Hope this helps - let us know if we can clarify anything on our end.
Al | Shopify Developer Support
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.
I had the same issue. I do some reading in Shopify documentation and add the following permission to my app and it's started working for me.
read_merchant_managed_fulfillment_orders,write_merchant_managed_fulfillment_orders,read_third_party_fulfillment_orders,write_third_party_fulfillment_orders,read_assigned_fulfillment_orders,write_assigned_fulfillment_orders