API Fulfillments not working permissions error

Hello,

We are not able to get fulfillments to work since the API changes. We send a fulfillment call and get back the error: The api_client does not have the required permission(s)."

We do have permissions because we went through the process to get them and it says we do on our dashboard. Our scopes are(we are able to get them using the API):

{
“access_scopes”: [
{
“handle”: “write_orders”
},
{
“handle”: “read_orders”
}
]
}
Here is the payload for the fulfillment:

{

“fulfillment”:{
“line_items_by_fulfillment_order”: [
{
“fulfillment_order_id”: 5459462291751,
“fulfillment_order_line_items”: [
{
“id”: 62614,
“quantity”: 1
}
]
}
],
“tracking_info”: {
“number”: “9212490343134860004506”,
“url”: “https://USPS.com?tracking_number=9212490343134860004506
}

}
}
We have been asking Shopify for help, but not getting anywhere!
Thanks

Hi DeveloperVIP,

To create fulfillments, your app will need the write_fulfillments and/or write_assigned_fulfillment_orders access scopes. Since you only have read_orders and write_orders scopes, you can only read and write order data, but not create fulfillments:

After you’ve received these new scopes, you should be able to create fulfillments without encountering the permission error.

Hope this helps,

Hello Liam,

Thanks for the reply.

I saw that when looking at others solutions.

When I went to check further these scopes go with the Fulfillment Service, which is described in your documentation as “A Fulfillment Service is a third party warehouse that prepares and ships orders on behalf of the store owner. Fulfillment services charge a fee to package and ship items and update product inventory levels.” We do not need that, we just need the regular updating of the order as fulfilled and the give tracking number.

Your docs also show that read_order and write_order are associated the the regular fulfillment.

read_orders,

write_orders

Abandoned checkouts, Customer, Fulfillment, Order, and Transaction resources

So this should work, correct?

Thanks

Hello Liam,

In the meantime, while waiting for an answer from you, I decided to try the change you suggested. Unfortunately, it did not work. It still says api_client does not have permissions. Do you any other ideas on what to try.

Thanks

Thank you it worked!

Was this ever fixed? I have the exact same issue but I have tried every single scope and still get the same error. What I am i missing here?