Gift card object
Note: This API is only available to Shopify Plus stores, who have configured their Mechanic account with a custom Shopify API password.
How to access it
Use
{% for gift_card in shop.gift_cards %}
to loop through all gift cardsUse
{% for gift_card in shop.gift_cards.enabled %}
to loop through all enabled gift cardsUse
{% for gift_card in shop.gift_cards.disabled %}
to loop through all disabled gift cardsUse
{{ shop.gift_cards[1234567890] }}
to retrieve a single gift card, by ID
What it contains
The related order object:
{{ gift_card.order }}
The related customer object:
{{ gift_card.customer }}
Last updated