Skip to content
Last updated

Batch reports

These are the endpoints you reconcile against. A deposit in the merchant's bank account corresponds to a batch, not to a transaction, so matching the two means reading batches.

EndpointUse it to
GET /v1/batchesList batches
GET /v1/batches/statusCheck what has changed since you last looked
GET /v1/batches/{id}/transactionsRead a known batch's transactions
GET /v1/batches/transactionsRead the open batch, before it has an ID

List batches

Loading...

This endpoint pages differently from the transaction endpoints. It takes skip and take where transactions take offset and limit, and sort_column where transactions take sort_by. The two were built at different times and have not been reconciled.

HereOn GET /v1/transactions
skipoffset
takelimit
sort_columnsort_by
search_text, termno equivalent

Filter with term

term narrows the list by date, status and time zone. It takes a comma-separated list of pieces:

PieceFormHow many
Datecreatedate with >=, <=, >, < or =, against a quoted ISO 8601 timestampRepeat it to bound a range
Statusstatus= with opened, closed, in_progress or failedOne
Time zoneAn IANA time zone name, such as America/Chicago, or UTCOne

For example, the closed batches in September, by Chicago's calendar:

createdate>='2026-09-01T00:00:00Z',createdate<='2026-09-30T23:59:59Z',status=closed,America/Chicago

A timestamp with no offset is read as UTC. The time zone decides which calendar day an open batch falls on, and is UTC when you leave it out.

Check each piece before you send it. The gateway refuses a term holding anything else, and today it answers 500 with SYSTEM_ERROR, not 400. So a typo in a filter reads like a server fault.

Read a batch's status

Each batch in the list carries status, by name:

statusMeans
OpenedNot yet sent for settlement. An open batch has no batch_id
In-ProgressSent for settlement and awaiting the result
ClosedSettled by the processor
FailedThe close failed

Compare them exactly as written: capitalized, with a hyphen in In-Progress. The term filter spells the same statuses in lowercase, with an underscore in in_progress.

Read a batch's dates

Each batch carries three ISO 8601 timestamps: created_at, closed_at and settled_at. closed_at is null while the batch is open, and settled_at is null until it settles.

Do not build on the _date_time fields. created_at_date_time, closed_at_date_time and settled_at_date_time repeat the same times as display text, such as 06/05/2026 02:00:51 PM, in the gateway's local time with no offset. They are deprecated, and will be removed on or after 2026-12-01. Read the timestamps instead, and format them for display yourself. After the removal, a sort_column naming one of these fields is no longer accepted.

Check for changes

Loading...

last_checked_at returns what has changed since that timestamp, which makes this the endpoint to poll on a schedule rather than re-listing everything.

This endpoint reports status as a code, not a name. status is a string holding a number:

statusWhereMeans
"10"Every batch in in_progress_batchesIn progress: the batch is closing
"2"completed_batchesClosed: the batch closed successfully
"5"completed_batchesFailed: the batch close failed

These are the same statuses GET /v1/batches reports as In-Progress, Closed and Failed. Read each endpoint's status in its own vocabulary, and compare the codes as strings, not numbers.

Read a batch's transactions

Once a batch has an ID, ask for its contents directly.

Loading...

include_bad_transactions defaults to false. Turn it on when you are investigating a mismatch — a batch total that does not agree with your own figures often has an excluded transaction behind it.

Read the open batch

A batch has no ID until it exists, so there is a separate endpoint for the batch that is still accumulating.

Loading...

Use it to see what will settle at the next close. It takes client_id, integration, created_at, a timezone from the supported list, and card_type.

card_type here is not the same parameter as on GET /v1/transactions. It is narrower:

GET /v1/transactionsGET /v1/batches/transactions
AcceptsCREDIT, DEBIT, UNKNOWNCREDIT, DEBIT
Comma-separated listYesNo
UNKNOWNMatches undetermined rowsReturns 400

On this endpoint CREDIT also returns the rows whose card type was never determined, which is the behavior UNKNOWN gives you on the other one.

Reconciling

The order that works:

  1. Poll GET /v1/batches/status with last_checked_at to find closed batches, the ones whose status is "2".
  2. For each, read GET /v1/batches/{id}/transactions.
  3. Match the batch total against the deposit.
  4. When they disagree, re-read with include_bad_transactions=true.

For ACH, keep watching after settlement. A return can arrive days later and will not appear in the batch you already reconciled. See Find and report on transactions.

Next steps