Cancel a Payment Batch
PUT/v2/payment/batches/:uid/cancel
Asynchronous Processing: creates a cancellation command for the Payment Batch.
When the financial provider exposes a batch cancellation API (ex: Banco do Brasil), 1 cancellation Command is created in the batch. For providers without batch API, the cancellation is done payment by payment (fallback per-item). Before registration, the batch is cancelled locally without provider interaction.
Webhook Events
When the request is made, a payment.{type}_batch.cancel.requested event is triggered.
Only after confirmation from the financial institution is the batch marked as cancelled,
triggering payment.{type}_batch.cancel.confirmed.
Request
Responses
- 200
- 422
Cancellation command created successfully
Payment Batch cannot be cancelled in the current state