Skip to main content
Settlement operations let you query live settlement activity for your aggregator: batch status, downloadable batch artifacts, payout transactions, underlying payment/refund transactions, per-merchant snapshots, and related settlement-engine job runs. Use these read APIs to reconcile what settled and when. To download CSV/file exports for reporting workflows, use Settlement reports.
Raast payments settle in scheduled batches. Settlement operations expose those batches and payouts; ledger running_balance is the unsettled delta since the last settle and resets to 0 when a settlement batch is scheduled.

Object model

Amounts across settlement operations are returned in the lowest currency denomination (paisa for PKR).

Typical flow

1

List batches

Call GET /v1/aggregators/{{aggregator_id}}/settlements/batches to find the batch token (sb_…) you care about.
2

Read the batch

Call GET /v1/aggregators/{{aggregator_id}}/settlements/batches/{{settlement_batch_id}} for artifacts (presigned_url) and batch-level charge_snapshot.
3

Inspect transactions

List batch transactions or settlement transactions to inspect payouts (stxn_) and underlying payments/refunds (txn_).
4

List snapshots

Call the snapshots endpoint for merchant IBAN / account title / amount breakdowns.
5

Optional: inspect job runs

Call GET /v1/aggregators/{{aggregator_id}}/settlements/job-runs to see related ledger settler / payout generator runs (for example, match a batch created_by_job_id).
6

Optional: export a report

Create a report export when you need a downloadable CSV for offline reconciliation.

Endpoints

All settlement operations endpoints are read-only and use cursor pagination. Default page size is 30 (maximum 100). Pass direction as uppercase ASC or DESC (invalid or empty values default to DESC).

List vs read behavior

List responses also return count.filtered_count (after optional filters) and count.total_count (same scope before those filters).

Transaction list flags

Two list endpoints share a dual response shape (settlement_transactions or transactions), but their defaults are inverted: Reading GET .../settlements/transactions/{id} is prefix-routed:
  • stxn_…data.settlement_transaction
  • txn_…data.transactions
  • any other prefix → 400 Bad Request

Status enums

Query filters accept the integer enum; responses serialize the string enum name.

Batch status

Settlement transaction status

Ledger transaction status

Job run type

Job run status

Query param names for this endpoint are job_type and job_status (not status). Date filters use Unix timestamps via start_date / end_date.

List settlement batches

Read a settlement batch

cURL
The response includes downloadable artifacts (settlement file and/or charges summary) and a batch-level charge_snapshot with gross/net/fee/tax totals when available.

List settlement transactions

Default lists payouts. Add only_transactions=true to list underlying payment/refund ledger transactions instead.
cURL

List batch transactions and snapshots

cURL
cURL

List settlement job runs

Lists settlement-engine job runs that created batches containing settlement transactions for your aggregator. Useful for correlating a batch created_by_job_id with job status/timing.
cURL

Identifier prefixes

See also