postBatches
Create a Batch. A Batch resource represents a group of Transactions that are sent together to the processor to be settled.
In: header
Header Parameters
A single-use, limited authentication layer in addition to an API Key or Session Key to authorize sensitive operations. Auth Tokens add security by requiring one-time approval for specific actions.
A custom, one-time identifier for any API request (GET, PUT, POST, or DELETE). Blocks future requests with the same token for 48 hours, ensuring only the first request is processed. Valid values can contain 1-100 alphanumeric and special characters. See Request Tokens for more information.
Request Body
application/json
Create Batch Request
Create Batch Request
The identifier of the Merchant that is associated with this Batch.
The platform used to process this resource.
APPLE- The Apple Payment Processor.ELAVON- The Elavon processor.FIRSTDATA- The FirstData processor.GOOGLE- The Google Payment Processor.VANTIV- The WorldPay (aka Vantiv or Litle) eComm (aka VAP) processor.VCORE- The WorldPay (aka Vantiv) Core processor.TDBANKCA- External funding with TD Bank Canada via the Operating Account.WELLSACH- The Wells Fargo ACH processor.WELLSFARGO- The Wells Fargo Merchant Services processor.WFSINGLE- The WFSINGLE processor.WORLDPAY- The WORLDPAY processor.
Value in
- "APPLE"
- "ELAVON"
- "FIRSTDATA"
- "GOOGLE"
- "VANTIV"
- "VCORE"
- "TDBANKCA"
- "WELLSACH"
- "WELLSFARGO"
- "WFSINGLE"
- "WORLDPAY"
The current status of this Batch.
open- This Batch can accept more Transactions.closed- This Batch is closed to new Transactions and is ready to be sent to the processor.
Value in
- "open"
- "closed"
The reference code of the batch. This field is automatically generated and stored as a text string and must be between 0 and 50 characters long.
The merchant's reference code of the batch. This field is stored as a text string and must be between 0 and 50 characters long.
Internal ID set for processing.
Whether this resource is marked as inactive.
0- Active1- Inactive
Value in
- 0
- 1
Whether this resource is marked as frozen.
0- Not Frozen1- Frozen
Value in
- 0
- 1
Response Body
application/json
application/json
curl -X POST "https://example.com/batches" \ -H "Content-Type: application/json" \ -d '{ "merchant": "t1_mer_63341144b40742676bea201", "platform": "VANTIV", "status": "open", "ref": "reference code of batch", "clientRef": "merchant\'s reference code", "processingId": "Internal ID", "inactive": 0, "frozen": 0 }'{ "response": { "data": [ { "id": "t1_bth_67d91c7aa2aa3800cb2be00", "created": "2025-03-18 03:10:50.6861", "modified": "2025-03-18 03:10:50.6861", "creator": "t1_log_632c5bf8960c660a1750a4a", "modifier": "t1_log_632c5bf8960c660a1750a4a", "merchant": "t1_mer_63341144b40742676bea201", "date": "2025-03-18", "platform": "VANTIV", "status": "open", "ref": "", "clientRef": "", "inactive": 0, "frozen": 0, "processingDate": "2025-03-18", "processingId": "", "closeTime": "2025-03-18 03:30:00" } ], "details": { "requestId": 1, "totals": [], "page": { "current": 1, "last": 1, "hasMore": false } }, "errors": [] }}