Resolve a Pix sent that is in manual review
Ends a Pix sent over SPI whose final JD answer did not arrive within the review deadline (status PENDING, pendingReason MANUAL_REVIEW, manualReview in GET /v1/transactions/, not in the list). Only the client’s operator, a person, may call it; an application is refused by the authorization layer (401, or 403 where M2M inversion is on). SETTLE commits the payer’s held money and the Pix becomes EXECUTED; REVERT releases it and the Pix becomes ERROR.
Before the ledger moves, the route asks JD for the order (8.4.2) and then for the SPI entry (8.4.7). When JD says the opposite of the action, it is refused 409 PIX-0170. When JD and the SPI prove neither outcome (no record, still processing, no endToEndId), evidenceReference, the JD support protocol, is required and kept on the transaction; without it the call is 409 PIX-0171. When JD fails, the call answers JD’s failure code (5xx) and nothing moves; retry. The ledger is moved first, then the transaction takes its final status with manualReview recording who resolved it, when, the action and what JD said; the reason and the evidence are kept on the transaction for audit and never returned.
Answers 200 with the transaction. Repeating the action on an already resolved Pix answers 200 with it as it stands and moves nothing. Every refusal moves nothing: 404 PIX-0168 for an id that names no Pix sent over SPI; 409 PIX-0169 when the Pix is not in manual review; 409 PIX-0170 and 409 PIX-0171 as above; 400 PIX-0061 for a body outside the contract (action SETTLE or REVERT, reason 10 to 500 characters, evidenceReference up to 140, endToEndId a valid SPI id) and for a SETTLE with no endToEndId when neither the transaction nor JD has one, or with one that differs from the known id or belongs to another payment (REVERT ignores endToEndId, but its format is still checked). JD’s identifiers (request id, endToEndId) are recorded on the transaction when it had none.
Parâmetros de caminho
Corpo
SETTLE only: the SPI end-to-end id of the payment, from JD support. Required when neither the transaction nor JD has one (a manually keyed order JD never answered); refused (400) when it differs from the one known or already belongs to another payment; REVERT ignores it (its format is still checked). Recorded, never sent to JD and never proof of settlement.
"E123456782026111119300k7Qz9XwP2a"
Resposta
OK

