Retrieve merchant balance
/cashflow/balancesRetrieves the balance of one settlement account over a date range, aggregated from its transactions.
Headers
AuthorizationstringRequiredQuery parameters
settlement_accountstringRequiredThe unique identifier of the settlement account.
date_fromstringStart of the period, as an ISO 8601 date or date-time (UTC). Defaults to 2000-01-01T00:00:00Z.
date_tostringEnd 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.
resourcestringRequiredString representing the object's type.
currencystringThree-letter ISO currency code of the settlement account, in lowercase.
net_amountintegerNet amount after fees, in the smallest currency unit.
gross_amountintegerGross amount in the settlement currency, in the smallest currency unit.
processing_feesintegerTotal processing fees, in the smallest currency unit.
processing_fees_fixedintegerFixed part of the processing fees, in the smallest currency unit. Omitted when zero.
processing_fees_percentageintegerPercentage part of the processing fees, in the smallest currency unit. Omitted when zero.
interchange_feesintegerTotal interchange fees, in the smallest currency unit. Omitted when zero.
network_feesintegerTotal network fees, in the smallest currency unit. Omitted when zero.
countintegerNumber of transactions included in the balance.
balance_breakdownarray of objectsBreakdown of the balance by transaction type.
Show 9 child attributesHide child attributes
typestringTransaction type, for example charges, refunds, chargebacks, representments, declines or adjustments.
countintegerNumber of transactions of this type.
gross_amountintegerGross amount in the settlement currency, in the smallest currency unit.
net_amountintegerNet amount after fees, in the smallest currency unit.
processing_feesintegerProcessing fees, in the smallest currency unit.
processing_fees_fixedintegerFixed part of the processing fees, in the smallest currency unit, if applicable.
processing_fees_percentageintegerPercentage part of the processing fees, in the smallest currency unit, if applicable.
interchange_feesintegerInterchange fees, in the smallest currency unit, if applicable.
network_feesintegerNetwork fees, in the smallest currency unit, if applicable.
Errors
400401invalid_key, invalid_token, legacy_keys_ended, legacy_keys_off or permission_denied).403code says why.500503Retry-After, or after a few seconds when there's none.