putBatchesId
Update a Batch. A Batch resource represents a group of Transactions that are sent together to the processor to be settled.
In: header
Path Parameters
The ID of this resource and The Batch ID.
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
Update Batch Request
Update Batch Request
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 PUT "https://example.com/batches/t1_bth_67d91c7aa2aa3800cb2be00" \ -H "Content-Type: application/json" \ -d '{ "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": [] }}