Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

REST API endpoint for gift-card-adjustment

REST API endpoint for gift-card-adjustment

spt-solteq
Shopify Partner
2 0 0

Hi,

 

Based on documentation you provide REST API endpoint to adjust gift card balance https://shopify.dev/docs/api/admin-rest/2023-07/resources/gift-card-adjustment. I am able to create gift cards, retrieve gift cards via REST API but when I am trying to use this endpoint I just get error 404 {"errors":"Not Found"}. Is there something you need to grant for me because initially I wasn't able to use gift card api before you granted it to me when I asked it separately.

 

br, Simo-Pekka

Replies 3 (3)

Liam
Community Manager
3108 344 904

Hi Simo,

 

Just to confirm - does this app currently have the  gift_card_adjustments access scope?

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

spt-solteq
Shopify Partner
2 0 0

Hi Liam,

 

I was also looking that but all I have available are these that I have already selected on Admin API scopes:

 

Gift cards / View or manage gift cards
write_gift_cards and read_gift_cards both selected

 

And I am not able to see that gift_card_adjustments access scope

 

br, Simo-Pekka

Liam
Community Manager
3108 344 904

Hi again Simo,

 

So it does seem that the gift_card_adjustments access scope needs to be manually enabled. You'll need to open a support interaction through your partner dashboard to have this scope enabled by our internal partner support team.

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