Update gift card
PATCH
/ admin/ v1/ stores/ {store_id}/ gift-cards/ {gift_card_id}- customers:write
Disables (or enables) a card, or changes its expiry.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.gift_card_idstringrequiredThe gift card's ID, like
gift_01k8qs5s….
Headers
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
disabledboolean · or nullexpires_ondate · or nullYYYY-MM-DD;nullremoves the expiry, absent leaves it.
Returns
200 The card.
Errors
- 404
not_foundNo such card.