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.
JWT Bearer token authentication. The token must include a tenantId claim that matches the X-Organization-Id header.
Organization ID used as the tenant identifier. All data is scoped to this organization. Must match the JWT tenantId claim when authentication is enabled.
The unique identifier of the transfer to cancel.
The reason for the cancellation.
500Indicates that the transfer was successfully cancelled and funds were released.