Skip to main content

payment_attempts

The payment_attempts schema captures attempts to authorize payment at checkout, with one row per group of attempts. Use it to analyze authorization rates and retries.


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

Anchor to failed_payment_attempts
failed_payment_attempts

Number of failed payment attempts

Anchor to payment_authorization_rate
payment_authorization_rate

The share of purchase payment attempts that succeed, with retries for the same purchase counted one time.

Payment authorization rate = successful_payments / unique_payment_attempts

Anchor to payment_authorization_rate_raw
payment_authorization_rate_raw

The share of all payment attempts that succeed, including retried payments.

Payment authorization rate (raw) = successful_payments / total_payment_attempts

Anchor to successful_payments
successful_payments

Number of successful payments

Anchor to total_payment_attempts
total_payment_attempts

Total number of payment attempts, with retried payments counted as separate attempts

Anchor to unique_payment_attempts
unique_payment_attempts

The number of purchase payment attempts, with retries for the same purchase counted once. Use unique_payment_attempts to track payment attempt volume without retry activity inflating the result.


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

The day a payment was first attempted.

Anchor to day_of_week
day_of_week

The day of the week the first payment attempt happened, with values Monday through Sunday.

The hour a payment was first attempted.

Anchor to hour_of_day
hour_of_day

The hour of day the first payment attempt happened, with values 0 through 23.

Anchor to is_in_person_payment
is_in_person_payment

Label indicating whether the payment was made in person

Anchor to minute
minute

The minute a payment was first attempted.

Anchor to month
month

The month a payment was first attempted.

Anchor to month_of_year
month_of_year

The month of the year the first payment attempt happened, with values 1 through 12.

Anchor to order_id
order_id

The unique Shopify identifier for the order tied to the payment attempt. Use order_id to filter to a specific order, or use it with order_name to show a customer-facing label.

Anchor to payment_attempt_amount
payment_attempt_amount

The amount the customer tries to pay, in your store's currency.

Anchor to payment_attempt_amount_customer_currency
payment_attempt_amount_customer_currency

The amount the customer tried to pay, in the customer’s currency. Use payment_attempt_amount_customer_currency with payment_attempt_currency to review attempted amounts as the customer saw them.

Anchor to payment_attempt_currency
payment_attempt_currency

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

Anchor to payment_attempt_group
payment_attempt_group

Shopify identifier for the payment attempt group

Anchor to payment_card_bin
payment_card_bin

Bank Identification Number (BIN) of the payment card

Anchor to payment_card_bin_country
payment_card_bin_country

The country tied to the card's Bank Identification Number, or BIN.

Anchor to payment_card_brand
payment_card_brand

Values are card brand names such as Visa, Mastercard, American Express, and Discover.

Anchor to payment_card_wallet
payment_card_wallet

The digital wallet used for the payment, when a wallet was used. Values are wallet names such as Apple Pay, Google Pay, and Shop Pay.

Anchor to payment_first_attempted_at
payment_first_attempted_at

The exact time the first payment attempt happened, reported in your store's time zone.

Anchor to payment_last_attempted_at
payment_last_attempted_at

Timestamp of the last payment attempt

Anchor to payment_method
payment_method

Values are payment method names such as Card, PayPal, Gift Card, and Klarna.

Anchor to payment_source
payment_source

Source of funds used for the payment

Anchor to quarter
quarter

The quarter a payment was first attempted.

Anchor to second
second

The second a payment was first attempted.

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 a payment was first attempted.

Anchor to week_of_year
week_of_year

The week of the year the first payment attempt happened, with values 1 through 53.

The year a payment was first attempted.

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.

Anchor to shop_name
shop_name

Name of your store

Anchor to is_shop_referral_order
is_shop_referral_order

Whether the order was referred from the Shop app or shop.app, with values true and false.

Anchor to order_landing_page_path
order_landing_page_path

Path of the first page of the user session that resulted in the order

Anchor to order_landing_page_url
order_landing_page_url

First page of the user session that resulted in the order

Anchor to order_marketing_event_id
order_marketing_event_id

Shopify identifier for the marketing event associated with the order

Anchor to order_referrer_domain
order_referrer_domain

Domain of the site that led to the order

Anchor to order_referrer_name
order_referrer_name

The readable name of the site that led to the order.

Anchor to order_referrer_path
order_referrer_path

Path of the site that led to the order

Anchor to order_referrer_site
order_referrer_site

Site that led to the order

Anchor to order_referrer_source
order_referrer_source

The referrer type that led to the order, such as organic or email.

Anchor to order_referrer_url
order_referrer_url

External page that referred a customer and led to the order

Anchor to order_utm_campaign
order_utm_campaign

UTM name of the campaign associated with the order

Anchor to order_utm_content
order_utm_content

The UTM content value associated with the order, often used to distinguish ads, links, or content variations.

Anchor to order_utm_medium
order_utm_medium

The UTM medium associated with the order, such as email, social, or paid search.

Anchor to order_utm_source
order_utm_source

The UTM source associated with the order, such as Google, Facebook, or a newsletter.

Anchor to order_utm_term
order_utm_term

The UTM term associated with the order, often used for paid search keywords or other tracked terms.

Anchor to number_of_products_bought_together
number_of_products_bought_together

Total unique products in the same order

Anchor to number_of_variants_bought_together
number_of_variants_bought_together

The number of unique product variants in the same order, with each SKU counted a single time.

Anchor to products_bought_together
products_bought_together
<>

The product names that appear in the same order.

Anchor to products_bought_together_ids
products_bought_together_ids
<>

The Shopify product identifiers for products in the same order.

Anchor to variants_bought_together
variants_bought_together
<>

The product variant labels that appear in the same order, such as size, color, or style combinations.

Anchor to company_id
company_id

The unique Shopify identifier for the company. Use company_id with company_name to show readable company labels.

Anchor to company_name
company_name

Name of the company that placed the order

Anchor to company_location_id
company_location_id

The unique Shopify identifier for the company location. Use company_location_id with company_location_name to show readable company location labels.

Anchor to company_location_name
company_location_name

The company location or branch that placed the order

Anchor to referring_channel
referring_channel

Marketing channel that referred the customer to place the order

Anchor to referring_medium
referring_medium

The marketing medium that referred the customer to place the order, such as email, social, or search.

Anchor to referring_platform
referring_platform

The marketing platform that referred the customer to place the order, such as Google, Facebook, or Instagram.

Anchor to traffic_type
traffic_type

The type of traffic that led to the order, such as organic, paid, or direct.

Anchor to order_marketing_event_target
order_marketing_event_target

The platform or channel where the marketing activity was deployed, such as Email, Facebook, Google, or Instagram.

Anchor to order_marketing_event_type
order_marketing_event_type

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 market
market

Market you've defined in Shopify, like a geographical market or customer group

Anchor to markets
markets
<>

Markets or customer segments associated with the order

Anchor to order_cancellation_reason
order_cancellation_reason

The reason specified for the order cancellation, such as Customer, Other, Fraud, or Inventory.

Anchor to order_risk_level
order_risk_level

The fraud risk level Shopify assigned to the order, with values Low, Medium, High, None, and Pending.

Anchor to order_is_shopify_protect_covered
order_is_shopify_protect_covered

Whether the order has met Shopify Protect fulfillment requirements, including proper shipping and tracking, with values true and false.

Anchor to order_is_shopify_protect_eligible
order_is_shopify_protect_eligible

Whether the order qualifies for Shopify Protect, with values true and false.

Anchor to order_is_shopify_protect_protected
order_is_shopify_protect_protected

Whether the order has full Shopify Protect coverage against fraud, with values true and false.

Anchor to order_tag
order_tag

Tag associated with the order

Anchor to order_tags
order_tags
<>

Set of tags associated with the order

Anchor to agentic_referring_channel
agentic_referring_channel

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_handle
channel_handle

Name of the marketing channel or platform that drove the marketing engagement

Anchor to marketing_activity_id
marketing_activity_id

The unique Shopify identifier for the marketing activity. Use marketing_activity_id with marketing_activity_title to show readable activity labels.

Anchor to marketing_activity_status
marketing_activity_status

Current status of the marketing activity (such as Active or Paused)

Anchor to marketing_activity_title
marketing_activity_title

Name of the marketing activity

Anchor to marketing_activity_url_parameter_key
marketing_activity_url_parameter_key

URL parameter key for the marketing activity

Anchor to marketing_activity_url_parameter_value
marketing_activity_url_parameter_value

URL parameter value for the marketing activity

Anchor to marketing_automation_id
marketing_automation_id

Unique ID that Shopify uses to identify the marketing automation

Anchor to marketing_delivery_channel
marketing_delivery_channel

Channel through which the marketing activity is delivered

Anchor to marketing_event_id
marketing_event_id

Unique identifier for the associated marketing event

Anchor to marketing_platform
marketing_platform

The marketing platform that created the marketing activity, shown as a platform name.

Anchor to page_host
page_host

The host name of the session landing page.

Anchor to page_path
page_path

The path of the session landing page.

Anchor to page_url
page_url

The URL of the first page viewed in the session.

Anchor to referrer_url
referrer_url

External page that led to an online store session

Anchor to utm_campaign
utm_campaign

UTM name of the campaign associated with the session

Anchor to utm_content
utm_content

The UTM content value associated with the session, often used to distinguish ads, links, or content variations.

Anchor to utm_medium
utm_medium

The UTM medium associated with the session, such as email, social, or paid search.

Anchor to utm_source
utm_source

The UTM source associated with the session, such as Google, Facebook, or a newsletter.

Anchor to utm_term
utm_term

The UTM term associated with the session, often used for paid search keywords or other tracked terms.


  • payments: Successful transaction data downstream of these attempts.
  • chargebacks: Disputed transactions that started as successful attempts.

Was this page helpful?