Charges and Balance Transactions API
A charge is one attempt to pay. A payment intent or an invoice can be
attempted several times, for example when a customer's first card is declined
and they try another, so each one carries a charges list, oldest first. A
charge tells you which card paid, why it was declined, how risky it looked, how
it was authenticated, what the processor charged you and what landed in your
processor balance.
The balance transactions list is the ledger of your processor balances: every charge once its processor has reported what it settled, and every payout to your bank.
Fees and settlement come from the processor. A processor that does not report
them leaves fee and settlement null, and its charges stay off the balance
transactions list. Card, decline, risk and 3D Secure details are reported for
every processor.
The charge object
Returned in charges by GET /payment-intents,
GET /payment-intents/:payment_intent,
and by GET /invoices and GET /invoices/:id (see Invoices).
Attributes
transaction_intentstringThe charge id (ti_...). Pass it to POST /refunds to refund this charge.
statusstringsuccess, or the detailed status of an attempt that did not succeed, such as canceled_rejected, or pending_created for a declined attempt on an intent that is still open. See the sub_status values in Webhook Payloads.
amountintegerAmount in minor units, in the charge currency.
currencystringCharge currency, lowercase.
created_atstringISO 8601 time the attempt started.
succeeded_atstring | nullISO 8601 time the charge succeeded. Null unless it did.
gatewaystring | nullThe payment method family the charge went through, for example cards.
processorstring | nullThe processor that handled it, for example stripe.
connectorstring | nullThe connector (con_...) the charge went to.
gateway_transaction_idstring | nullThe processor's own reference for the charge.
failure_reasonstring | nullWhy the charge did not succeed. Null on a successful charge.
payment_methodobjectHow the customer paid.
outcomeobjectWhy a charge was declined. Every field is null on a successful charge.
riskobject | nullThe fraud screening the charge went through. Null when it was not screened.
three_d_secureobject | nullThe 3D Secure authentication. Null when the charge was not authenticated.
feeobject | nullWhat the processor charged you for this charge. Null until the processor reports it.
settlementobject | nullWhat landed in your processor balance. Null until the processor reports it.
attemptsarrayEach processor the charge was sent to, in order. A charge routed to a second processor after the first declined has two.
{
"transaction_intent": "ti_eu1_d4c88938b3334d1392950c9f8d731ab6",
"status": "success",
"amount": 2000,
"currency": "eur",
"created_at": "2026-12-01T16:14:42.025Z",
"succeeded_at": "2026-12-01T16:14:43.000Z",
"gateway": "cards",
"processor": "stripe",
"connector": "con_eu1_26b1147b751e4664a0c647cc6e337bb3",
"gateway_transaction_id": "pi_3UhthWCBr4xgDzR51bqDzUKW",
"failure_reason": null,
"payment_method": {
"type": "card",
"card": {
"brand": "visa",
"funding": "debit",
"country": "US",
"iin": "400005",
"last4": "5556",
"issuer": "Jonestown Bank and Trust Company",
"wallet": null,
"network_transaction_id": "775570104118105",
"authorization_code": "218631"
}
},
"outcome": {
"decline_code": null,
"network_decline_code": null,
"advice_code": null
},
"risk": { "score": 50, "level": "normal" },
"three_d_secure": null,
"fee": {
"amount": 115,
"currency": "usd",
"details": [
{
"category": "processing",
"type": "stripe_fee",
"description": "Stripe processing fees",
"amount": 93,
"currency": "usd"
},
{
"category": "fx",
"type": "stripe_fee",
"description": "Stripe currency conversion fee",
"amount": 22,
"currency": "usd"
}
]
},
"settlement": {
"amount": 2175,
"currency": "usd",
"exchange_rate": 1.08745,
"net": 2060
},
"attempts": [
{
"gateway": "stripe",
"connector": "con_eu1_26b1147b751e4664a0c647cc6e337bb3",
"status": "success",
"decline_code": null,
"decline_message": null,
"created_at": "2026-12-01T16:14:42.000Z"
}
]
}List balance transactions
Returns your ledger, most recent first: a charge row for each charge once its
processor has reported what it settled, and a payout row for each payout from
a processor balance to your bank. Amounts are signed, in the settlement
currency: a charge adds to your balance, a payout takes from it.
Query Parameters
limitoptional, integer, default is 25How many rows to return, 1 to 100.
starting_afteroptional, stringA cursor: a row id (ti_... or ppo_...). Returns the page immediately after it.
ending_beforeoptional, stringA cursor: a row id (ti_... or ppo_...). Returns the page immediately before it.
typeoptional, stringOnly return charge or payout rows.
currencyoptional, stringOnly return rows in this settlement currency.
createdoptional, objectFilter by when the row happened: when a charge succeeded, when a payout was initiated. Pass a Unix timestamp or an ISO 8601 string.
Status Codes
200: the page.400: an unknowntype, or a cursor that names no row on your account.
const page = await orchestrapay.balanceTransactions.list({
limit: 50,
created: { gte: 1764547200 },
});Response Parameters
dataarrayThe rows, most recent first.
has_morebooleantrue if there are more rows after this page. Fetch them with starting_after set to the last row's id.
{
"data": [
{
"id": "ti_eu1_d4c88938b3334d1392950c9f8d731ab6",
"object": "balance_transaction",
"type": "charge",
"amount": 2175,
"currency": "usd",
"fee": 115,
"fee_currency": "usd",
"net": 2060,
"exchange_rate": 1.08745,
"fee_details": [
{ "category": "processing", "type": "stripe_fee", "description": "Stripe processing fees", "amount": 93, "currency": "usd" },
{ "category": "fx", "type": "stripe_fee", "description": "Stripe currency conversion fee", "amount": 22, "currency": "usd" }
],
"created_at": "2026-12-01T16:14:43.000Z",
"gateway": "cards",
"connector": "con_eu1_26b1147b751e4664a0c647cc6e337bb3",
"payment_intent": "pi_eu1_c7916c28e14f45b2b01a881c315ff70e",
"transaction_intent": "ti_eu1_d4c88938b3334d1392950c9f8d731ab6",
"gateway_transaction_id": "pi_3UhthWCBr4xgDzR51bqDzUKW",
"payout": null
},
{
"id": "ppo_eu1_5f0e1c2a9b7d4e3f8a6b1c0d2e3f4a5b",
"object": "balance_transaction",
"type": "payout",
"amount": -5000,
"currency": "usd",
"fee": null,
"fee_currency": null,
"net": -5000,
"exchange_rate": null,
"fee_details": [],
"created_at": "2026-12-01T16:14:42.000Z",
"gateway": "stripe",
"connector": "con_eu1_26b1147b751e4664a0c647cc6e337bb3",
"payment_intent": null,
"transaction_intent": null,
"gateway_transaction_id": "po_1QrX2L",
"payout": {
"status": "paid",
"arrival_date": "2026-12-03",
"destination": "ba_1QrX2L",
"failure_reason": null,
"gross_amount": null,
"fee_amount": null,
"chargeback_amount": null,
"reserved_amount": null,
"released_amount": null
}
}
],
"has_more": false
}