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.
Anchor to Use casesUse cases
- Balance movement: Show
starting_gift_card_balance,gift_card_balance_net_change, andending_gift_card_balancetogether for each month to see how your outstanding gift card liability grew or shrank. - Activity by currency: Group
gift_cards_issued,gift_cards_adjusted, andgift_cards_disabledbygift_card_currencyto see which currencies drive gift card activity. - Issued vs. sold: Compare
issued_gift_card_balanceandsold_gift_card_balanceto separate the gift cards customers purchased from your total issued balance.
Anchor to MetricsMetrics
Counts and calculations that let you track key business indicators. Metrics show up as the columns when queried.
Metrics you can use when querying .
- Anchor to adjusted_gift_card_valueadjusted_
gift_ card_ valueadjusted_ gift_ card_ value MONEYMONEY Value of gift cards adjusted in the given period
- Anchor to disabled_gift_card_valuedisabled_
gift_ card_ valuedisabled_ gift_ card_ value MONEYMONEY 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_balanceending_
gift_ card_ balanceending_ gift_ card_ balance MONEYMONEY The outstanding gift card liability at the end of the time period included in your results.
- Anchor to gift_card_balance_net_changegift_
card_ balance_ net_ changegift_ card_ balance_ net_ change MONEYMONEY 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_adjustedgift_
cards_ adjustedgift_ cards_ adjusted INTEGERINTEGER Number of gift cards adjusted in the given period
- Anchor to gift_cards_disabledgift_
cards_ disabledgift_ cards_ disabled INTEGERINTEGER Number of gift cards disabled in the given period
- Anchor to gift_cards_issuedgift_
cards_ issuedgift_ cards_ issued INTEGERINTEGER Number of gift cards issued in the given period
- Anchor to issued_gift_card_balanceissued_
gift_ card_ balanceissued_ gift_ card_ balance MONEYMONEY The outstanding gift card liability added when gift cards are issued during the period included in your results.
- Anchor to sold_gift_card_balancesold_
gift_ card_ balancesold_ gift_ card_ balance MONEYMONEY The outstanding gift card liability added when gift cards are sold during the period included in your results.
- Anchor to starting_gift_card_balancestarting_
gift_ card_ balancestarting_ gift_ card_ balance MONEYMONEY The outstanding gift card liability at the beginning of the time period included in your results.
MONEY
A monetary amount representing currency values such as prices, revenue, costs, and discounts.
INTEGER
A whole number without decimal places, used for counts, quantities, and other discrete numeric values.
Anchor to DimensionsDimensions
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 .
- Anchor to daydaydayDAY_TIMESTAMPDAY_TIMESTAMP
The day gift card activity happened.
- Anchor to gift_card_currencygift_
card_ currencygift_ card_ currency STRINGSTRING Currency code of the gift card balance
- Anchor to monthmonthmonthMONTH_TIMESTAMPMONTH_TIMESTAMP
The month gift card activity happened.
- Anchor to quarterquarterquarterQUARTER_TIMESTAMPQUARTER_TIMESTAMP
The quarter gift card activity happened.
- Anchor to shop_idshop_
idshop_ id IDENTITYIDENTITY - Anchor to weekweekweekWEEK_TIMESTAMPWEEK_TIMESTAMP
The week gift card activity happened.
- Anchor to yearyearyearYEAR_TIMESTAMPYEAR_TIMESTAMP
The year gift card activity happened.
- Anchor to shop_nameshop_
nameshop_ name STRINGSTRING Name of your store
DAY_TIMESTAMP
A date value truncated to day precision.
STRING
A sequence of characters representing text data.
MONTH_TIMESTAMP
A date value representing the start of a month.
QUARTER_TIMESTAMP
A date value representing the start of a fiscal quarter.
IDENTITY
A unique identifier for a Shopify resource such as a customer, product, or order.
WEEK_TIMESTAMP
A date value representing the start of a week.
YEAR_TIMESTAMP
A date value representing the start of a year.