API to adjust gift card balance

nuthon
Visitor
3 0 0

Hi,

 

Is there a way to use Shopify API to update the balance of a gift card?

 

Looking at the documentation , I can't see any thing related updating the balance.

 

https://shopify.dev/docs/api/admin-rest/2023-10/resources/gift-card

Reply 1 (1)

StephensWorld
Shopify Expert
1130 123 288

It should be possible to do, as "balance" is one of the properties that can be used. 

 

gift card API.png

 

The "PUT" function allows for updating existing gift cards. 

 

https://shopify.dev/docs/api/admin-rest/2023-10/resources/gift-card#put-gift-cards-gift-card-id 

 

How to actually make this work though will require input from someone who has more experience with APIs than I do though. 

★ Did my post help? If yes, then please like and accept solution. ★

Hire me for your Shopify project @ stephens.world | support@stephensworld.ca