Skip to main content
PATCH
Cancel a batch or selected payments within it

Authorizations

api-key
string
header
default:410ca5cd265a4111982375d50802b7f8
required

Headers

Idempotent-Request-Key
string

Client-generated unique key that makes the cancellation safe to retry. A repeated call with the same key returns the original result instead of cancelling twice.

Timestamp
string<date-time>

Date and time at which the caller created the cancellation request, in RFC3339 UTC format. Used for tracing and ordering of requests.

Body

application/json

Request to cancel a whole batch or selected payments within it. Provide the batch reference and, to cancel only some payments, the list of payment references.

batchReference
string
required

Reference of the batch to cancel, as given when the batch was submitted. Without payment references the whole batch is cancelled.

Maximum string length: 36
Example:

"07edda37-da66-42db-9142-20aed7e7b5c3"

batchPaymentReferences
object[]

Payments to cancel inside the batch, each with its identifier and reason. Leave out to cancel the entire batch.

customFields
CustomFields · object

Free form key and value pairs for bank specific data that has no dedicated field. All values are strings.

Response

The cancellation was accepted. The body returns the batch reference and the resulting batch status.

Outcome of a batch cancellation, with the batch reference and its resulting status.

batchReference
string

Reference of the batch that was targeted by the cancellation request.

Example:

"07edda37-da66-42db-9142-20aed7e7b5c3"

customFields
CustomFields · object

Free form key and value pairs for bank specific data that has no dedicated field. All values are strings.

status
string

Status of the batch after the cancellation, for example batch_abandoned. The full list of values is not documented in the specification.

Example:

"batch_abandoned"