Access Denied Error When Creating Gift Cards Using Shopify API

Hello everyone,

I am trying to create a gift card using the Shopify API, but I keep receiving an “access denied” error even though my app already has the necessary permissions. I’m not sure what the issue could be, so I’m hoping someone here can help.

Here’s what I’ve tried so far:

  1. I’ve double-checked that I’m using the correct API endpoint for creating gift cards (/admin/api/2022-10/gift_cards.json).
  2. I’ve double-checked my API credentials to make sure they are correct.
  3. I’ve waited a few minutes between requests to make sure I’m not exceeding Shopify’s API throttling limits.
  4. I’ve checked the documentation for the API endpoint to make sure I have all the necessary permissions.

Despite trying all of these solutions, I’m still receiving the “access denied” error. Does anyone have any other suggestions for how I can resolve this issue?

reasonPhrase: "Forbidden"
path:/admin/api/2022-10/gift_cards.json
message:Client error: `POST https://{{hostname}}/admin/api/2022-10/gift_cards.json` resulted in a `403 Forbidden` response:\n
        {"errors":"Access denied"}\n

Thank you in advance for your help.

Bishwadeep

2 Likes

I have this scope “write_gift_cards”

hello I have the same problem. Did you find the solution ?

read_gift_cards, write_gift_cards View or manage gift cards (Available to Plus merchants only)

Access tokens for custom apps in the Shopify admin

Hi Bishwadeep,

Are you able to resolve this issue?

Thanks!

Hello,
Did you find the solution for this ?
I am facing the same issue.

The only way is Shopify plus