Skip to Content
Docs

Reconcile a settlement

Verify a settlement against its breakdown, adjustments, and cash flow transactions in four API calls.

To verify a Pay.com settlement, make four API calls: list settlements for a period, retrieve the full financial breakdown, check for adjustments, and cross-check individual transactions in your cash flow. To start as soon as a settlement is paid, instead of polling, listen for the settlement.paid webhook event.

You need a Pay.com API key with Read on Settlements, Adjustments, and Cash flow (see Permissions), and a settlement period to reconcile (start and end date). The steps build on Settlements and Balances and cash flow.

  1. 1

    List settlements for a period

    Call GET /v1/settlements with a date range to retrieve all settlements created in that window. Amounts are integers in the minor unit (the smallest unit) of the settlement currency, for example 332477 for €3,324.77.

    curl https://api.sandbox.pay.com/v1/settlements \
      -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"

    Note these fields on each settlement object:

    FieldDescription
    idThe settlement ID, used in the following steps
    amountNet amount transferred to your bank, in the minor currency unit
    currencyThe settlement currency
    period_start / period_endThe transaction window covered by this settlement. The settlement is created after the period ends, so created falls later than period_end
    settlement_accountThe Pay.com settlement account that received the funds (prefix sa_)

    Pick the id of the settlement you want to reconcile and use it in the following steps.

  2. 2

    Retrieve the settlement breakdown

    Call GET /v1/settlements/{settlement_id}/breakdown to retrieve the itemized fee and adjustment components that sum to the settlement's net amount.

    curl https://api.sandbox.pay.com/v1/settlements/stlmnt_690127572775747584/breakdown \
      -u ':sk-pay-com-sandbox-…'

    These fields make up the breakdown.

    FieldDescription
    processed_amountCharges that cleared in the period, less the refunds and the payouts to your customers taken from this settlement. The starting figure before fees.
    refund_amountRefunds taken from this settlement, as a positive number. Already deducted in processed_amount.
    chargeback_amountChargebacks taken from this settlement, less the representments and chargeback reversals returned to you. Negative unless the returns are larger.
    chargeback_feesThe fees charged for chargebacks
    interchange_feesFees paid to the card-issuing bank. Usually negative. A refund's interchange can be returned to you.
    network_fessFees paid to the card network (Visa, Mastercard, and so on). Usually negative.
    processing_feesPay.com's fees for processing, including decline fees. On blended pricing, the whole fee. Usually negative.
    service_feesThe fee for the transfer to your bank. Negative.
    vatVAT, when your account is charged VAT, on the fees and the transfer fee. Negative.
    rolling_reserve / rolling_reserve_releasedReserve withheld in this settlement (negative) and earlier reserve released (positive)
    general_adjustmentsFees and credits Pay.com applies as adjustments, such as your monthly service fee. See the next step.
    payout_amountPayouts to your customers taken from this settlement, as a positive number. Already deducted in processed_amount.

    Verify that amount equals the sum of processed_amount, chargeback_amount, chargeback_fees, interchange_fees, network_fess, processing_fees, service_fees, vat, rolling_reserve, rolling_reserve_released, and general_adjustments. Leave out refund_amount and payout_amount, which are already deducted in processed_amount. Deductions are already negative, so add every field as returned. In this example, 354727 − 4400 − 7071 − 4126 − 1000 − 2500 − 3153 = 332477. See What a settlement contains for the full field reference.

  3. 3

    Check for adjustments

    Call GET /v1/adjustments filtered by settlement_id to list the adjustments Pay.com applied to this settlement.

    curl "https://api.sandbox.pay.com/v1/adjustments?settlement_id=stlmnt_690127572775747584&limit=10" \
      -u ':sk-pay-com-sandbox-…'

    Each adjustment's total is a decimal string in the major currency unit, such as "-25.00". Add up the totals, convert the sum to the minor unit, and compare it with general_adjustments from the breakdown in the previous step. In this example, −25.00 EUR is -2500. An empty data means the settlement has no adjustments. The transfer fee isn't an adjustment. It's in service_fees.

  4. 4

    Cross-check with cash flow transactions

    Call GET /v1/cashflow/transactions with settlement_id to list every cash flow transaction included in this settlement, so you can match transaction-level amounts to the aggregated totals in the settlement breakdown. Filter by settlement_id, not by dates. period_start and period_end are the first and last days on which the settlement's transactions cleared, and a transaction can be created days before it clears.

    curl https://api.sandbox.pay.com/v1/cashflow/transactions \
      -u ':sk-pay-com-sandbox-…' \
      -G \
      -d "settlement_id=stlmnt_690127572775747584" \
      -d "limit=10"

    For each entry, net_amount is the amount credited to your balance after fees. Sum amount across charge rows and compare it with processed_amount plus refund_amount and payout_amount, which together are the settlement's charges before refunds and payouts were taken off. Sum fee across all rows and compare it with processing_fees, interchange_fees, and network_fess. Fee breakdown amounts can be fractional, so allow for small rounding differences.

    Cash flow covers charges, refunds, payouts, and declined transactions that carried fees. Chargebacks, the transfer fee, VAT, reserves, and adjustments have no cash flow transactions. Check them against the breakdown and the adjustments instead.

    When has_more is true, paginate through the remaining results until you have all transactions in the settlement. Pass the id of the last transaction in the current page as starting_after in your next request:

    curl https://api.sandbox.pay.com/v1/cashflow/transactions \
      -u ':sk-pay-com-sandbox-…' \
      -G \
      -d "settlement_id=stlmnt_690127572775747584" \
      -d "starting_after=cflw_tx_688942261290938368" \
      -d "limit=10"

    To see the same settlement's transactions with interchange, network, and processing fees already broken out per row, list its reconciliation transactions with settlement_id (see Reconcile transactions). Their amounts are integers in the minor unit, like the cash flow amounts.

Next steps

Read more about the data behind each step.

Was this page helpful?