Cancel a Transfer
Use this endpoint to cancel a transfer that has not yet been submitted for processing. Only transfers in CREATED or PENDING status can be cancelled. Cancelling a transfer releases the held funds in Midaz and sets the status to CANCELLED. Calling cancel on an already-cancelled transfer returns success.
Documentation Index
Fetch the complete documentation index at: https://docs.lerian.studio/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
JWT Bearer token authentication. The token must include a tenantId claim that matches the X-Organization-Id header.
Headers
Organization ID used as the tenant identifier. All data is scoped to this organization. Must match the JWT tenantId claim when authentication is enabled.
Required idempotency key for safe retries. Use a UUID v4 or unique business identifier. If the same key is sent again and the original request was already processed, the cached response is returned.
See Retries and idempotency for details.
255Path Parameters
The unique identifier of the transfer to cancel.
Body
The reason for the cancellation.
500Response
Indicates that the transfer was successfully cancelled and funds were released.
Repeated calls with the same X-Idempotency key replay the cached response.
See Retries and idempotency for more details.

