Giftcard API 404 Not Found

JoaoFerreira1
Shopify Partner
1 0 0

Hello,

 

I am trying to call the giftcard API request: /admin/api/2022-10/gift_cards.json

but i get this response:

{
"errors": "Not Found"
}
 
What can i do? 
 
I can create giftcards on my admin and have the read/write scope access.
 
Thanks in advance
Replies 2 (2)

jazz-jay
Shopify Expert
96 14 17

Hi,

 

Please check if your app has access to the Gift Card Resource. More info here

 

Shopify Plus

The Gift Card resource is available for private apps installed on Shopify Plus stores. As of API version 2021-04, the Gift Card resource is also available for custom apps installed on Shopify Plus stores.

Your app must request the write_gift_cards and read_gift_cards access scopes. Merchants that want to sell or issue gift cards also need to activate the gift card feature in the Shopify admin.

 

banned
ShopifyDevSup
Shopify Staff
1440 235 490

That's exactly right @jazz-jay! The scopes granted to an app can be checked via the `/admin/oauth/access_scopes.json` endpoint as well.

 

Hope that helps!

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us 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