Reverse loan account transaction
Creates an immutable compensating transaction and preserves reversal lineage. The reversal’s effective date is DERIVED from the payment being reversed and is not accepted in the request; a body carrying effectiveDate is refused 422. Idempotency is enforced in the use case via the X-Request-ID header (X-Idempotency fallback): a reused request ID with different facts yields 409. A malformed UUID yields 422; an unknown transaction yields 404; a payment already reversed yields 409. A reversal is REFUSED 422 when the loan account carries a payment or a schedule version whose effective timestamp is strictly later than the reversed payment’s. The problem document names which fact blocks, in errors[0].message: REVERSAL_REFUSED_LATER_PAYMENT (the borrower paid again — use the compensating-adjustment path), REVERSAL_REFUSED_LATER_SCHEDULE_VERSION (the schedule was re-agreed — the remedy is a new schedule version), or REVERSAL_REFUSED_LATER_FACTS_EXIST (both).
Autorizaciones
JWT bearer token issued by the identity provider.
Encabezados
Canonical idempotency request ID. Falls back to X-Idempotency when absent.
"550e8400-e29b-41d4-a716-446655440010"
Fallback idempotency request ID used when X-Request-ID is absent.
"550e8400-e29b-41d4-a716-446655440011"
Parámetros de ruta
Loan account identifier (UUID).
"550e8400-e29b-41d4-a716-446655440000"
Original repayment transaction identifier (UUID).
"550e8400-e29b-41d4-a716-446655440001"
Cuerpo
Respuesta
OK
Reversed amount (2 d.p. string).
"125.00"
Where the reversed money went: 'revived' (the debt returned to this contract, its schedule is back) or 'returned_payment_receivable' (the contract stayed discharged and the money opened a separate debt of the borrower, outside the credit operation and with no payroll deduction behind it).
revived, returned_payment_receivable "revived"
ISO-8601 effective date of the reversal.
"2026-06-14"
Loan account UUID.
"550e8400-e29b-41d4-a716-446655440000"
Reversed original transaction UUID.
"550e8400-e29b-41d4-a716-446655440001"
Product profile version applied to the reversal.
"1.0.0"
Operator-supplied reversal reason.
Compensating reversal transaction UUID.
"550e8400-e29b-41d4-a716-446655440002"
Jurisdiction code applied to the reversal.
"BR"
Idempotency request ID echoed from the request.
"550e8400-e29b-41d4-a716-446655440010"
Identifier of the returned-payment receivable this reversal opened. Present only when destination is 'returned_payment_receivable'.
"550e8400-e29b-41d4-a716-446655440003"

