gift_ card
A gift card that's been issued to a customer or a recipient.
Properties
The remaining balance of the gift card in the currency's subunit.
The value is output in the customer's local (presentment) currency.
For currencies without subunits, such as JPY and KRW, tenths and hundredths of a unit are appended. For example, 1000 Japanese yen is output as 100000.
TipUse money filters to output a formatted amount.
A timestamp for when the gift card expires.
If the gift card never expires, then
nilis returned.TipUse the
datefilter to format the timestamp.The initial balance of the gift card in the currency's subunit.
The value is output in the customer's local (presentment) currency.
For currencies without subunits, such as JPY and KRW, tenths and hundredths of a unit are appended. For example, 1000 Japanese yen is output as 100000.
TipUse money filters to output a formatted amount.
The personalized message intended for the recipient.
If there is no message intended for the recipient, then
nilis returned.- properties
The line item properties assigned to the gift card.
The recipient associated with the gift card.
If there is no recipient associated with the gift card, then
nilis returned.The scheduled date on which the gift card will be sent to the recipient.
If the gift card does not have a scheduled date, then
nilis returned.TipUse the
datefilter to format the date.The name of the custom template assigned to the gift card.
The name doesn't include the
prefix, or the.liquidfile extension.If a custom template isn't assigned to the gift card, then
nilis returned.
Example
{
"balance": 5000,
"code": "WCGX 7X97 K9HJ DFR8",
"currency": "CAD",
"customer": {},
"enabled": true,
"expired": false,
"expires_on": null,
"initial_value": 5000,
"last_four_characters": "DFR8",
"message": null,
"send_on": null,
"pass_url": "https://polinas-potent-potions.myshopify.com/v1/passes/pass.com.shopify.giftcardnext/94af7fbe55d010130df8d8bc4a338d36/",
"product": {},
"properties": {},
"qr_identifier": "shopify-giftcard-v1-3TKWJKJBM3X7PBRK",
"recipient": null,
"template_suffix": null,
"url": "https://checkout.shopify.com/gift_cards/56174706753/0011c591fc720d0a51b80cdb694f969e"
}