Skip to content

Settlements

Settlement is the process of actually transferring funds between parties to finalize a transaction.

Settlements are resolved in batches. All outstanding authorized transactions are resolved together. This processing transfers funds to the merchants' accounts.

The merchant defines a settlement time in their merchant dashboard. This the time of day, typically at night or after the store's closing. Settlements are done automatically at that time. There is no explicit API call needed to start this automatic processing.

Alternatively, the batch settlement may be explicitly started at any time.
Use: POST {{baseURL}}/v2/settlements/batches/close
This does not process individual transactions. It processes only outstanding authorized transactions. The only difference is the endpoint gives the merchant some flexibility in the settlement batches.

If the open batch has no outstanding transactions to settle, this call returns 400 Bad Request instead of submitting an empty settlement.

A typical workflow for settlement includes:

Authorization
An authorized transaction is one that has been approved and funds are held or reserved. No money has moved yet. That means funds are not instantly available for each transaction. Merchants may see a delay between a sale and the funds deposited in their account.

For example, the following call starts a transaction with the captureMethod of Auto. This automatically adds the transaction in an open settlement batch when the transaction is completed. The call returns transactionId, which may be used to reference this transaction.

Sample Authorization Call
  POST /v2/transactions
  Authorization: Bearer {{apiKey}}                                                                                          
  Content-Type: application/json
  {                                                                                                                         
  "baseAmount": 150.00,                                                                                                 
  "currencyCode": "USD",
  "customerInitiatedTransaction": true,
      "transactionDetails": 
      {
          "cardData":
          {
              "captureMethod": "Auto",
              "paymentMethodDetails":
              {
                "cardNumber": "4111111111111111",
                "securityCode": "737",
                "expirationMonth": 9,
                "expirationYear": 2027
                }
            }
        }
    }

Capture or batch
Approved transactions are grouped together, or batched, for later processing.

If captureMethod is Auto, no additional processing is required at this step. The transaction has been added to the settlement batch automatically.

If captureMethod is Manual, the transaction must be explicitly added to the settlement batch. In this case use POST /v2/transactions/{{transactionId}}/capture to capture it to the settlement batch.

Care must be taken when using Manual because if the transaction is never captured, the authorization simply expires and no funds move.

Sample Capture Call

Omit the body (or send {}) for a full capture. Once captured, it enters the open settlement batch.

POST /v2/transactions/{{transactionId}}/capture
Authorization: Bearer {{apiKey}}
Content-Type: application/json

{
  "amount": 150.00
}

Settlement
Settlement is the step where an authorized transaction becomes a real transfer of money.

The batch is submitted to the card networks or banks. This processing includes moving the money from the cardholder's bank, through the network, to the acquiring bank. It eventually ends at merchant's account, minus fees. This batch processing usually happens on a schedule, such as daily batch settlement at the end of business.

Verifying
It may take a while for settlement processing to finish. To verify the status of the settlement processing use:
GET /v2/settlements/batches
See batchStatus for the settlement status. The processing is complete with the status Settled.

Note that createdOn is null for the currently open batch, since its record is only materialized once settlement completes.

To retrieve every transaction inside a specific batch, use GET /v2/transactions with the batchId filter.

Rather than polling GET /v2/settlements/batches, subscribe to webhook endpoint for settlement.batch.completed. This returns a pushed notification once the settlement batch finishes processing.

The webhook return payload is a reduced portion of the full payload. It intends to be complete enough to verify the result. No status is included because this event is triggered only by a Settled status.

    {
        "id": "0f27fcce-a282-4049-b984-e82325ea1d6b",
        "data": { "object": { "id": "555e779c-...", "resourceType": "settlement" } },
        "type": "settlement.batch.completed",
        "created": 1784068840,
        "apiVersion": "v2"
    }

Lists settlements

Request

GET {{baseURL}}/v2/settlements/batches

This endpoint lists transaction batch settlements.

The createdOn field is null for the currently open batch, since its record is only materialized once settlement completes.

This endpoint requires a merchant API token. A partner API token will result in a permissions error including possibly a 403 response.

See Also:
To close the open batch and submit it for settlement, see POST /v2/settlements/batches/close.
To retrieve all transactions within a specific batch, see GET /v2/transactions with the batchId filter.

Security
Bearer
Query
pageIndexinteger, (int32), [ 0 .. 100000 ]

Specifies the page number of the returned search results.

A page is considered each set of the pageSize values.

The page count is zero-based. The maximum for pageIndex, or the page number, is the pageSize divided by the total count rounded down. For example, the pageSize is 50 and the total is 130. That means there are three pages, but the pageIndex value is in the inclusive range from zero to two.

Value restrictions include:

  • A value less than zero is not permitted.
  • Values equal to or greater than totalPages end successfully but will not return any items.

For page size information, see pageSize.

Example: 0

Default:0
pageSizeinteger, (int32), [ 1 .. 100 ]

Specifies the number of items for each page of the returned search results.

A page is considered each set of the pageSize values.

The page count is zero-based. The maximum for pageIndex, or the page number, is the pageSize divided by the total count rounded down. For example, the pageSize is 50 and the total is 130. That means there are three pages, but the pageIndex value is in the inclusive range from zero to two.

For page numbering information, see pageIndex.

Example: 50

Default:20
sortOrderstring, <= 4 characters

Specifies the sort order.

The sort order is specified by the sortOrder value.
The field that gets sorted by is specified by the sortBy value.

Valid values are:

ValueDescription
ascSorts results in ascending order, from the lowest value to the highest, or from the oldest timestamp to the most recent.
descSorts results in descending order, from the highest value to the lowest, or from the most recent timestamp to the oldest.
Default:"desc"
Example:sortOrder=desc
sortBystring, <= 16 characters

Specifies the field the results get ordered or sorted by.

If null or omitted, results come back newest first.

The sort order is specified by the sortOrder value.

The following fields may be used to sort results:
batchStatus
createdOn
totalNetAmount
transactionCount

Example: totalNetAmount

Default:"createdOn"
Example:sortBy=totalNetAmount
Examples:
Sort by creation date (default)
sortBy=createdOn
Sort by net amount
sortBy=totalNetAmount
fromDatestring, (ISO 8601 date-time)

Specifies a filter to return items at or after this date-time (in an ISO 8601 date-time format).

If only fromDate is specified, the search returns all available items from the fromDate value to the present. The fields fromDate and toDate may be used together to create an inclusive range. We recommend creating an inclusive range to avoid a potentially excessive number of returns.

Example: 2025-01-27T12:05:54.322Z

Example:fromDate=2025-01-27T12:05:54.322Z
toDatestring, (ISO 8601 date-time)

Specifies a filter to return items at or before this date-time (in an ISO 8601 date-time format).

If only toDate is specified, the search returns all available items up to the toDate value. The fields fromDate and toDate may be used together to create an inclusive range. We recommend creating an inclusive range to avoid a potentially excessive number of returns.

Example: 2026-02-27T12:05:54.322Z

Example:toDate=2026-02-27T12:05:54.322Z
batchIdsArray of strings, (UUID)

Specifies an array of batch identifiers to filter by.

Example: fe08c47b-2c3d-4e4f-5a6b-7c8d9e0f1a47

Example:batchIds=fe08c47b-2c3d-4e4f-5a6b-7c8d9e0f1a47&batchIds=0f19d58c-3d4e-4f5a-6b7c-8d9e0f1a2b58
Examples:
One batch
batchIds=["8f2c1a3b-6d4e-4a5f-9b8c-1e2d3f4a5b6c"]
Two batches
batchIds=["8f2c1a3b-6d4e-4a5f-9b8c-1e2d3f4a5b6c","3a6f0e94-7c21-4d85-b0e9-4f12a8d6c731"]
paymentProcessorIdsArray of strings, (UUID)

Specifies an array of payment processor identifiers to filter by.

Example: 1a2ae69d-4e5f-4a6b-7c8d-9e0f1a2b3c69

Example:paymentProcessorIds=1a2ae69d-4e5f-4a6b-7c8d-9e0f1a2b3c69
Examples:
Card processor only
paymentProcessorIds=["36e0e61e-3614-4c68-a919-1bffc8bdb7b6"]
Card and ACH processors
paymentProcessorIds=["36e0e61e-3614-4c68-a919-1bffc8bdb7b6","8932c37e-9ae0-46ed-8da4-e70eb9458596"]
batchStatusstring

Specifies a filter for the batch settlement type.

Valid values are:

Batch TypeMeaning
OpenAn open batch is still active and accepting transactions.
PendingSettlementThe batch has been submitted for settlement and is processing with the acquirer or bank.
SettledA settled batch has completed processing with the acquirer or bank.
DeclinedThe batch settlement was declined by the acquirer or bank.

Example: Open

Enum:"Open""PendingSettlement""Settled""Declined"
Example:batchStatus=Open
// Language is not supported.

Responses

OK

Bodyapplication/json
itemsArray of objects or null

Indicates an object returning found batch settlements.

pageInfoobject

Indicates an object describing the pagination status.

If additional pages to review are needed, repeat the exact same search but include a new pageIndex value. Typically, this will increment the current pageIndex by one. However, any valid value may be used. Value restrictions include:

  • A value less than zero is not permitted.
  • Values equal to or greater than totalPages end successfully but will not return any items.
Response

The newest batches first, with the default sort. The open batch has no batchId or createdOn yet, because its record is created when it settles.

{ "items": [ { "batchId": null, "paymentProcessorId": "36e0e61e-3614-4c68-a919-1bffc8bdb7b6", "paymentProcessorName": "Primary card processor", "externalBatchId": null, "createdOn": null, "transactionCount": 23, "totalNetAmount": 1832.17, "totalSalesAmount": 1874.35, "totalRefundsAmount": 42.18, "batchStatus": "Open" }, { "batchId": "5c9e2d71-0a4f-4b38-9d16-e3a7f81c2b05", "paymentProcessorId": "8932c37e-9ae0-46ed-8da4-e70eb9458596", "paymentProcessorName": "ACH processor", "externalBatchId": "ACH-20261019-01", "createdOn": "2026-10-19T17:30:00.000Z", "transactionCount": 4, "totalNetAmount": 925, "totalSalesAmount": 925, "totalRefundsAmount": 0, "batchStatus": "PendingSettlement" }, { "batchId": "8f2c1a3b-6d4e-4a5f-9b8c-1e2d3f4a5b6c", "paymentProcessorId": "36e0e61e-3614-4c68-a919-1bffc8bdb7b6", "paymentProcessorName": "Primary card processor", "externalBatchId": "0418", "createdOn": "2026-10-18T09:00:00.000Z", "transactionCount": 61, "totalNetAmount": 5124.15, "totalSalesAmount": 5310.4, "totalRefundsAmount": 186.25, "batchStatus": "Settled" } ], "pageInfo": { "pageIndex": 0, "pageSize": 20, "totalItems": 3, "totalPages": 1, "hasMore": false } }