Close a refund with the analysis outcome (Phase 3)
Closes a refund with the contested participant analysis outcome. TOTALLY_ACCEPTED or PARTIALLY_ACCEPTED requires at least one linked infraction block other than RELEASED or FAILED, and every such block to be SETTLED. REJECTED requires refundRejectionReason and every such block to be PENDING, and is also accepted when there is no such block; 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 X-Idempotency header 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. When BACEN has not resolved the request yet, the operation answers 409 / PIX-0118; errors[] carries operationId and operationStatus when the provider sent valid values. The resource keeps its current status until BACEN’s change arrives. Do not retry blindly: a retry can keep returning this answer after BACEN resolves the operation. A pending rejecting close keeps the refund’s concluding operations blocked (409 PIX-0012) and its balance blocks held.
Autorizações
JWT bearer token issued by the identity provider.
Cabeçalhos
REQUIRED. Client-supplied replay key, at most 64 bytes. A request without it is refused with PIX-0030 @ 400 before the handler runs. Resending the same key and request within 1 hour returns the original response, its status included, with X-Idempotency-Replayed: true. Reusing the key with a divergent method, path or body, or while the first request runs, is PIX-0031 @ 412.
1 - 64Best-effort business correlation id (observability only; never fabricated).
Parâmetros de caminho
Refund internal ID (UUID format)
"018f8c1d-1234-7abc-9def-000000000010"
Corpo
TOTALLY_ACCEPTED, PARTIALLY_ACCEPTED, REJECTED "TOTALLY_ACCEPTED"
"operational failure confirmed; full refund"
"D12345678202601011200abcdef01234"
NO_BALANCE, ACCOUNT_CLOSURE, INVALID_REQUEST, OTHER "NO_BALANCE"
Resposta
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 
