Skip to content
Last updated

Generate batch settlement reports

Prerequisites

Batch reporting endpoints

EndpointMethodDescription
/v1/batchesGETList batches with pagination, sorting, and filtering
/v1/batches/statusGETCheck settlement status of batches

Option A: List batches

Send GET /v1/batches to retrieve a paginated list of batches.

Query parameters

ParameterTypeDescription
skipstringNumber of records to skip (offset)
takestringNumber of records to return per page
sort_columnstringColumn to sort by
sort_orderstringasc or desc
search_textstringFree-text search
termstringFilter term
curl -G \
  https://api.dev.paradisegateway.net/v1/batches \
  -H "APIKEY: YOUR-API-KEY" \
  -d skip=0 \
  -d take=10 \
  -d sort_order=desc

Response

{
  "count": 47,
  "results": [
    {
      "id": "BATCH-01KFDKXMQ637EKEAY410MSQSXB",
      "batch_id": "BATCH-01KFDKXMQ637EKEAY410MSQSXB",
      "batch_number": "001",
      "batch_type": "card",
      "processor": "tsys",
      "status": "settled",
      "client_id": "CLIENT-3MtwBwLkdIwHu7ix28a3tqPa",
      "client_name": "Acme Jewelry",
      "approved_amount": 125000,
      "captured_amount": 125000,
      "refund_amount": 2500,
      "void_amount": 0,
      "net_amount": 122500,
      "batch_net_amount": 122500,
      "created_at": "2026-03-24T00:00:00Z",
      "closed_at_date_time": "2026-03-24T22:00:00Z",
      "settled_at_date_time": "2026-03-25T06:00:00Z"
    }
  ],
  "correlation_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}

Key batch fields

FieldDescription
statusCurrent batch state (for example, open, closed, settled)
approved_amountTotal approved amount in the batch (minor units)
captured_amountTotal captured amount
refund_amountTotal refunds in the batch
void_amountTotal voids in the batch
batch_net_amountNet settlement amount (captured - refunds - voids)
closed_at_date_timeWhen the batch was closed
settled_at_date_timeWhen funds were settled

Option B: Check batch settlement status

Send GET /v1/batches/status to check which batches are in progress and which have completed.

Query parameters in batch settlement status

ParameterTypeDescription
client_idstringFilter by client
last_checked_atdate-timeOnly return batches updated after this timestamp
curl -G \
  https://api.dev.paradisegateway.net/v1/batches/status \
  -H "APIKEY: YOUR-API-KEY" \
  -d last_checked_at=2026-03-24T00:00:00Z

Response in batch settlement status

{
  "has_in_progress": true,
  "in_progress_batches": [
    { "batch_id": "BATCH-02LGEHRR1BZSPA6WRY1T3H4CD", "status": "closing" }
  ],
  "completed_batches": [
    { "batch_id": "BATCH-01KFDKXMQ637EKEAY410MSQSXB", "status": "settled" }
  ],
  "max_closed_at": "2026-03-24T22:00:00Z",
  "correlation_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901"
}
Polling for settlement

Use last_checked_at with the max_closed_at value from the previous response to poll efficiently for newly completed batches without re-fetching old data.

Next steps