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
{“gift_card”:{“note”:“This is a note”,“initial_value”:“100.00”,“code”:“ABCD EFGH IJKL MNOP”,“template_suffix”:“gift_cards.birthday.liquid”}}
Which is copied directly from the documentation
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.
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.