but I need fulfillment_order_id to create fulfillment for the order
so is there any way to get this fulfillment_order_id
although in the docs it is written that “The FulfillmentOrder resource represents either an item or a group of items in an order that are to be fulfilled from the same location. There can be more than one fulfillment order for an order at a given location. Fulfillment orders are created automatically when an order is created. You can retrieve a fulfillment order ID with an order_id using the FulfillmentOrder GET endpoint.”
But its not happening Fulfillment orders are created automatically when an order is created. what is going wrong ? pls suggest me some solution
Note: I have read all the docs for fulfillment but won’t found any solution
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.
{
“fulfillment_orders”:
}
on another - (dev) correct orders. So I would bump up your initial question - this is rather painful.
And I am sure I am doing it right - because it works on dev instance
Laurenwest - any luck?
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.
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
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.