Skip to main content

store_credit_transactions

The store_credit_transactions schema captures individual store credit movements. Use it to trace why store credit changed and which customer, order, company, source, or event a movement belongs to.


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

Anchor to credited_store_credit_value
credited_store_credit_value

The value of store credit added to customer balances by transactions in your results. Use store_credit_currency to see the currency for those amounts.

Anchor to debited_store_credit_value
debited_store_credit_value

The value of store credit taken from customer balances by transactions in your results. Use store_credit_currency to see the currency for those amounts.

Anchor to expired_store_credit_value
expired_store_credit_value

The value of store credit that expired in transactions in your results. Use store_credit_currency to see the currency for those amounts.


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

Anchor to company_id
company_id

company_id is the unique Shopify identifier for the B2B company linked to the store credit transaction. Use it with company_name to show readable labels.

Anchor to company_location_id
company_location_id

company_location_id is the unique Shopify identifier for the company location linked to the store credit transaction. Use it with company_location_name to show readable labels.

Anchor to customer_id
customer_id

customer_id is the unique Shopify identifier for the customer linked to the store credit transaction. Use it with customer_name or customer_email to show readable labels.

The day a store credit transaction happened.

Anchor to day_of_week
day_of_week

The day of the week a store credit transaction happened, with values Monday through Sunday.

The hour a store credit transaction happened.

Anchor to hour_of_day
hour_of_day

The hour of day a store credit transaction happened, with values 0 through 23.

Anchor to minute
minute

The minute a store credit transaction happened.

Anchor to month
month

The month a store credit transaction happened.

Anchor to month_of_year
month_of_year

The month of year a store credit transaction happened, with values 1 through 12.

Anchor to order_id
order_id

order_id is the unique Shopify identifier for the order linked to the store credit transaction. Use it with order_name to show the customer-facing order name or number.

Anchor to quarter
quarter

The quarter a store credit transaction happened.

Anchor to second
second

The second a store credit transaction 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.

Anchor to store_credit_currency
store_credit_currency

Currency of the store credit transaction

Anchor to store_credit_event
store_credit_event

Values include Adjustment, Order cancellation, Order payment, Order refund, and Payment failure.

Anchor to store_credit_expires_at
store_credit_expires_at

The date and time a credited store credit amount is set to expire.

Anchor to store_credit_id
store_credit_id

Shopify identifier for the store credit transaction

Anchor to store_credit_source
store_credit_source

The origin can appear as Shopify, a staff member's name, or an app name.

The week a store credit transaction happened.

Anchor to week_of_year
week_of_year

The week of year a store credit transaction happened, with values 1 through 53.

The year a store credit transaction happened.

Anchor to company_name
company_name

Name of the company

Anchor to shop_name
shop_name

Name of your store

Anchor to company_location_name
company_location_name

Name of the company location

Anchor to abandoned_checkout_date
abandoned_checkout_date

Date the customer most recently abandoned a cart

Anchor to customer_account_status
customer_account_status

The customer's account state, with values Declined, Disabled, Enabled, and Invited.

Anchor to customer_added_date
customer_added_date

The day the customer record was added, reported in your store's time zone.

Anchor to customer_created_by_app_id
customer_created_by_app_id

The Shopify identifier for the app that created the customer.

Anchor to customer_email
customer_email

Email address of the customer

Anchor to customer_email_domain
customer_email_domain

The part of the customer's email address after the @ symbol, such as gmail.com or your company's domain.

Anchor to customer_language
customer_language

Language associated with the customer

Anchor to customer_name
customer_name

Full name of the customer

Anchor to is_b2b_order
is_b2b_order

Whether the order is a B2B order, with values true and false.

Anchor to is_canceled_order
is_canceled_order

Whether the order is canceled, with values true and false.

Anchor to order_checkout_currency
order_checkout_currency

The currency the buyer saw at checkout when placing the order. Values are currency codes such as USD, CAD, EUR, and GBP.

Anchor to order_fulfillment_status
order_fulfillment_status

The order's fulfillment state, with values Fulfilled, Partial, Restocked, and Unfulfilled.

Anchor to order_includes_duties
order_includes_duties

Whether the order includes duties, with values true and false.

Anchor to order_name
order_name

The name or number of the order as the customer sees it.

Anchor to order_payment_status
order_payment_status

The order's payment state, such as Authorized, Paid, Partially refunded, or Pending.

Anchor to order_sales_channel
order_sales_channel

The sales channel where the order was placed, shown as a channel name such as Online Store or POS.

Anchor to order_sales_channel_id
order_sales_channel_id

The unique Shopify identifier for the order's sales channel. Use order_sales_channel_id with order_sales_channel to show readable channel labels.


Use these expressions inside a MATCHES filter to keep store_credit_transactions rows that have at least one related record matching the parameters. Each parameter filters on a dimension or metric of the related records.

Anchor to customer.orders_placed
customer.orders_placed

Orders the customer placed, filterable by order date, source app, location, order count, and spend.

Anchor to customer.products_purchased
customer.products_purchased

Products the customer bought, filterable by product ID, purchase date, quantity per order, and total quantity.

Anchor to customer.shopify_email.bounced
customer.shopify_email.bounced

Emails that bounced for the customer, filterable by marketing activity, bounce date, and bounce count.

Anchor to customer.shopify_email.clicked
customer.shopify_email.clicked

Emails the customer clicked, filterable by marketing activity, click date, and click count.

Anchor to customer.shopify_email.delivered
customer.shopify_email.delivered

Emails delivered to the customer, filterable by marketing activity, delivery date, and delivery count.

Anchor to customer.shopify_email.marked_as_spam
customer.shopify_email.marked_as_spam

Emails the customer marked as spam, filterable by marketing activity, spam-report date, and spam-report count.

Anchor to customer.shopify_email.opened
customer.shopify_email.opened

Emails the customer opened, filterable by marketing activity, open date, and open count.

Anchor to customer.shopify_email.unsubscribed
customer.shopify_email.unsubscribed

Email unsubscribe events for the customer, filterable by marketing activity, unsubscribe date, and unsubscribe count.

Anchor to customer.store_credit_accounts
customer.store_credit_accounts

Store credit accounts for the customer, filterable by balance, currency, expiry date, and most recent credit date.

Anchor to customer.storefront_event.collection_viewed
customer.storefront_event.collection_viewed

Collection pages the customer viewed, filterable by collection ID, view date, and view count.

Anchor to customer.storefront_event.product_viewed
customer.storefront_event.product_viewed

Product pages the customer viewed, filterable by product ID, view date, and view count.

Anchor to customer.within_distance
customer.within_distance

Customers with an address within a distance of a location, filterable by coordinates and radius.


  • store_credit_summaries: Daily balance snapshots aggregated from these transactions.
  • payments: Transaction data when you want to see how store credit fits into the full payment mix.
  • customers: Customer-level data to enrich the top-spender list with lifetime value.

Was this page helpful?