Fulfilment: The api_client does not have the required permission(s)

Fulfilment: The api_client does not have the required permission(s)

luis-melendez
Shopify Partner
2 0 0

Hi, I'm working with a shipment and fulfillment app, recently we have a case where we made fulfillment into orders, but after some requests we get: The api_client does not have the required permission(s)

I have been reading and look into this post Fulfillment Orders Returning {"Errors":"The Api_client Does Not Have The Required Permission(S)."} Searching i think that i have all required permissions (even more), this is the list of permissions we current have for a store  write_orders,read_inventory,read_products,write_assigned_fulfillment_orders,write_fulfillments,write_merchant_managed_fulfillment_orders,write_third_party_fulfillment_orders

After that we "restore" the user permissions with this Change the granted scopes  it starts to work but after some time it gives us again the same error.

 

Those are some requests id that give us that error

fbaa81d9-38df-4c65-b0b5-fd26f899ed01

554117bf-c5e0-49f8-a016-6f8a5fe6baa8

6caabab6-9c48-443e-beaf-935eed8e5a78

e06761e5-8e86-45e1-a36c-c3fa82ce58c2

ceb34eb6-f85b-4e33-b4d6-a0adb7b26eb7

 

Thanks for any help ypu could bring to me.

Replies 3 (3)

JamesG
Shopify Staff
42 10 11

Hi @luis-melendez 


I checked our logs but unfortunately there isn't any information on the specific access scope your app is missing.

I'll add a feature request on your behalf to highlight the need for more verbose errors when working with FulfillmentOrders, but depending on if you are working with a Fulfillment Service app or an order management app I would recommend looking through the relevant guide in our documentation and possibly checking if the FulfillmentOrder is assigned to your app's location, or another one on the store. 

JamesG | API Support @ Shopify 
 - Was my reply helpful? Click Like to let me 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

luis-melendez
Shopify Partner
2 0 0

@JamesG Thanks, I'm going to check about the locations you said. In case the problem persist, could you tell me if those logs were added so we could check this issue with more detail?

JamesG
Shopify Staff
42 10 11

Hey @luis-melendez ,

I don't have any timeframe for when our developers might be able to add more information to the logs, but if you continue to see permission errors despite having the correct scopes, then I would recommend reaching out to our Partner Support to share the details of which Fulfillment Order assigned to your app's location can't be queried, along with examples of the requests you are making.

JamesG | API Support @ Shopify 
 - Was my reply helpful? Click Like to let me 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