Re: Request to get script tags from Shopify REST API returns 403 Forbidden

Request to get script tags from Shopify REST API returns 403 Forbidden

Rabbyte
Shopify Partner
45 4 16

Hello everyone,

 

I have a strange problem with my app. For one customer, request to get script tags from Shopify REST API returns 403 Forbidden. This situation appears only for one client and only for one endpoint.

 

I am using Postman to connect Shopify API and I have this response for getting script tags:

Screenshot1.png

 

I have appropriate access scopes and all other endpoints (for example to get shop data or to get themes info) work properly:

Screenshot2.png

 

Did someone has any idea, why this happens and how to resolve this problem?

Replies 3 (3)

KB77
Shopify Staff
59 6 11

Hi @Rabbyte , this is likely an issue with Access-Scopes. If you have a x-request-id we can check the log data for you to see if it specifies the missing scope for that store. I can see in some other cases adding additional scopes resolved the 403 error for some partners. (.e.g. 

SCOPES=write_products,write_customers,write_draft_orders,read_script_tags,write_script_tags

 https://community.shopify.com/c/shopify-apps/scripttag-returns-403/td-p/1274095. Perhaps that could assist you as well. 

KB77 | 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

Rabbyte
Shopify Partner
45 4 16

Hi @KB77, thank you for your answer. If you can, check the request with this x-request-id, please:

b1a00cd4-ad68-4f97-9b36-0e01f630d472

 I will try to add more access scopes and I will let you know if that helps.

Rabbyte
Shopify Partner
45 4 16

@KB77 I just added additional access scopes and this didn't help. I still have 403 Forbidden HTTP code.