The api_client does not have the required permission(s).

kevin-2007
Tourist
3 0 2

Hi all

          When I use Rest Api to request cancel the fulfillment, the  request url is https://xxxx.myshopify.com//admin/api/2020-07/fulfillments/2432391086232/cancel.json

   the response is  {"errors": "The api_client does not have the required permission(s)."}

   I checked the document (https://shopify.dev/docs/admin-api/access-scopes),found that as long as you have write_orders permissions, you can modify fulfillments,and I have
   write_orders permission
image.pngimage.png

   But why can't I cancel  the fulfillment,Can anyone help me find the reason?

      Thanks so much

 

vivek123
New Member
2 0 0

Hey, were you able to resolve it?

0 Likes
kevin-2007
Tourist
3 0 2
use the lower version api
0 Likes
vivek123
New Member
2 0 0

I am using version 2019-10 which is lowest currently. Any lower version api call will be directed to this version api. I am getting same permission issue with 2019-10.

 

Which version are you using? And, is it functioning properly?

0 Likes
kevin-2007
Tourist
3 0 2
using this api url : https://
%s/admin/api/2020-07/orders/%s/fulfillments/%s/cancel.json