Focuses on API authentication, access scopes, and permission management.
I am utilizing the giftcards API to create giftcards
When sending a POST to /admin/api/2023-10/gift_cards.json
I receive
{"errors":"Access denied"}
Here are my scopes
My access token is correct. If I change the token in the request I receive an invalid token error.
The POST body is
Hi Joeyexecutive,
Are you testing this on a plus store or a plus sandbox development store? It's possible you're seeing this issue as our docs say "the Gift Card resource is available for private apps/ custom apps installed on Shopify Plus stores.
I'll check with the product team if this is expected on non-Plus stores, but if you could confirm the store type that would help in troubleshooting.
Hope this helps!
Liam | Developer Advocate @ 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
Hi Joeyexecutive,
I've dug into this a bit further and it seems that access to this API is only available via a beta flag that needs to be enabled by our internal team. The best thing to do is to contact our support via your partner dashboard and request access to the Gift Card API. There's a developer docs update in progress to address this too.
Once you have the beta flag enabled you'll be able to call the gift_cards.json endpoint as expected.
Hope this helps,
Liam | Developer Advocate @ 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
Hi Liam
Thanks for looking into it. Can this flag be enabled on any shopify store or just Plus stores?
Also do you know when this is coming out of beta? I just reached out to the support team and they said they will forward the request to the API team
No update on when this is coming out of beta - connecting with the support team is the best option for now.
Liam | Developer Advocate @ 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