Close a refund with the analysis outcome (Phase 3)
Closes a refund with the contested participant analysis outcome. TOTALLY_ACCEPTED or PARTIALLY_ACCEPTED requires every linked infraction block to be SETTLED. REJECTED requires refundRejectionReason and every linked block to be PENDING; the refund changes to CLOSED and release is attempted for each block. A release failure does not change the HTTP 200 outcome: the refund remains CLOSED and any unreleased block is returned with blocks[].status=PENDING, indicating that its hold remains outstanding. Retrying this endpoint cannot release that block: the original Idempotency-Key returns the first response, while a different key returns 409 because the refund is CLOSED. The affected block can be released with DELETE /v1/dict/infraction-reports//balance-blocks/, using blocks[].lockId as , not blocks[].spiBlockId. effectiveRefundedAmount and refundTransactionId must not be sent and return 400 when present. Only the contested participant tenant may close the refund.
Authorizations
JWT bearer token issued by the identity provider.
Headers
Client-generated key used to retry exactly the same request safely.
1 - 64Best-effort business correlation id (observability only; never fabricated).
Path Parameters
Refund internal ID (UUID format)
"018f8c1d-1234-7abc-9def-000000000010"
Body
TOTALLY_ACCEPTED, PARTIALLY_ACCEPTED, REJECTED "TOTALLY_ACCEPTED"
"operational failure confirmed; full refund"
"D12345678202601011200abcdef01234"
NO_BALANCE, ACCOUNT_CLOSURE, INVALID_REQUEST, OTHER "NO_BALANCE"
Response
OK
"87654321"
"2026-01-01T12:00:00Z"
"018f8c1d-1234-7abc-9def-000000000001"
"2026-01-01T12:30:00Z"
false
"1000.00"
FRAUD, OPERATIONAL_FLAW, PIX_AUTOMATICO, REFUND_CANCELLED "OPERATIONAL_FLAW"
"12345678"
OPEN, CLOSED, CANCELLED "OPEN"
"E12345678202601011200abcdef01234"
TOTALLY_ACCEPTED, PARTIALLY_ACCEPTED, REJECTED "3d48532f-1a2b-4422-81c3-b7dc852e262b"
"9f3a8b7e2c1d4e5a8b6f1a2b3c4d5e6f"
"refund due to operational failure"
NO_BALANCE, ACCOUNT_CLOSURE, INVALID_REQUEST, OTHER, PARTICIPANT_EXCLUSION REFUND, MANUAL 
