Skip to Content
Docs

Balances and cash flow

Retrieve the running balance of a settlement account, and list the cash flow transactions that record every fund movement.

Your merchant balance is a running total of all funds received, fees charged, and settlements paid to you on a settlement account. Cash flow transactions are the entries for your charges, refunds, and payouts to customers, one for each transaction that clears. Together they give you a ledger of your account activity between settlements.

Merchant balance

The GET /v1/cashflow/balances endpoint returns the net position for one settlement account, and so one currency. If you process transactions in more than one currency, you have a separate settlement account per currency, each with its own balance. Without a date window, the balance covers all activity up to the end of today (UTC). See Balance for a date or a date range.

Balances are computed from cleared transactions. The balance isn't available for every settlement account. For an account where it isn't, the endpoint returns 403, or 400 for an account your acquirer settles to you directly.

All monetary amounts are integers in the minor unit (the smallest unit) of the settlement currency, for example 494945025 for €4,949,450.25.

FieldDescription
currencyThe settlement currency for this account
gross_amountTotal value of all transaction amounts before fees. This is the sum of every type's gross_amount, refunds and chargebacks included
net_amountBalance remaining after all deductions: fees, refunds, chargebacks, taxes, and settlements already paid out. A negative value means more has been paid out or deducted than currently sits unsettled in the account
processing_feesAggregated Pay.com processing fees deducted from the gross, matching the same category in settlements
interchange_feesAggregated card-issuer fees deducted from the gross
network_feesAggregated card-network fees deducted from the gross
countTotal number of events included in the balance calculation

Balance breakdown

The balance_breakdown array breaks the net position down by transaction type. Each entry has a type, a count, a gross_amount, a net_amount, and the fee fields applicable to that type. An entry's type is one of these:

TypeWhat it represents
chargesSuccessful card charges, the primary source of incoming funds
refundsCustomer-initiated returns, which reduce the balance
chargebacksDisputed transactions reversed by the card network
representmentsChargeback disputes won on your behalf, which restore funds
declinesDeclined transactions, which may still incur processing_fees
payoutsPayouts to your customers, which reduce the balance
monthly-service-fee, …One row for each kind of adjustment in the period, typed by its identifier in kebab case. An adjustment without an identifier is in general-adjustments.
service-feesThe fees for the transfers to your bank
top-upsTop-ups to your balance
rolling-reservesFunds withheld as risk collateral
released-reservesPreviously withheld reserves returned to your balance
applicable-taxesVAT applied to the fees in each settlement
settlementsCompleted settlements sent to your bank, which reduce the balance

The settlements entry shows a large negative net_amount representing the total already paid out to your bank. This is why the top-level net_amount can be negative even when your business is profitable. It reflects the unsettled balance after all settlements, not your cumulative revenue.

Retrieve your balance shows a response with every type.

Retrieve your balance

You need a Pay.com API key with reporting access and your settlement account ID (prefix sa_). The key needs Read on Cash flow, and on Settlements to list your settlements. See Permissions.

  1. 1

    Find your settlement account ID

    Pay.com assigns your settlement account IDs during onboarding. Your settlement account ID (sa_...) is visible in the Settings → Settlement accounts section of your Pay.com dashboard. You can also find it in the settlement_account field of any cash flow transaction, in a charge's underlying_processing_details.settlement_account when processor details are enabled on your account, or, if you have completed settlements, list them with GET /v1/settlements and read the settlement_account field from any result:

    curl "https://api.sandbox.pay.com/v1/settlements?limit=1" \
      -u ':sk-pay-com-sandbox-…'

    The value looks like sa_473768761812321280. Use it as the settlement_account parameter in the next step.

  2. 2

    Request the balance

    Pass your settlement account ID in the required settlement_account query parameter of GET /v1/cashflow/balances.

    curl "https://api.sandbox.pay.com/v1/cashflow/balances?settlement_account=sa_473768761812321280" \
      -u ':sk-pay-com-sandbox-…'

    The fields are described under Merchant balance and Balance breakdown.

Balance for a date or a date range

Pass date_to to get the cumulative balance up to that moment. Without it, the endpoint covers everything up to the end of today (UTC).

curl "https://api.sandbox.pay.com/v1/cashflow/balances?settlement_account=sa_473768761812321280&date_to=2026-03-17T23:59:59Z" \
  -u ':sk-pay-com-sandbox-…'

Pass both date_from and date_to to get the balance movement within a range instead of a cumulative snapshot. To see the individual events behind it, use GET /v1/cashflow/transactions with the created.greater_than_or_equals and created.less_than_or_equals parameters.

Cash flow transactions

A cash flow transaction records one cleared charge, refund, or payout to a customer, and what it adds to or takes from your balance. It appears when the transaction clears, and Pay.com sends the cashflow_transaction.created webhook event. Its ID has the transaction's digits, such as cflw_tx_690017293823913984 for chrg_690017293823913984, and the charge, refund, or payout links to it in cashflow_transaction. List them with GET /v1/cashflow/transactions, or retrieve one with GET /v1/cashflow/transactions/{id}.

Chargebacks, adjustments, reserves, the transfer fee, and VAT have no cash flow transactions. They're in the balance breakdown and the settlement breakdown.

type is charge, refund, payout (a payout to a customer), or decline (a declined transaction that carried fees, such as a decline fee).

created is when the transaction itself was created, not when it cleared. A list filtered by created can gain entries later, as older transactions clear.

amount is the transaction's value in the settlement currency, in the smallest currency unit. It's positive for refunds and payouts too, and 0 for a decline.

net_amount is the amount credited or debited to your balance after fees. For a charge, net_amount = amount − |fee|. For a refund or a payout, it's negative. For a decline, it's the negative decline fee. The net_amount_human_readable field provides the decimal equivalent as a string.

fee is the total fee for the transaction as a single negative integer, without VAT. fee_breakdown is an array of individual fee line items, each with an amount, currency, identifier, and type. Breakdown amounts are negative and can be fractional. The type values are acquirer (Pay.com's fees, such as processing, 3D Secure, and decline fees), network (card network fees), and interchange (card-issuer fees), in that order. On blended pricing, there are acquirer lines only.

available_on is the estimated date the transaction can be paid out in a settlement: the transaction's day plus your funding delay in banking days, or the acquirer's own schedule. Pay.com sets it when the transaction is authorized. It's null when Pay.com can't estimate it.

source contains the originating resource: the full charge, refund, or payout, or a payment_attempt for a declined attempt in a payment session. The source.url field gives you the API path to retrieve that resource directly.

Currency conversion

source_amount and source_currency record the transaction's own amount and currency. When they differ from your settlement currency, exchange_rate is the rate applied to convert them, and otherwise it's null. The top-level amount field always reflects the converted value in the settlement currency.

Call GET /v1/cashflow/transactions with a date range to list transactions, or with settlement_id to list the transactions included in one settlement. Results are returned oldest first. Paginate with starting_after when has_more is true.

curl https://api.sandbox.pay.com/v1/cashflow/transactions \
  -u ':sk-pay-com-sandbox-…' \
  -G \
  -d "created.greater_than_or_equals=2026-03-20" \
  -d "created.less_than_or_equals=2026-03-24" \
  -d "limit=10"

The list returns the same objects as retrieving one, including fee_breakdown. To retrieve a single transaction, pass its ID to GET /v1/cashflow/transactions/{id}.

curl https://api.sandbox.pay.com/v1/cashflow/transactions/cflw_tx_690017293823913984 \
  -u ':sk-pay-com-sandbox-…'

Relationship to settlements

The merchant balance and cash flow transactions give you an up-to-date view of all cleared activity on your account. Settlements are discrete transfers. On each settlement run, Pay.com pays out the cleared transactions past their funding delay in a single transfer to your bank, and records it as a settlements entry in the balance breakdown.

Each completed settlement reduces the balance's net_amount by the amount transferred. The balance therefore reflects everything, including activity that has not yet been settled.

Use the balance and cash flow endpoints for ongoing monitoring and transaction-level reconciliation. Use the Settlements API when you need the details of a specific settlement, its fee breakdown, or the period it covers.

Next steps

Was this page helpful?