Skip to content
Last updated

Transaction lifecycle

A transaction is not finished when the response arrives. It gets authorized, possibly captured, gathered into a batch, settled, and — for ACH — it can still be returned days later.

Knowing which stage a transaction is in tells you what you can still do to it. Most of the rules on this page reduce to one question: has it settled yet?

DECLINED or ERROR

APPROVED

SALE

AUTH

capture

void

batch closes

refund

ACH only

Request

result

Finished

Authorized

In a batch

Awaiting capture

Settled

Refunded

Returned

DECLINED or ERROR

APPROVED

SALE

AUTH

capture

void

batch closes

refund

ACH only

Request

result

Finished

Authorized

In a batch

Awaiting capture

Settled

Refunded

Returned

The stages

StageHow you knowWhat you can do
Authorizedresult is APPROVEDCapture it, or void it
Awaiting capturetype is AUTH and no capture references itCapture, partially capture, or void
In a batchListed by GET /v1/batches/transactions. batch_id is still nullVoid it, until the batch closes
Settledis_settled is true, and batch_id is setRefund it
Returnedis_returned is trueNothing. ACH only

batch_id is null until the batch settles. The gateway assigns it when the settlement request reaches the processor, not when the transaction joins the open batch. A null batch_id on a fresh sale is normal.

Each step is its own transaction

This is the part that surprises people coming from other gateways.

A capture does not update the authorization. It creates a new transaction with its own id, a type of CAPTURE, and a reference_transaction_id pointing back at the authorization. The same is true of a cancel and a refund.

So a single payment can be several records:

TRANSACTION-…A   type: AUTH      reference_transaction_id: null
TRANSACTION-…B   type: CAPTURE   reference_transaction_id: TRANSACTION-…A
TRANSACTION-…C   type: REFUND    reference_transaction_id: TRANSACTION-…B

When you reconcile, follow reference_transaction_id rather than expecting one row per payment.

Three enums describe a transaction type

They are not interchangeable, and picking the wrong one is a common source of 400s and empty report results.

WhereValues
Creating a transactionSALE, AUTH, PAYOUT
On a response, and on the report filterSALE, AUTH, INCREMENTAL_AUTH, PAYOUT, REFUND, CANCEL, CAPTURE
As the discriminator on a cancel or refund bodyVOID, REFUND

A voided payment comes back as CANCEL, never VOID. VOID is the word you send; CANCEL is the word you read. Filtering a report on VOID returns 400 INVALID_REQUEST_DATA — see Find and report on transactions.

INCREMENTAL_AUTH appears only on responses. There is no way to create one through the public API.

Approved is not always final

A card decline arrives in the response. An ACH return does not — it can show up days after settlement, when the receiving bank rejects the entry.

is_returned carries it, and it is worth reading alongside is_settled rather than instead of it, because a returned transaction has usually settled first. Accept an ACH payment covers the return fields and their quirks.

There are no webhooks, so finding out means polling the reporting endpoints.

Next steps