Edit Batch

​

Edit a batch.

Path Parameters

Headers

  • Response format. Must be application/json.

  • Request payload format. Must be application/json when a body is sent.

Body·

required
application/json

Payload for editing a batch.

  • List of transaction IDs to add to the batch

  • Optional new processor batch number to use when resubmitting

  • 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"
}