Skip to content

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_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

  • gift_card_idstringrequired

    The gift card's ID, like gift_01k8qs5s….

Headers

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • disabledboolean · or null
  • expires_ondate · or null

    YYYY-MM-DD; null removes the expiry, absent leaves it.

Returns

200 The card.

Errors

  • 404not_foundNo such card.