Skip to main content

gift_cards

The gift_cards schema captures gift card balance movement over time. It supports both period activity and balance-position views, especially when you need to separate balances by currency.


Counts and calculations that let you track key business indicators. Metrics show up as the columns when queried.

Metrics you can use when querying FROM gift_cards.

Anchor to adjusted_gift_card_value
adjusted_gift_card_value

Value of gift cards adjusted in the given period

Anchor to disabled_gift_card_value
disabled_gift_card_value

The value removed from outstanding gift card liability when gift cards are disabled during the period included in your results.

Anchor to ending_gift_card_balance
ending_gift_card_balance

The outstanding gift card liability at the end of the time period included in your results.

Anchor to gift_card_balance_net_change
gift_card_balance_net_change

The change in outstanding gift card liability across the time period in your results. Positive values mean the balance grew, and negative values mean it fell.

Gift card balance net change = ending gift card balance - starting gift card balance

Anchor to gift_cards_adjusted
gift_cards_adjusted

Number of gift cards adjusted in the given period

Anchor to gift_cards_disabled
gift_cards_disabled

Number of gift cards disabled in the given period

Anchor to gift_cards_issued
gift_cards_issued

Number of gift cards issued in the given period

Anchor to issued_gift_card_balance
issued_gift_card_balance

The outstanding gift card liability added when gift cards are issued during the period included in your results.

Anchor to sold_gift_card_balance
sold_gift_card_balance

The outstanding gift card liability added when gift cards are sold during the period included in your results.

Anchor to starting_gift_card_balance
starting_gift_card_balance

The outstanding gift card liability at the beginning of the time period included in your results.


Attributes of your data that let you look more granularly at aspects of the data. Group and filter by dimensions to shape the rows your query returns.

Dimensions you can use when querying FROM gift_cards.

The day gift card activity happened.

Anchor to gift_card_currency
gift_card_currency

Currency code of the gift card balance

Anchor to month
month

The month gift card activity happened.

Anchor to quarter
quarter

The quarter gift card activity happened.

Anchor to shop_id
shop_id

The unique Shopify identifier for your store. Use shop_id with shop_name to show readable store labels.

The week gift card activity happened.

The year gift card activity happened.

Anchor to shop_name
shop_name

Name of your store


  • sales: Top-line revenue including the sales that gift card redemptions paid for.
  • payments: Transaction-level data when you need to reconcile gift card redemptions against payment records.

Was this page helpful?