Re: Access Denied Error When Creating Gift Cards Using Shopify API

Access Denied Error When Creating Gift Cards Using Shopify API

Bishwadeep
Shopify Partner
3 0 2

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

 
 
 
Replies 6 (6)

Bishwadeep
Shopify Partner
3 0 2

I have this scope "write_gift_cards"

abhiziplingo
Shopify Partner
4 0 0

Hi Bishwadeep, 

 

Are you able to resolve this issue?

 

Thanks!

TanguyDH1
New Member
4 0 0

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

aliaz-
Excursionist
24 2 7
read_gift_cards, write_gift_cardsView or manage gift cards (Available to Plus merchants only)

Access tokens for custom apps in the Shopify admin

The pessimist sees only the tunnel; the optimist sees the light at the end of the tunnel; the realist sees the tunnel and the light - and the next tunnel.

nvadhwana
Visitor
1 0 0

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

aliaz-
Excursionist
24 2 7

The only way is Shopify plus

The pessimist sees only the tunnel; the optimist sees the light at the end of the tunnel; the realist sees the tunnel and the light - and the next tunnel.