Skip to Content
Docs
Cash flow

Retrieve merchant balance

GET/cashflow/balances

Retrieves the balance of one settlement account over a date range, aggregated from its transactions.

Headers

AuthorizationstringRequired
HTTP Basic auth: your API key as the password, with an empty username. See Authentication.

Query parameters

settlement_accountstringRequired

The unique identifier of the settlement account.

date_fromstring

Start of the period, as an ISO 8601 date or date-time (UTC). Defaults to 2000-01-01T00:00:00Z.

date_tostring

End of the period, as an ISO 8601 date or date-time (UTC). Defaults to the end of the current day.

Returns

Returns the balance object.

resourcestringRequired

String representing the object's type.

currencystring

Three-letter ISO currency code of the settlement account, in lowercase.

net_amountinteger

Net amount after fees, in the smallest currency unit.

gross_amountinteger

Gross amount in the settlement currency, in the smallest currency unit.

processing_feesinteger

Total processing fees, in the smallest currency unit.

processing_fees_fixedinteger

Fixed part of the processing fees, in the smallest currency unit. Omitted when zero.

processing_fees_percentageinteger

Percentage part of the processing fees, in the smallest currency unit. Omitted when zero.

interchange_feesinteger

Total interchange fees, in the smallest currency unit. Omitted when zero.

network_feesinteger

Total network fees, in the smallest currency unit. Omitted when zero.

countinteger

Number of transactions included in the balance.

balance_breakdownarray of objects

Breakdown of the balance by transaction type.

Show 9 child attributesHide child attributes
typestring

Transaction type, for example charges, refunds, chargebacks, representments, declines or adjustments.

countinteger

Number of transactions of this type.

gross_amountinteger

Gross amount in the settlement currency, in the smallest currency unit.

net_amountinteger

Net amount after fees, in the smallest currency unit.

processing_feesinteger

Processing fees, in the smallest currency unit.

processing_fees_fixedinteger

Fixed part of the processing fees, in the smallest currency unit, if applicable.

processing_fees_percentageinteger

Percentage part of the processing fees, in the smallest currency unit, if applicable.

interchange_feesinteger

Interchange fees, in the smallest currency unit, if applicable.

network_feesinteger

Network fees, in the smallest currency unit, if applicable.

Errors

400
Invalid request parameters, an unknown settlement account ("Settlement account id is invalid"), or a settlement account with no settlement currency (settled directly by the provider).
401
The API key or access token is missing, unknown or no longer works (invalid_key, invalid_token, legacy_keys_ended, legacy_keys_off or permission_denied).
403
The API key may not make this request; code says why.
500
Internal server error.
503
Service unavailable. Retry after the number of seconds in Retry-After, or after a few seconds when there's none.
Was this page helpful?