Edit Batch
Edit a batch.
Path Parameters
- Type: stringbatch
_id required
Headers
- enumAcceptconst:application/jsonrequired
Response format. Must be
application/json. - enumContent
- Type const:application/jsonrequiredRequest payload format. Must be
application/jsonwhen a body is sent.
Body·
required
application/json
Payload for editing a batch.
- Type: array of stringnullableadded
_transactions List of transaction IDs to add to the batch
- Type: stringnullableprocessor
_batch _id Optional new processor batch number to use when resubmitting
- Type: array of stringnullableremoved
_transactions List of transaction IDs to remove from the batch
Responses
- application/json
- application/json
- application/json
- application/json
Request Example for put/v1/batches/{batch_id} /edit
curl 'https://api.uat.koard.com/v1/batches/{batch_id}/edit' \
--request PUT \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'x-koard-apikey: YOUR_SECRET_TOKEN' \
--data '{
"processor_batch_id": "",
"added_transactions": [
""
],
"removed_transactions": [
""
]
}'
{
"id": "string",
"account_id": "string",
"terminal_id": "string",
"processor_name": "string",
"processor_config_id": "string",
"status": "open",
"captured_amount": 0,
"refunded_amount": 0,
"transaction_count": 0,
"processor_batch_id": null,
"opened_at": "2026-11-11T21:22:44.221Z",
"closed_at": "2026-11-11T21:22:44.221Z",
"response": {
"additionalProperty": "anything"
},
"batch_metadata": {
"additionalProperty": "anything"
},
"gateway": "string",
"mid": "string",
"tid": "string",
"terminal_name": "string",
"rejection_reason": "string"
}
