payments
The payments schema captures payment activity at the transaction level. It's the payment-side view of money moving in and out, connected back to orders, customers, POS, gift cards, and channels.
Anchor to Use casesUse cases
- Payment movement: Show
gross_payments,refunded_payments, andnet_paymentsby month to explain payment movement for a period. - POS reporting: Group
net_payments_excluding_gift_cardsbypos_location_nameto compare payment performance across your physical locations. - Order coverage: Use
orders_with_transactionsandtransactionstogether to distinguish order coverage from transaction volume. - Gift card activity: Report
redeemed_gift_card_valueandrefunded_gift_card_valuebygift_card_idwhen analyzing gift card payment activity.
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 FROM payments.
- Anchor to cash_roundingcash_
roundingcash_ rounding MONEYMONEY Positive values mean cash payments are rounded up, and negative values mean they're rounded down, in your store's currency.
- Anchor to gross_paymentsgross_
paymentsgross_ payments MONEYMONEY Amount of payments before any refunds
- Anchor to net_paymentsnet_
paymentsnet_ payments MONEYMONEY Amount of payments after any refunds
- Anchor to net_payments_excluding_gift_cardsnet_
payments_ excluding_ gift_ cardsnet_ payments_ excluding_ gift_ cards MONEYMONEY Amount of payments after any refunds, excluding amount redeemed from gift cards
- Anchor to orders_with_transactionsorders_
with_ transactionsorders_ with_ transactions INTEGERINTEGER Orders are included when they have a sale or capture transaction.
- Anchor to redeemed_gift_card_valueredeemed_
gift_ card_ valueredeemed_ gift_ card_ value MONEYMONEY Includes successful purchases where a gift card was redeemed, in your store's currency.
- Anchor to refunded_gift_card_valuerefunded_
gift_ card_ valuerefunded_ gift_ card_ value MONEYMONEY Includes successful refunds returned to gift cards, in your store's currency.
- Anchor to refunded_paymentsrefunded_
paymentsrefunded_ payments MONEYMONEY Amount of refunded payments
- Anchor to rounded_net_paymentsrounded_
net_ paymentsrounded_ net_ payments MONEYMONEY - Anchor to transaction_amounttransaction_
amounttransaction_ amount MONEYMONEY Amount of all payment transactions
- Anchor to transactionstransactionstransactionsINTEGERINTEGER
Number of payment transactions
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 FROM payments.
- Anchor to billing_address_idbilling_
address_ idbilling_ address_ id IDENTITYIDENTITY - Anchor to channel_idchannel_
idchannel_ id IDENTITYIDENTITY Shopify identifier for the sales channel (multi-channel app)
- Anchor to credit_card_tiercredit_
card_ tiercredit_ card_ tier STRINGSTRING Values are Standard and Premium.
- Anchor to credit_card_typecredit_
card_ typecredit_ card_ type STRINGSTRING - Anchor to customer_idcustomer_
idcustomer_ id IDENTITYIDENTITY - Anchor to daydaydayDAY_TIMESTAMPDAY_TIMESTAMP
Based on when the payment transaction happened.
- Anchor to day_of_weekday_
of_ weekday_ of_ week DAY_OF_WEEKDAY_OF_WEEK The day of the week a transaction happened, with values Monday through Sunday.
- Anchor to digital_walletdigital_
walletdigital_ wallet STRINGSTRING Digital wallet used for the transaction
- Anchor to gift_card_idgift_
card_ idgift_ card_ id IDENTITYIDENTITY - Anchor to hourhourhourHOUR_TIMESTAMPHOUR_TIMESTAMP
Based on when the payment transaction happened.
- Anchor to hour_of_dayhour_
of_ dayhour_ of_ day HOUR_OF_DAYHOUR_OF_DAY The hour of day a transaction happened, with values 0 through 23.
- Anchor to is_shop_channel_transactionis_
shop_ channel_ transactionis_ shop_ channel_ transaction BOOLEANBOOLEAN Label specifying whether the transaction was processed through the Shop channel
- Anchor to is_shop_pay_transactionis_
shop_ pay_ transactionis_ shop_ pay_ transaction BOOLEANBOOLEAN Shop Cash payments are included as Shop Pay transactions.
- Anchor to minuteminuteminuteMINUTE_TIMESTAMPMINUTE_TIMESTAMP
Based on when the payment transaction happened.
- Anchor to monthmonthmonthMONTH_TIMESTAMPMONTH_TIMESTAMP
Based on when the payment transaction happened.
- Anchor to month_of_yearmonth_
of_ yearmonth_ of_ year MONTH_OF_YEARMONTH_OF_YEAR The month of the year a transaction happened, with values 1 through 12.
- Anchor to new_or_returning_customernew_
or_ returning_ customernew_ or_ returning_ customer STRINGSTRING A payment transaction tied to a customer's first order is New, and one tied to a later order is Returning.
- Anchor to order_idorder_
idorder_ id IDENTITYIDENTITY - Anchor to payment_card_binpayment_
card_ binpayment_ card_ bin STRINGSTRING Values are BINs that identify the card-issuing bank or institution.
- Anchor to payment_card_issuerpayment_
card_ issuerpayment_ card_ issuer STRINGSTRING The issuer of the payment card used for the transaction, such as a bank or card provider.
- Anchor to payment_card_sourcepayment_
card_ sourcepayment_ card_ source STRINGSTRING Values are Credit, Debit, Prepaid, and Unknown.
- Anchor to payment_gatewaypayment_
gatewaypayment_ gateway STRINGSTRING Values are gateway names such as Shopify Payments, Gift Card, Shop Pay Installments, and Cash.
- Anchor to payment_methodpayment_
methodpayment_ method STRINGSTRING Values are payment method names such as Card, PayPal, Klarna, and Gift Card.
- Anchor to pos_location_idpos_
location_ idpos_ location_ id IDENTITYIDENTITY - Anchor to pos_location_namepos_
location_ namepos_ location_ name STRINGSTRING Name of your physical retail location
- Anchor to quarterquarterquarterQUARTER_TIMESTAMPQUARTER_TIMESTAMP
Based on when the payment transaction happened.
- Anchor to secondsecondsecondSECOND_TIMESTAMPSECOND_TIMESTAMP
Based on when the payment transaction happened.
- Anchor to shipping_address_idshipping_
address_ idshipping_ address_ id IDENTITYIDENTITY - Anchor to shop_idshop_
idshop_ id IDENTITYIDENTITY - Anchor to staff_idstaff_
idstaff_ id IDENTITYIDENTITY - Anchor to transaction_currencytransaction_
currencytransaction_ currency STRINGSTRING Currency of the transaction
- Anchor to transaction_idtransaction_
idtransaction_ id IDENTITYIDENTITY - Anchor to transaction_kindtransaction_
kindtransaction_ kind STRINGSTRING Transaction kinds include sale, authorization, capture, refund, etc.
- Anchor to transaction_numbertransaction_
numbertransaction_ number INTEGERINTEGER Number of the transaction
- Anchor to transaction_sale_typetransaction_
sale_ typetransaction_ sale_ type STRINGSTRING Sale type of the transaction, such as Shop App or Shop Pay
- Anchor to transaction_statustransaction_
statustransaction_ status STRINGSTRING Status of the transaction, such as success, pending, or failure
- Anchor to weekweekweekWEEK_TIMESTAMPWEEK_TIMESTAMP
Based on when the payment transaction happened.
- Anchor to week_of_yearweek_
of_ yearweek_ of_ year WEEK_OF_YEARWEEK_OF_YEAR The week of the year a transaction happened, with values 1 through 53.
- Anchor to yearyearyearYEAR_TIMESTAMPYEAR_TIMESTAMP
Based on when the payment transaction happened.
- Anchor to billing_citybilling_
citybilling_ city STRINGSTRING City of the billing address
- Anchor to billing_companybilling_
companybilling_ company STRINGSTRING B2B customer associated with the billing address
- Anchor to billing_countrybilling_
countrybilling_ country STRINGSTRING Country of the billing address (e.g., United States, Canada)
- Anchor to billing_postal_codebilling_
postal_ codebilling_ postal_ code STRINGSTRING Postal code of the billing address
- Anchor to billing_regionbilling_
regionbilling_ region STRINGSTRING State or province of the billing address (e.g., California, Ontario)
- Anchor to shop_nameshop_
nameshop_ name STRINGSTRING Name of your store
- Anchor to abandoned_checkout_dateabandoned_
checkout_ dateabandoned_ checkout_ date DAY_TIMESTAMPDAY_TIMESTAMP Date the customer most recently abandoned a cart
- Anchor to customer_account_statuscustomer_
account_ statuscustomer_ account_ status STRINGSTRING The customer's account state, with values Declined, Disabled, Enabled, and Invited.
- Anchor to customer_added_datecustomer_
added_ datecustomer_ added_ date DAY_TIMESTAMPDAY_TIMESTAMP The day the customer record was added, reported in your store's time zone.
- Anchor to customer_created_by_app_idcustomer_
created_ by_ app_ idcustomer_ created_ by_ app_ id IDENTITYIDENTITY The Shopify identifier for the app that created the customer.
- Anchor to customer_emailcustomer_
emailcustomer_ email STRINGSTRING Email address of the customer
- Anchor to customer_email_domaincustomer_
email_ domaincustomer_ email_ domain STRINGSTRING The part of the customer's email address after the @ symbol, such as gmail.com or your company's domain.
- Anchor to customer_languagecustomer_
languagecustomer_ language STRINGSTRING Language associated with the customer
- Anchor to customer_namecustomer_
namecustomer_ name STRINGSTRING Full name of the customer
- Anchor to customer_email_subscription_statuscustomer_
email_ subscription_ statuscustomer_ email_ subscription_ status STRINGSTRING The customer's email marketing subscription state, with values such as Invalid, Not subscribed, Pending, and Subscribed.
- Anchor to customer_citiescustomer_
citiescustomer_ cities ARRAY<STRING>ARRAY<STRING> All cities in the customer's history of addresses
- Anchor to customer_countriescustomer_
countriescustomer_ countries ARRAY<STRING>ARRAY<STRING> All countries from the customer's address history. Values are country codes such as US, CA, GB, and AU.
- Anchor to customer_regionscustomer_
regionscustomer_ regions ARRAY<STRING>ARRAY<STRING> All states or provinces from the customer's address history. Values are region codes such as US-CA, US-NY, CA-ON, and GB-ENG.
- Anchor to customer_amount_spentcustomer_
amount_ spentcustomer_ amount_ spent MONEYMONEY The customer's all-time spend is shown in your store's currency.
- Anchor to customer_last_order_datecustomer_
last_ order_ datecustomer_ last_ order_ date DAY_TIMESTAMPDAY_TIMESTAMP The day the customer most recently placed an order, reported in your store's time zone.
- Anchor to customer_number_of_orderscustomer_
number_ of_ orderscustomer_ number_ of_ orders INTEGERINTEGER Number of orders the customer has placed across all time
- Anchor to first_order_sales_channelfirst_
order_ sales_ channelfirst_ order_ sales_ channel STRINGSTRING The sales channel where the customer's first order was placed, shown as a channel name such as Online Store or POS.
- Anchor to customer_cohort_monthcustomer_
cohort_ monthcustomer_ cohort_ month MONTH_TIMESTAMPMONTH_TIMESTAMP The month of the customer's first order, reported in your store's time zone.
- Anchor to customer_cohort_quartercustomer_
cohort_ quartercustomer_ cohort_ quarter QUARTER_TIMESTAMPQUARTER_TIMESTAMP The quarter of the customer's first order, reported in your store's time zone.
- Anchor to customer_cohort_weekcustomer_
cohort_ weekcustomer_ cohort_ week WEEK_TIMESTAMPWEEK_TIMESTAMP The week of the customer's first order, reported in your store's time zone.
- Anchor to customer_first_order_datecustomer_
first_ order_ datecustomer_ first_ order_ date DAY_TIMESTAMPDAY_TIMESTAMP The day the customer placed their first order, reported in your store's time zone.
- Anchor to first_order_referring_channelfirst_
order_ referring_ channelfirst_ order_ referring_ channel STRINGSTRING Referring channel associated with the customer's first order
- Anchor to first_order_traffic_typefirst_
order_ traffic_ typefirst_ order_ traffic_ type STRINGSTRING Type of traffic associated with the customer's first order
- Anchor to first_order_has_subscriptionfirst_
order_ has_ subscriptionfirst_ order_ has_ subscription BOOLEANBOOLEAN Whether the customer's first order included a subscription purchase, with values
trueandfalse.- Anchor to first_order_productsfirst_
order_ productsfirst_ order_ products ARRAY<STRING>ARRAY<STRING> Products bought together in the customer's first order
- Anchor to predicted_spend_tierpredicted_
spend_ tierpredicted_ spend_ tier STRINGSTRING The customer's predicted spend tier for the next year, with values Low, Medium, and High.
- Anchor to customer_sms_subscription_statuscustomer_
sms_ subscription_ statuscustomer_ sms_ subscription_ status STRINGSTRING The customer's SMS marketing subscription state, with values such as Not subscribed, Pending, Redacted, and Subscribed.
- Anchor to customer_tagcustomer_
tagcustomer_ tag STRINGSTRING Tag associated with the customer
- ARRAY<STRING>ARRAY<STRING>
Set of tags associated with the customer
- Anchor to rfm_grouprfm_
grouprfm_ group STRINGSTRING A customer relationship label based on recency, frequency, and monetary spend. Values include Champions, Loyal, Needs attention, and At risk.
- Anchor to is_b2b_orderis_
b2b_ orderis_ b2b_ order BOOLEANBOOLEAN Whether the order is a B2B order, with values
trueandfalse.- Anchor to is_canceled_orderis_
canceled_ orderis_ canceled_ order BOOLEANBOOLEAN Whether the order is canceled, with values
trueandfalse.- Anchor to order_checkout_currencyorder_
checkout_ currencyorder_ checkout_ currency STRINGSTRING 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_statusorder_
fulfillment_ statusorder_ fulfillment_ status STRINGSTRING The order's fulfillment state, with values Fulfilled, Partial, Restocked, and Unfulfilled.
- Anchor to order_includes_dutiesorder_
includes_ dutiesorder_ includes_ duties BOOLEANBOOLEAN Whether the order includes duties, with values
trueandfalse.- Anchor to order_nameorder_
nameorder_ name STRINGSTRING The name or number of the order as the customer sees it.
- Anchor to order_payment_statusorder_
payment_ statusorder_ payment_ status STRINGSTRING The order's payment state, such as Authorized, Paid, Partially refunded, or Pending.
- Anchor to order_sales_channelorder_
sales_ channelorder_ sales_ channel STRINGSTRING The sales channel where the order was placed, shown as a channel name such as Online Store or POS.
- Anchor to order_sales_channel_idorder_
sales_ channel_ idorder_ sales_ channel_ id IDENTITYIDENTITY - Anchor to is_shop_referral_orderis_
shop_ referral_ orderis_ shop_ referral_ order BOOLEANBOOLEAN Whether the order was referred from the Shop app or shop.app, with values
trueandfalse.- Anchor to order_landing_page_pathorder_
landing_ page_ pathorder_ landing_ page_ path STRINGSTRING Path of the first page of the user session that resulted in the order
- Anchor to order_landing_page_urlorder_
landing_ page_ urlorder_ landing_ page_ url STRINGSTRING First page of the user session that resulted in the order
- Anchor to order_marketing_event_idorder_
marketing_ event_ idorder_ marketing_ event_ id IDENTITYIDENTITY Shopify identifier for the marketing event associated with the order
- Anchor to order_referrer_domainorder_
referrer_ domainorder_ referrer_ domain STRINGSTRING Domain of the site that led to the order
- Anchor to order_referrer_nameorder_
referrer_ nameorder_ referrer_ name STRINGSTRING The readable name of the site that led to the order.
- Anchor to order_referrer_pathorder_
referrer_ pathorder_ referrer_ path STRINGSTRING Path of the site that led to the order
- Anchor to order_referrer_siteorder_
referrer_ siteorder_ referrer_ site STRINGSTRING Site that led to the order
- Anchor to order_referrer_sourceorder_
referrer_ sourceorder_ referrer_ source STRINGSTRING The referrer type that led to the order, such as organic or email.
- Anchor to order_referrer_urlorder_
referrer_ urlorder_ referrer_ url STRINGSTRING External page that referred a customer and led to the order
- Anchor to order_utm_campaignorder_
utm_ campaignorder_ utm_ campaign STRINGSTRING UTM name of the campaign associated with the order
- Anchor to order_utm_contentorder_
utm_ contentorder_ utm_ content STRINGSTRING The UTM content value associated with the order, often used to distinguish ads, links, or content variations.
- Anchor to order_utm_mediumorder_
utm_ mediumorder_ utm_ medium STRINGSTRING The UTM medium associated with the order, such as email, social, or paid search.
- Anchor to order_utm_sourceorder_
utm_ sourceorder_ utm_ source STRINGSTRING The UTM source associated with the order, such as Google, Facebook, or a newsletter.
- Anchor to order_utm_termorder_
utm_ termorder_ utm_ term STRINGSTRING The UTM term associated with the order, often used for paid search keywords or other tracked terms.
- Anchor to number_of_products_bought_togethernumber_
of_ products_ bought_ togethernumber_ of_ products_ bought_ together INTEGERINTEGER Total unique products in the same order
- Anchor to number_of_variants_bought_togethernumber_
of_ variants_ bought_ togethernumber_ of_ variants_ bought_ together INTEGERINTEGER The number of unique product variants in the same order, with each SKU counted a single time.
- Anchor to products_bought_togetherproducts_
bought_ togetherproducts_ bought_ together ARRAY<STRING>ARRAY<STRING> The product names that appear in the same order.
- Anchor to products_bought_together_idsproducts_
bought_ together_ idsproducts_ bought_ together_ ids ARRAY<INTEGER>ARRAY<INTEGER> The Shopify product identifiers for products in the same order.
- Anchor to variants_bought_togethervariants_
bought_ togethervariants_ bought_ together ARRAY<STRING>ARRAY<STRING> The product variant labels that appear in the same order, such as size, color, or style combinations.
- Anchor to company_idcompany_
idcompany_ id IDENTITYIDENTITY - Anchor to company_namecompany_
namecompany_ name STRINGSTRING Name of the company that placed the order
- Anchor to company_location_idcompany_
location_ idcompany_ location_ id IDENTITYIDENTITY - Anchor to company_location_namecompany_
location_ namecompany_ location_ name STRINGSTRING The company location or branch that placed the order
- Anchor to referring_channelreferring_
channelreferring_ channel STRINGSTRING Marketing channel that referred the customer to place the order
- Anchor to referring_mediumreferring_
mediumreferring_ medium STRINGSTRING The marketing medium that referred the customer to place the order, such as email, social, or search.
- Anchor to referring_platformreferring_
platformreferring_ platform STRINGSTRING The marketing platform that referred the customer to place the order, such as Google, Facebook, or Instagram.
- Anchor to traffic_typetraffic_
typetraffic_ type STRINGSTRING The type of traffic that led to the order, such as organic, paid, or direct.
- Anchor to order_marketing_event_targetorder_
marketing_ event_ targetorder_ marketing_ event_ target STRINGSTRING The platform or channel where the marketing activity was deployed, such as Email, Facebook, Google, or Instagram.
- Anchor to order_marketing_event_typeorder_
marketing_ event_ typeorder_ marketing_ event_ type STRINGSTRING The type of marketing activity that led to the order, such as Ad, Affiliate, Newsletter, or Retargeting. PLA means Product Listing Ads, and SEO means Search Engine Optimization.
- Anchor to marketmarketmarketSTRINGSTRING
Market you've defined in Shopify, like a geographical market or customer group
- Anchor to marketsmarketsmarketsARRAY<STRING>ARRAY<STRING>
Markets or customer segments associated with the order
- Anchor to order_cancellation_reasonorder_
cancellation_ reasonorder_ cancellation_ reason STRINGSTRING The reason specified for the order cancellation, such as Customer, Other, Fraud, or Inventory.
- Anchor to order_risk_levelorder_
risk_ levelorder_ risk_ level STRINGSTRING The fraud risk level Shopify assigned to the order, with values Low, Medium, High, None, and Pending.
- Anchor to order_is_shopify_protect_coveredorder_
is_ shopify_ protect_ coveredorder_ is_ shopify_ protect_ covered BOOLEANBOOLEAN Whether the order has met Shopify Protect fulfillment requirements, including proper shipping and tracking, with values
trueandfalse.- Anchor to order_is_shopify_protect_eligibleorder_
is_ shopify_ protect_ eligibleorder_ is_ shopify_ protect_ eligible BOOLEANBOOLEAN Whether the order qualifies for Shopify Protect, with values
trueandfalse.- Anchor to order_is_shopify_protect_protectedorder_
is_ shopify_ protect_ protectedorder_ is_ shopify_ protect_ protected BOOLEANBOOLEAN Whether the order has full Shopify Protect coverage against fraud, with values
trueandfalse.- Anchor to order_tagorder_
tagorder_ tag STRINGSTRING Tag associated with the order
- ARRAY<STRING>ARRAY<STRING>
Set of tags associated with the order
- Anchor to agentic_referring_channelagentic_
referring_ channelagentic_ referring_ channel STRINGSTRING The AI agent or assistant that referred the session to your online store, with values ChatGPT, Google AI Mode and Gemini, Microsoft Copilot, and Shop.
- Anchor to channel_handlechannel_
handlechannel_ handle STRINGSTRING Name of the marketing channel or platform that drove the marketing engagement
- Anchor to marketing_activity_idmarketing_
activity_ idmarketing_ activity_ id IDENTITYIDENTITY - Anchor to marketing_activity_statusmarketing_
activity_ statusmarketing_ activity_ status STRINGSTRING Current status of the marketing activity (such as Active or Paused)
- Anchor to marketing_activity_titlemarketing_
activity_ titlemarketing_ activity_ title STRINGSTRING Name of the marketing activity
- Anchor to marketing_activity_url_parameter_keymarketing_
activity_ url_ parameter_ keymarketing_ activity_ url_ parameter_ key STRINGSTRING URL parameter key for the marketing activity
- Anchor to marketing_activity_url_parameter_valuemarketing_
activity_ url_ parameter_ valuemarketing_ activity_ url_ parameter_ value STRINGSTRING URL parameter value for the marketing activity
- Anchor to marketing_automation_idmarketing_
automation_ idmarketing_ automation_ id IDENTITYIDENTITY Unique ID that Shopify uses to identify the marketing automation
- Anchor to marketing_delivery_channelmarketing_
delivery_ channelmarketing_ delivery_ channel STRINGSTRING Channel through which the marketing activity is delivered
- Anchor to marketing_event_idmarketing_
event_ idmarketing_ event_ id IDENTITYIDENTITY Unique identifier for the associated marketing event
- Anchor to marketing_platformmarketing_
platformmarketing_ platform STRINGSTRING The marketing platform that created the marketing activity, shown as a platform name.
- Anchor to page_hostpage_
hostpage_ host STRINGSTRING The host name of the session landing page.
- Anchor to page_pathpage_
pathpage_ path STRINGSTRING The path of the session landing page.
- Anchor to page_urlpage_
urlpage_ url STRINGSTRING The URL of the first page viewed in the session.
- Anchor to referrer_urlreferrer_
urlreferrer_ url STRINGSTRING External page that led to an online store session
- Anchor to utm_campaignutm_
campaignutm_ campaign STRINGSTRING UTM name of the campaign associated with the session
- Anchor to utm_contentutm_
contentutm_ content STRINGSTRING The UTM content value associated with the session, often used to distinguish ads, links, or content variations.
- Anchor to utm_mediumutm_
mediumutm_ medium STRINGSTRING The UTM medium associated with the session, such as email, social, or paid search.
- Anchor to utm_sourceutm_
sourceutm_ source STRINGSTRING The UTM source associated with the session, such as Google, Facebook, or a newsletter.
- Anchor to utm_termutm_
termutm_ term STRINGSTRING The UTM term associated with the session, often used for paid search keywords or other tracked terms.
- Anchor to pos_register_idpos_
register_ idpos_ register_ id IDENTITYIDENTITY Identifier for the register at your physical retail location
- Anchor to shipping_cityshipping_
cityshipping_ city STRINGSTRING City of the shipping address
- Anchor to shipping_companyshipping_
companyshipping_ company STRINGSTRING Company of the shipping address
- Anchor to shipping_countryshipping_
countryshipping_ country STRINGSTRING Country of the shipping address (e.g., United States, Canada)
- Anchor to shipping_postal_codeshipping_
postal_ codeshipping_ postal_ code STRINGSTRING Postal code of the shipping address
- Anchor to shipping_regionshipping_
regionshipping_ region STRINGSTRING State or province of the shipping address (e.g., California, Ontario)
- Anchor to staff_member_namestaff_
member_ namestaff_ member_ name STRINGSTRING Name of the staff member associated with the order
IDENTITY
A unique identifier for a Shopify resource such as a customer, product, or order.
STRING
A sequence of characters representing text data.
DAY_TIMESTAMP
A date value truncated to day precision.
DAY_OF_WEEK
A day within a week, used for weekday-based grouping and filtering.
HOUR_TIMESTAMP
A timestamp truncated to hour precision.
HOUR_OF_DAY
An hour within a day, typically represented as an integer from 0 to 23.
BOOLEAN
A true or false value representing binary states.
MINUTE_TIMESTAMP
A timestamp truncated to minute precision.
MONTH_TIMESTAMP
A date value representing the start of a month.
MONTH_OF_YEAR
A month number within a year.
QUARTER_TIMESTAMP
A date value representing the start of a fiscal quarter.
SECOND_TIMESTAMP
A timestamp truncated to second precision.
WEEK_TIMESTAMP
A date value representing the start of a week.
WEEK_OF_YEAR
A week number within a year.
YEAR_TIMESTAMP
A date value representing the start of a year.
ARRAY
A list of values. The element type appears inside angle brackets, such as ARRAY<STRING>.
Anchor to MATCHES expressionsMATCHES expressions
Use these expressions inside a MATCHES filter to keep payments 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_placedcustomer.
orders_ placedcustomer. orders_ placed PaymentsCustomerOrdersPlacedConditionsPaymentsCustomerOrdersPlacedConditions Orders the customer placed, filterable by order date, source app, location, order count, and spend.
- Anchor to customer.products_purchasedcustomer.
products_ purchasedcustomer. products_ purchased PaymentsCustomerProductsPurchasedConditionsPaymentsCustomerProductsPurchasedConditions Products the customer bought, filterable by product ID, purchase date, quantity per order, and total quantity.
- Anchor to customer.shopify_email.bouncedcustomer.
shopify_ email. bouncedcustomer. shopify_ email. bounced PaymentsCustomerShopifyEmailBouncedConditionsPaymentsCustomerShopifyEmailBouncedConditions Emails that bounced for the customer, filterable by marketing activity, bounce date, and bounce count.
- Anchor to customer.shopify_email.clickedcustomer.
shopify_ email. clickedcustomer. shopify_ email. clicked PaymentsCustomerShopifyEmailClickedConditionsPaymentsCustomerShopifyEmailClickedConditions Emails the customer clicked, filterable by marketing activity, click date, and click count.
- Anchor to customer.shopify_email.deliveredcustomer.
shopify_ email. deliveredcustomer. shopify_ email. delivered PaymentsCustomerShopifyEmailDeliveredConditionsPaymentsCustomerShopifyEmailDeliveredConditions Emails delivered to the customer, filterable by marketing activity, delivery date, and delivery count.
- Anchor to customer.shopify_email.marked_as_spamcustomer.
shopify_ email. marked_ as_ spamcustomer. shopify_ email. marked_ as_ spam PaymentsCustomerShopifyEmailMarkedAsSpamConditionsPaymentsCustomerShopifyEmailMarkedAsSpamConditions Emails the customer marked as spam, filterable by marketing activity, spam-report date, and spam-report count.
- Anchor to customer.shopify_email.openedcustomer.
shopify_ email. openedcustomer. shopify_ email. opened PaymentsCustomerShopifyEmailOpenedConditionsPaymentsCustomerShopifyEmailOpenedConditions Emails the customer opened, filterable by marketing activity, open date, and open count.
- Anchor to customer.shopify_email.unsubscribedcustomer.
shopify_ email. unsubscribedcustomer. shopify_ email. unsubscribed PaymentsCustomerShopifyEmailUnsubscribedConditionsPaymentsCustomerShopifyEmailUnsubscribedConditions Email unsubscribe events for the customer, filterable by marketing activity, unsubscribe date, and unsubscribe count.
- Anchor to customer.store_credit_accountscustomer.
store_ credit_ accountscustomer. store_ credit_ accounts PaymentsCustomerStoreCreditAccountsConditionsPaymentsCustomerStoreCreditAccountsConditions Store credit accounts for the customer, filterable by balance, currency, expiry date, and most recent credit date.
- Anchor to customer.storefront_event.collection_viewedcustomer.
storefront_ event. collection_ viewedcustomer. storefront_ event. collection_ viewed PaymentsCustomerStorefrontEventCollectionViewedConditionsPaymentsCustomerStorefrontEventCollectionViewedConditions Collection pages the customer viewed, filterable by collection ID, view date, and view count.
- Anchor to customer.storefront_event.product_viewedcustomer.
storefront_ event. product_ viewedcustomer. storefront_ event. product_ viewed PaymentsCustomerStorefrontEventProductViewedConditionsPaymentsCustomerStorefrontEventProductViewedConditions Product pages the customer viewed, filterable by product ID, view date, and view count.
- Anchor to customer.within_distancecustomer.
within_ distancecustomer. within_ distance PaymentsCustomerWithinDistanceConditionsPaymentsCustomerWithinDistanceConditions Customers with an address within a distance of a location, filterable by coordinates and radius.
PaymentsCustomerOrdersPlacedConditions
Fields you can use inside `customer.orders_placed MATCHES (...)` when querying `FROM payments`.
- amount
Filter. Amount spent per order.
MONEY - app_id
Filter. App ID associated with the order.
IDENTITY - date
Filter. Date the order was placed.
TIMESTAMP - location_id
Filter. Location ID associated with the order.
IDENTITY - count
Metric. Number of orders placed.
INTEGER - sum_amount
Metric. Amount spent in the date range.
MONEY
TIMESTAMP
A full-precision timestamp including date and time.
PaymentsCustomerProductsPurchasedConditions
Fields you can use inside `customer.products_purchased MATCHES (...)` when querying `FROM payments`.
- date
Filter. Date the product(s) were purchased.
TIMESTAMP - id
Filter. Product IDs.
IDENTITY - quantity
Filter. Number purchased per order.
INTEGER - sum_quantity
Metric. Number purchased within the date range.
INTEGER
PaymentsCustomerShopifyEmailBouncedConditions
Fields you can use inside `customer.shopify_email.bounced MATCHES (...)` when querying `FROM payments`.
- activity_id
Filter. Marketing activity ID of the email campaign.
IDENTITY - date
Filter. Date on which the email was bounced.
TIMESTAMP - count
Metric. Exact number of times an email was bounced.
INTEGER
PaymentsCustomerShopifyEmailClickedConditions
Fields you can use inside `customer.shopify_email.clicked MATCHES (...)` when querying `FROM payments`.
- activity_id
Filter. Marketing activity ID of the email campaign.
IDENTITY - date
Filter. Date on which the email was clicked.
TIMESTAMP - count
Metric. Exact number of times an email was clicked.
INTEGER
PaymentsCustomerShopifyEmailDeliveredConditions
Fields you can use inside `customer.shopify_email.delivered MATCHES (...)` when querying `FROM payments`.
- activity_id
Filter. Marketing activity ID of the email campaign.
IDENTITY - date
Filter. Date on which the email was delivered.
TIMESTAMP - count
Metric. Exact number of times an email was delivered.
INTEGER
PaymentsCustomerShopifyEmailMarkedAsSpamConditions
Fields you can use inside `customer.shopify_email.marked_as_spam MATCHES (...)` when querying `FROM payments`.
- activity_id
Filter. Marketing activity ID of the email campaign.
IDENTITY - date
Filter. Date on which the email was marked as spam.
TIMESTAMP - count
Metric. Exact number of times an email was marked as spam.
INTEGER
PaymentsCustomerShopifyEmailOpenedConditions
Fields you can use inside `customer.shopify_email.opened MATCHES (...)` when querying `FROM payments`.
- activity_id
Filter. Marketing activity ID of the email campaign.
IDENTITY - date
Filter. Date on which the email was opened.
TIMESTAMP - count
Metric. Exact number of times an email was opened.
INTEGER
PaymentsCustomerShopifyEmailUnsubscribedConditions
Fields you can use inside `customer.shopify_email.unsubscribed MATCHES (...)` when querying `FROM payments`.
- activity_id
Filter. Marketing activity ID of the email campaign.
IDENTITY - date
Filter. Date on which the email was unsubscribed.
TIMESTAMP - count
Metric. Exact number of times an email was unsubscribed.
INTEGER
PaymentsCustomerStoreCreditAccountsConditions
Fields you can use inside `customer.store_credit_accounts MATCHES (...)` when querying `FROM payments`.
- balance
Filter. Amount available to spend.
FLOAT - currency
Filter. Currency associated with the account.
STRING - last_credit_date
Filter. Date when credits were last added.
TIMESTAMP - next_expiry_date
Filter. Date when credits expire.
TIMESTAMP
FLOAT
A floating-point number used for measurements, rates, and other continuous numeric values.
PaymentsCustomerStorefrontEventCollectionViewedConditions
Fields you can use inside `customer.storefront_event.collection_viewed MATCHES (...)` when querying `FROM payments`.
- date
Filter. Date collection was viewed.
TIMESTAMP - id
Filter. Collection ID.
IDENTITY - count
Metric. Times collection was viewed.
INTEGER
PaymentsCustomerStorefrontEventProductViewedConditions
Fields you can use inside `customer.storefront_event.product_viewed MATCHES (...)` when querying `FROM payments`.
- date
Filter. Date product was viewed.
TIMESTAMP - id
Filter. Product ID.
IDENTITY - count
Metric. Times product was viewed.
INTEGER
PaymentsCustomerWithinDistanceConditions
Fields you can use inside `customer.within_distance MATCHES (...)` when querying `FROM payments`.
- coordinates
Filter. Latitude and longitude of location. Required.
GEO_COORDINATE - distance_km
Filter. Maximum distance from location, in kilometers. Required: provide one of the `distance_km/mi` group.
FLOAT - distance_mi
Filter. Maximum distance from location, in miles. Required: provide one of the `distance_km/mi` group.
FLOAT
GEO_COORDINATE
A geographic coordinate value.
payouts: Bank deposit data downstream of these transactions.fees: Processing and FX costs charged on each transaction.payment_attempts: Authorization rate and failure analysis upstream of successful transactions.chargebacks: Disputed transactions when you want to size fraud losses.