Stripe | Financial Infrastructure to Grow Your Revenue

Stripe | Financial Infrastructure to Grow Your Revenue

5282 articles

Query Connect payments data


Query Connect payments data

Inspect individual Connect charges and analyse transaction-level revenue, fees, costs and margin.

The connect_payments table provides transaction-level payment data across connected account types, fee-payer configurations and Connect charge flows. You can use it to investigate individual charges and analyse payment volume, revenue, itemised fees, network costs and margin. Each row shows the current cumulative state of a charge, with refunds and disputes represented as signed amounts on the charge row. Learn more about the features for Connect analytical data.

Before you begin

Review the table details before you get started:

DetailValue
Table nameconnect_payments
Schema structureWide (one row per charge in settlement currency)
GrainOne row per charge_id and currency
Date coverageJanuary 2024 to present
CadenceDaily
FreshnessApproximately T-3 days

Get started

The following query retrieves the charges for a connected account in a given month. Use it to investigate account-level changes in the financial summary or to inspect revenue and margin for individual charges.

SELECT
 charge_id,
 primary_charge_created_date,
 payment_method_type,
 card_brand,
 card_network,
 fees_payer,
 currency,
 amount,
 refunded_amount,
 disputed_amount,
 revenue__application_fee_amount,
 revenue__revshare_amount,
 margin_amount,
 margin_amount_usd,
 ROUND(
 CAST(1.0 AS double) * margin_amount_usd
 / NULLIF(amount_usd, 0) * 10000,
 1
 ) AS margin_bps
FROM connect_payments
WHERE connected_account_merchant_id = 'acct_XXXX'
 AND DATE_TRUNC('month', primary_charge_created_date) = DATE '2024-07-01'
ORDER BY primary_charge_created_date DESC

Schema overview

The connect_payments table is a wide, current-cumulative-state fact table. The schema shows different types of data in the following ways:

  • Multicapture charges are collapsed into one row that reflects the amounts of all captures.
  • When separate charges and transfers involve multiple connected accounts, connected _ account _ merchant _ id identifies the first connected account.
  • Standalone charges made by connected accounts appear as a single row.
  • All monetary values use the charge’s settlement currency and are expressed in major units. For example, 23. 97 represents 23.97 USD when currency is usd .
  • Refund, dispute, reversal and fee fields are negative.
  • For cross-currency charges, settlement amounts can differ from amounts in the charge’s original currency.

Identity and transaction columns

These columns identify the payment, its Connect relationship, payment method details, timing and capture state. Use connected_account_merchant_id to join with the connected accounts and financial summary datasets where applicable.

ColumnTypeDescription
charge_idstringStripe charge or unified payment identifier associated with the payment.
currencystringISO 4217 currency code in which the payment settled.
customer_idstringStripe Customer identifier associated with the payment, when available.
charge_flowstringConnect charge flow used for the payment.
connected_account_merchant_idstringStripe account identifier of the connected account attributed to the payment.
connected_account_merchant_countrystringISO 3166-1 alpha-2 country code of the attributed connected account.
destination_merchant_idstringStripe merchant identifier receiving the destination transfer, when applicable.
on_behalf_of_merchant_idstringStripe merchant identifier represented by the payment, when applicable.
card_brandstringCard brand for card payments, when available.
card_fundingstringCard funding type, such as credit, debit or prepaid.
card_countrystringIssuing country of the card, when available.
card_networkstringCard network used to process the payment, when available.
payment_method_typestringUser-facing payment method name, such as card or sepa_debit.
fees_payerstringParty billed for the applicable payment fees.
primary_charge_created_datetimestampTimestamp when the primary charge was created.
captured_attimestampTimestamp when the payment was captured, when applicable.
amountdecimalPayment amount in the settlement currency.
amount_usddecimalPayment amount converted to USD.
is_payment_successfulbooleanWhether the payment completed successfully.
number_multi_capturesintegerNumber of captures associated with the payment.
is_multi_capturebooleanWhether the payment was settled through multiple captures.

Transfer, refund, dispute and reversal columns

These columns describe the cumulative transfer, refund, dispute and reversal activity associated with the payment.

ColumnTypeDescription
transfer_countintegerNumber of transfers associated with the payment.
transfer_idsstringSerialised list of transfer identifiers associated with the payment.
revenue__transfer_amountdecimalTotal amount transferred to the connected account.
revenue__transfer_currencystringCurrency of the transfer amount.
revenue__transfer_amount_usddecimalTotal transfer amount converted to USD.
first_transfer_created_attimestampTimestamp when the first associated transfer was created.
refund_idsstringSerialised list of refund identifiers associated with the payment.
refunded_amountdecimalTotal amount refunded for the payment.
refunded_currencystringCurrency of the refunded amount.
refunded_amount_usddecimalTotal refunded amount converted to USD.
refunds_countintegerNumber of refunds associated with the payment.
refunded_attimestampTimestamp when the payment was refunded, when applicable.
dispute_idsstringSerialised list of dispute identifiers associated with the payment.
disputed_amountdecimalTotal amount disputed for the payment.
disputed_currencystringCurrency of the disputed amount.
disputed_amount_usddecimalTotal disputed amount converted to USD.
dispute_countintegerNumber of disputes associated with the payment.
disputed_attimestampTimestamp when the payment was disputed, when applicable.
reversal_idsstringSerialised list of transfer-reversal identifiers associated with the payment.
revenue__transfer_reversal_amountdecimalTotal transfer reversal amount associated with the payment.
revenue__transfer_reversal_currencystringCurrency of the transfer reversal amount.
revenue__transfer_reversal_amount_usddecimalTotal transfer reversal amount converted to USD.
reversal_countintegerNumber of transfer reversals associated with the payment.
first_transfer_reversal_created_attimestampTimestamp when the first associated transfer reversal was created.

Revenue columns

Revenue fields contain the platform’s earnings and transfer amounts associated with the payment.

ColumnTypeDescription
number_of_app_feesintegerNumber of application fees associated with the payment.
number_of_app_fee_refundsintegerNumber of application fee refunds associated with the payment.
revenue__application_fee_amountdecimalApplication fee collected on the payment.
revenue__application_fee_currencystringCurrency of the application fee.
revenue__application_fee_amount_usddecimalApplication fee amount converted to USD.
revenue__application_fee_refunded_amountdecimalApplication fee refund amount associated with the payment.
revenue__application_fee_refunded_currencystringCurrency of the application fee refund amount.
revenue__application_fee_refunded_amount_usddecimalApplication fee refund amount converted to USD.
revenue__implicit_application_fee_amountdecimalImplicit application fee amount collected on the payment.
revenue__implicit_application_fee_currencystringCurrency of the implicit application fee.
revenue__implicit_application_fee_amount_usddecimalImplicit application fee amount converted to USD.
revenue__revshare_amountdecimalRevenue share amount earned by the platform.
revenue__revshare_currencystringCurrency of the revenue share amount.
revenue__revshare_amount_usddecimalRevenue share amount converted to USD.
revenue__application_fee_instant_payouts_amountdecimalApplication fee amount associated with instant payouts.
revenue__application_fee_instant_payouts_currencystringCurrency of the application fee instant payout amount.
revenue__application_fee_instant_payouts_amount_usddecimalApplication fee instant payout amount converted to USD.

Network cost columns

These columns itemise card network costs and their taxes.

ColumnTypeDescription
network_costs__subtotal_amountdecimalCard network cost subtotal for the payment.
network_costs__subtotal_currencystringCurrency of the card network cost subtotal.
network_costs__subtotal_amount_usddecimalCard network cost subtotal converted to USD.
network_costs__tax_amountdecimalTax charged on card network costs.
network_costs__tax_currencystringCurrency of the card network cost tax.
network_costs__tax_amount_usddecimalCard network cost tax converted to USD.
network_costs__other_subtotal_amountdecimalOther card network cost subtotal.
network_costs__other_subtotal_currencystringCurrency of other card network costs.
network_costs__other_subtotal_amount_usddecimalOther card network cost subtotal converted to USD.

Stripe fee columns

These columns itemise Stripe processing, product, and Connect fees. Fee categories include amount, currency and USD-converted variants where available.

ColumnTypeDescription
stripe_fees__per_auth_fee_subtotal_amountdecimalStripe per-authorisation fee subtotal.
stripe_fees__per_auth_fee_subtotal_currencystringCurrency of the Stripe per-authorisation fee subtotal.
stripe_fees__per_auth_fee_subtotal_amount_usddecimalStripe per-authorisation fee subtotal converted to USD.
stripe_fees__per_auth_fee_tax_amountdecimalTax charged on the Stripe per-authorisation fee.
stripe_fees__per_auth_fee_tax_currencystringCurrency of the Stripe per-authorisation fee tax.
stripe_fees__per_auth_fee_tax_amount_usddecimalStripe per-authorisation fee tax converted to USD.
stripe_fees__volume_fee_subtotal_amountdecimalStripe volume-based fee subtotal.
stripe_fees__volume_fee_subtotal_currencystringCurrency of the Stripe volume-based fee subtotal.
stripe_fees__volume_fee_subtotal_amount_usddecimalStripe volume-based fee subtotal converted to USD.
stripe_fees__volume_fee_tax_amountdecimalTax charged on the Stripe volume-based fee.
stripe_fees__volume_fee_tax_currencystringCurrency of the Stripe volume-based fee tax.
stripe_fees__volume_fee_tax_amount_usddecimalStripe volume-based fee tax converted to USD.
stripe_fees__other_card_payments_fees_subtotal_amountdecimalOther Stripe card payment fee subtotal.
stripe_fees__other_card_payments_fees_subtotal_currencystringCurrency of other Stripe card payment fees.
stripe_fees__other_card_payments_fees_subtotal_amount_usddecimalOther Stripe card payment fees converted to USD.
stripe_fees__other_card_payments_fees_tax_amountdecimalTax charged on other Stripe card payment fees.
stripe_fees__other_card_payments_fees_tax_currencystringCurrency of tax on other Stripe card payment fees.
stripe_fees__other_card_payments_fees_tax_amount_usddecimalTax on other Stripe card payment fees converted to USD.
stripe_fees__processing_fees_subtotal_amountdecimalStripe processing fee subtotal.
stripe_fees__processing_fees_subtotal_currencystringCurrency of the Stripe processing fee subtotal.
stripe_fees__processing_fees_subtotal_amount_usddecimalStripe processing fee subtotal converted to USD.
stripe_fees__processing_fees_tax_amountdecimalTax charged on Stripe processing fees.
stripe_fees__processing_fees_tax_currencystringCurrency of Stripe processing fee tax.
stripe_fees__processing_fees_tax_amount_usddecimalStripe processing fee tax converted to USD.
stripe_fees__dispute_fees_subtotal_amountdecimalStripe dispute processing fee subtotal.
stripe_fees__dispute_fees_subtotal_currencystringCurrency of the Stripe dispute processing fee subtotal.
stripe_fees__dispute_fees_subtotal_amount_usddecimalStripe dispute processing fee subtotal converted to USD.
stripe_fees__dispute_fees_tax_amountdecimalTax charged on Stripe dispute processing fees.
stripe_fees__dispute_fees_tax_currencystringCurrency of Stripe dispute processing fee tax.
stripe_fees__dispute_fees_tax_amount_usddecimalStripe dispute processing fee tax converted to USD.
stripe_fees__refund_fees_subtotal_amountdecimalStripe refund processing fee subtotal.
stripe_fees__refund_fees_subtotal_currencystringCurrency of the Stripe refund processing fee subtotal.
stripe_fees__refund_fees_subtotal_amount_usddecimalStripe refund processing fee subtotal converted to USD.
stripe_fees__refund_fees_tax_amountdecimalTax charged on Stripe refund processing fees.
stripe_fees__refund_fees_tax_currencystringCurrency of Stripe refund processing fee tax.
stripe_fees__refund_fees_tax_amount_usddecimalStripe refund processing fee tax converted to USD.
stripe_fees__radar_subtotal_amountdecimalStripe Radar fee subtotal.
stripe_fees__radar_subtotal_currencystringCurrency of the Stripe Radar fee subtotal.
stripe_fees__radar_subtotal_amount_usddecimalStripe Radar fee subtotal converted to USD.
stripe_fees__radar_tax_amountdecimalTax charged on Stripe Radar fees.
stripe_fees__radar_tax_currencystringCurrency of Stripe Radar fee tax.
stripe_fees__radar_tax_amount_usddecimalStripe Radar fee tax converted to USD.
stripe_fees__adaptive_acceptance_fee_subtotal_amountdecimalStripe Adaptive Acceptance fee subtotal.
stripe_fees__adaptive_acceptance_fee_subtotal_currencystringCurrency of the Adaptive Acceptance fee subtotal.
stripe_fees__adaptive_acceptance_fee_subtotal_amount_usddecimalAdaptive Acceptance fee subtotal converted to USD.
stripe_fees__adaptive_acceptance_fee_tax_amountdecimalTax charged on Adaptive Acceptance fees.
stripe_fees__adaptive_acceptance_fee_tax_currencystringCurrency of Adaptive Acceptance fee tax.
stripe_fees__adaptive_acceptance_fee_tax_amount_usddecimalAdaptive Acceptance fee tax converted to USD.
stripe_fees__connect_loss_liability_subtotal_amountdecimalConnect loss liability fee subtotal.
stripe_fees__connect_loss_liability_subtotal_currencystringCurrency of the Connect loss liability fee subtotal.
stripe_fees__connect_loss_liability_subtotal_amount_usddecimalConnect loss liability fee subtotal converted to USD.
stripe_fees__connect_loss_liability_tax_amountdecimalTax charged on the Connect loss liability fee.
stripe_fees__connect_loss_liability_tax_currencystringCurrency of Connect loss liability fee tax.
stripe_fees__connect_loss_liability_tax_amount_usddecimalConnect loss liability fee tax converted to USD.
stripe_fees__connect_account_initiation_billing_subtotal_amountdecimalConnect account initiation billing fee subtotal.
stripe_fees__connect_account_initiation_billing_subtotal_currencystringCurrency of the Connect account initiation billing fee subtotal.
stripe_fees__connect_account_initiation_billing_subtotal_amount_usddecimalConnect account initiation billing fee converted to USD.
stripe_fees__connect_crossborder_transfer_subtotal_amountdecimalConnect cross-border transfer fee subtotal.
stripe_fees__connect_crossborder_transfer_subtotal_currencystringCurrency of the Connect cross-border transfer fee subtotal.
stripe_fees__connect_crossborder_transfer_subtotal_amount_usddecimalConnect cross-border transfer fee converted to USD.
stripe_fees__connect_instant_payout_subtotal_amountdecimalConnect instant payout fee subtotal.
stripe_fees__connect_instant_payout_subtotal_currencystringCurrency of the Connect instant payout fee subtotal.
stripe_fees__connect_instant_payout_subtotal_amount_usddecimalConnect instant payout fee converted to USD.
stripe_fees__connect_monthly_active_account_subtotal_amountdecimalConnect monthly active account fee subtotal.
stripe_fees__connect_monthly_active_account_subtotal_currencystringCurrency of the Connect monthly active account fee subtotal.
stripe_fees__connect_monthly_active_account_subtotal_amount_usddecimalConnect monthly active account fee converted to USD.
stripe_fees__connect_payout_fixed_subtotal_amountdecimalConnect fixed payout fee subtotal.
stripe_fees__connect_payout_fixed_subtotal_currencystringCurrency of the Connect fixed payout fee subtotal.
stripe_fees__connect_payout_fixed_subtotal_amount_usddecimalConnect fixed payout fee converted to USD.
stripe_fees__connect_payout_volume_subtotal_amountdecimalConnect volume-based payout fee subtotal.
stripe_fees__connect_payout_volume_subtotal_currencystringCurrency of the Connect volume-based payout fee subtotal.
stripe_fees__connect_payout_volume_subtotal_amount_usddecimalConnect volume-based payout fee converted to USD.
stripe_fees__terminal_subtotal_amountdecimalTerminal fee subtotal for the payment.
stripe_fees__terminal_subtotal_currencystringCurrency of the Terminal fee subtotal.
stripe_fees__terminal_subtotal_amount_usddecimalTerminal fee subtotal converted to USD.
stripe_fees__connect_account_volume_billing_subtotal_amountdecimalConnect account volume billing fee subtotal.
stripe_fees__connect_account_volume_billing_subtotal_currencystringCurrency of the Connect account volume billing fee subtotal.
stripe_fees__connect_account_volume_billing_subtotal_amount_usddecimalConnect account volume billing fee subtotal converted to USD.
stripe_fees__connect_account_volume_billing_tax_amountdecimalTax charged on the Connect account volume billing fee.
stripe_fees__connect_account_volume_billing_tax_currencystringCurrency of Connect account volume billing fee tax.
stripe_fees__connect_account_volume_billing_tax_amount_usddecimalConnect account volume billing fee tax converted to USD.
stripe_fees__other_subtotal_amountdecimalOther Stripe fee subtotal.
stripe_fees__other_subtotal_currencystringCurrency of other Stripe fees.
stripe_fees__other_subtotal_amount_usddecimalOther Stripe fee subtotal converted to USD.
stripe_fees__other_tax_amountdecimalTax charged on other Stripe fees.
stripe_fees__other_tax_currencystringCurrency of tax on other Stripe fees.
stripe_fees__other_tax_amount_usddecimalTax on other Stripe fees converted to USD.

Proportional non-transaction fee columns

Some platform-level fees aren’t attributable to a specific transaction. These columns allocate them proportionally by country, and payment method scope.

ColumnTypeDescription
proportional_nontransaction_fees__global_amountdecimalGlobal proportional non-transactional fees allocated to the payment.
proportional_nontransaction_fees__global_currencystringCurrency of global proportional non-transactional fees.
proportional_nontransaction_fees__global_amount_usddecimalGlobal proportional non-transactional fees converted to USD.
proportional_nontransaction_fees__country_amountdecimalCountry-level proportional non-transactional fees allocated to the payment.
proportional_nontransaction_fees__country_currencystringCurrency of country-level proportional non-transactional fees.
proportional_nontransaction_fees__country_amount_usddecimalCountry-level proportional non-transactional fees converted to USD.
proportional_nontransaction_fees__payment_method_amountdecimalPayment method-level proportional non-transactional fees allocated to the payment.
proportional_nontransaction_fees__payment_method_currencystringCurrency of payment method-level proportional non-transactional fees.
proportional_nontransaction_fees__payment_method_amount_usddecimalPayment method-level proportional non-transactional fees converted to USD.
proportional_nontransaction_fees_amountdecimalTotal proportional non-transactional fees allocated to the payment.
proportional_nontransaction_fees_currencystringCurrency of total proportional non-transactional fees.
proportional_nontransaction_fees_amount_usddecimalTotal proportional non-transactional fees converted to USD.

Margin and additional payment columns

These columns provide transaction margin and additional payment classification details.

ColumnTypeDescription
margin_amountdecimalTransaction margin amount in the margin currency.
margin_currencystringCurrency of the transaction margin.
margin_amount_usddecimalTransaction margin converted to USD.
card_categorystringCard category for the payment, when available.
end_payer_countrystringCountry of the end payer, when available.
is_mail_order_or_telephone_orderbooleanWhether the payment was initiated as a mail order or telephone order transaction.

Additional example queries

Analyse margin by payment method

Segment margin by payment method, card details and fee payer to identify the most and least profitable payment segments.

SELECT
 payment_method_type,
 card_brand,
 card_funding,
 fees_payer,
 COUNT(*) AS charge_count,
 SUM(amount) AS gross_volume,
 SUM(margin_amount) AS total_margin,
 ROUND(
 CAST(1.0 AS double) * SUM(margin_amount)
 / NULLIF(SUM(amount), 0) * 10000,
 1
 ) AS average_margin_bps
FROM connect_payments
WHERE DATE_TRUNC('month', primary_charge_created_date) = DATE '2024-07-01'
GROUP BY 1, 2, 3, 4
ORDER BY total_margin ASC

Reconcile monthly connected account activity

Aggregate payments to the connected account and month grain for comparison with the financial summary. Results can differ by platform-level activity that isn’t attributable to a payment. The latest schema doesn’t expose platform_merchant_id, so join within the current platform’s data using connected_account_merchant_id, activity month, and currency.

SELECT
 connected_account_merchant_id,
 connected_account_merchant_country,
 DATE_TRUNC('month', primary_charge_created_date) AS activity_month,
 currency,
 COUNT(*) AS charge_count,
 SUM(amount) AS gross_volume,
 SUM(refunded_amount) AS total_refunded,
 SUM(disputed_amount) AS total_disputed,
 SUM(revenue__application_fee_amount) AS total_application_fees,
 SUM(revenue__revshare_amount) AS total_revshare,
 SUM(margin_amount) AS total_margin
FROM connect_payments
GROUP BY 1, 2, 3, 4
ORDER BY activity_month DESC, gross_volume DESC
Last verified 2026-09-25

Is this helpful?