Skip to main content
GET
Error

Authorizations

Authorization
string
header
required

A secret key (sk_…) or restricted key (rk_…) sent as Authorization: Bearer <key>.

Scopes

payments:read

Query Parameters

limit
integer
default:20

Page size (default 20, max 100).

Required range: 1 <= x <= 100
offset
integer
default:0

Number of records to skip. Cannot be combined with starting_after.

Required range: x >= 0
starting_after
string

Cursor: a transaction id (typically the previous response's next_cursor). Returns results strictly after it, newest first. Cannot be combined with offset.

status
string

Return transactions with these statuses. Pass a comma-separated list or repeat the parameter. refunded also matches partially_refunded, and incomplete matches requires_payment_method and requires_confirmation.

Example:

"succeeded,failed"

Matches part of a transaction, charge, or checkout session id, the customer's name, the customer's or buyer's email, the last four digits of the card, a product name, or the start of an amount.

created_gte
string<date-time>

Return transactions created at or after this time (RFC 3339).

created_lte
string<date-time>

Return transactions created at or before this time (RFC 3339).

include_summary
boolean
default:false

When true, 1, or yes, the response includes total_count, status_counts, and net_volume_by_currency.

customer
string

Return transactions for this customer id (cus_…).

guest_email
string

Return payments that have no customer record, whose latest charge succeeded or was refunded, and whose buyer billing email matches exactly, ignoring case. Failed, declined, and unfinished payments are not included.

payment_method
string

Return transactions paid with this payment method id (pm_…).

card_brand
string

Return transactions paid with this card brand, such as visa or mastercard.

last4
string

Return transactions paid with a card ending in these digits.

currency
string

Return transactions in this currency (three-letter ISO code, case-insensitive).

Example:

"USD"

amount_gte
string

Return transactions of at least this amount, written in the currency's main unit with up to two decimals (for example 12.50).

Example:

"12.50"

amount_lte
string

Return transactions of at most this amount, written in the currency's main unit with up to two decimals (for example 99.00). Must be at least amount_gte when both are set.

Example:

"99.00"

amount_min
string

Alias of amount_gte. If both are sent, amount_gte is used.

amount_max
string

Alias of amount_lte. If both are sent, amount_lte is used.

decline_code
string

Return transactions that failed with this decline code.

decline_type
string

Return transactions that failed with this decline type.

checkout_session
string

Return the transaction for this checkout session id (cs_…).

Return transactions that came from this payment link id (pl_…).

invoice
string

Return the transaction that paid this invoice (inv_…). Must be an exact invoice id. Send it once.

merchant_reference
string

Return transactions with exactly this reference (1 to 255 characters). The match is exact and case-sensitive. Send it once.

Required string length: 1 - 255
client_reference_id
string

Return transactions with exactly this client reference id (1 to 200 characters). The match is exact and case-sensitive. Send it once.

Required string length: 1 - 200

Response

A paginated list of transactions, newest first.

A page of transactions.

data
object[]
required

The transactions on this page, newest first.

has_more
boolean
required

Whether more transactions follow this page.

next_cursor
string

The last returned transaction's id. Present when has_more is true; pass it as starting_after on the next request.

total_count
integer

Number of transactions that match the filters. Present when include_summary is set.

status_counts
object

Number of transactions per status, plus an all total, using every filter except status. Present when include_summary is set.

net_volume_by_currency
object

Matching volume per currency code in the smallest currency unit, after refunds, counting succeeded, partially refunded, and refunded transactions. Present when include_summary is set and at least one of those transactions matches; omitted otherwise.