POST /batches/{id}/cancel
This operation allows you to cancel a Batch which is in DRAFT status.
All Payments associated to the Batch will also be cancelled.
Request
Ensure the bearer token is included in the Header of the POST operation:
Header
Mandatory
Description
Authorization
Yes
Parameter
Mandatory
Description
id
Yes
The Batch ID to cancel
Response
If the Batch was in DRAFT status, and the Batch could be successfully cancelled, the Batch details will return, including a Batch Summary:
Refer to GET /batches/{id}
for details on the field values.
The statusCode
for the Batch will return as CANCELLED. In addition, cancelledAmount
and cancelledCount
for the Batch Summary will be populated.
Sample Response
You can use GET /batches/{id}/payments
to get further details on the individual Payments that were cancelled.
Last updated