KashierDevelopersKashier Developers
Accept payments

Settlement

Retrieve settlement windows and export settlement data

The Kashier Settlement API provides endpoints for retrieving settlement windows and exporting settlement batch data. These APIs enable merchants to track their settlement transactions.

Don't want to wait for the window?

If you'd rather not wait for a transaction's regular settlement window, see Instant Settlement — request an early payout of eligible transactions for a fee.

Get settlement windows

Retrieve a list of settlement windows with optional filtering and sorting.

Note

This API can only be performed on live data. In testing mode, there are no settlement windows or batches. The test-api.kashier.io examples below show the request shape only — against a test host they never return data. Call the live host with your live secret key.

Required permissions

Your key must carry the balance.all.view_balance permission. A key without it is rejected even when the secret key itself is valid.

Query parameters

KeyValue
pagecurrent page number, default 1
limitnumber of records per page, default 20
qSearch term. A value prefixed with TX- resolves the window containing that settlement transaction id.
sortType1=>ASCENDING, -1=>DESCENDING
sortBysort field, default createdAt
dateFromThe settlement window date to start search from
dateToThe settlement window date to end search at
statusThe settlement window status: open, in_progress, closed, or failed. Default all applies no status filter.
batchDateFromBatch start date
batchDateToBatch end date
actionSet to export to download the settlement windows list as an Excel file instead of JSON (requires balance.all.export_balance permission)

Window status values

ValueWhat it means for your payout
openWindow is still accumulating transactions. Nothing has been paid out yet.
in_progressSettlement processing is running. The payout is being prepared but has not landed.
closedSettled. The transactions in this window have been paid out.
failedSettlement processing failed for this window. Nothing was paid out — contact support.
curl --location 'https://test-api.kashier.io/v3/payment/settlement/windows?sortBy=&sortType=-1&limit=20&page=1&q=&dateFrom='
      --header 'Authorization: YOUR_TEST_SECRET_KEY'

Headers

KeyDescription
AuthorizationThe Authorization is the secret key that is used to identify the merchant. You can obtain it from Kashier dashboard. Learn more about Authorization.

Permissions

PermissionUse case
balance.all.view_balanceRequired to read settlement windows via GET /v3/payment/settlement/windows
balance.all.export_balanceRequired when using action=export to download the settlement windows list as an Excel file

Response structure

{
  "message": "success",
  "data": [
    {
      "accountId": "ACC-XXXXXXXX",
      "merchantId": "MID-XXXXX-XXX",
      "windowId": "STW-2123288831",
      "windowDate": "2025-07-21 00:00",
      "status": "closed",
      "totalSettlementAmount": 9450,
      "totalOriginalAmount": 10000,
      "transactionsCount": 12,
      "batchesCount": 2,
      "batchesIds": "BATCH-1,BATCH-2,"
    }
  ],
  "pagination": {
    "total": 1,
    "limit": 20,
    "page": 1,
    "pages": 1
  }
}

Response fields

FieldTypeDescription
accountIdStringYour settlement account ID at Kashier.
merchantIdStringYour merchant ID.
windowIdStringThe Kashier ID for this settlement window.
windowDateStringThe date of the settlement window.
statusStringWindow status — see Window status values. closed means the window is settled and its transactions have been paid out.
totalSettlementAmountNumberThe net amount to be settled for the window — what actually lands in your account, after fees and VAT.
totalOriginalAmountNumberThe gross transactions amount for the window, before fees and VAT. Reconcile the difference between this and totalSettlementAmount against the per-transaction fee columns in the batch export.
transactionsCountNumberThe number of transactions that will be settled in this window.
batchesCountNumberNumber of batches in the window. Each batch carries its own channel, method, ready-for-settlement date, and fee totals.
batchesIdsStringThe IDs of the batches inside the window, comma-separated.

The window list gives you counts and IDs, not the batches themselves. For the per-transaction fee breakdown, call Export settlement batches with the windowId.

Export settlement batches

Export settlement batch details for a specific settlement window.

Note

This API can only be performed on live data. In testing mode, there are no settlement windows or batches. The test-api.kashier.io example below shows the request shape only — against a test host there is nothing to export.

Required permissions

Export requires the balance.all.export_balance permission on your key, in addition to balance.all.view_balance for reading windows.

Query parameters

KeyValue
qSearch query. A value prefixed with TX- resolves the window containing that settlement transaction id.
curl --location 'https://test-api.kashier.io/v3/payment/settlement/windows/batches/export?q=STW-2123288831'
      --header 'Authorization: YOUR_TEST_SECRET_KEY'

Headers

KeyDescription
AuthorizationThe Authorization is the secret key that is used to identify the merchant. You can obtain it from Kashier dashboard. Learn more about Authorization.

Permissions

PermissionUse case
balance.all.export_balanceRequired to export settlement batch data via GET /v3/payment/settlement/windows/batches/export

Response structure

  • Status: 200 OK
  • Content-Type: application/vnd.ms-excel
  • Response: Excel file containing batch data will be downloaded.

Notes

  • Ensure that the Authorization header contains a valid secret key.
  • Use proper date formats (YYYY-MM-DD) when filtering results.
  • The export endpoint returns an Excel file containing batch details.

On this page