Skip to main content

store_credit_summaries

The store_credit_summaries schema captures store credit balances as point-in-time snapshots. It's the summary view that pairs with the transaction-level store credit data, and it's best for tracking balances over a period.


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 store_credit_summaries.

Anchor to ending_store_credit_balance
ending_store_credit_balance

The store credit balance at the end of the selected period, in the currency shown by store_credit_currency.

Anchor to starting_store_credit_balance
starting_store_credit_balance

The store credit balance at the beginning of the selected period, in the currency shown by store_credit_currency.

Anchor to store_credit_balance_net_change
store_credit_balance_net_change

The store credit balance change for the selected period, in the currency shown by store_credit_currency.

Store credit balance net change = ending store credit balance – starting store credit balance


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 store_credit_summaries.

Day (timestamp) the data was recorded

Anchor to month
month

Month (timestamp) the data was recorded

Anchor to quarter
quarter

Quarter (timestamp) the data was recorded

Anchor to shop_id
shop_id

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

Anchor to store_credit_currency
store_credit_currency

Values are currency codes such as USD, EUR, GBP, and CAD.

Week (timestamp) the data was recorded

Year (timestamp) the data was recorded

Anchor to shop_name
shop_name

Name of your store


  • store_credit_transactions: Individual credit and debit events that drive these balances.
  • payments: Transaction data when you want to see how store credit is used at checkout.
  • payouts: Payout amounts alongside store-credit liability for a full cash picture.

Was this page helpful?