Decide a received Pix under a cautelar block
Decides a received Pix that a cautelar block holds: the REVIEW the partner answered was accepted and the credit is blocked in the ledger. The Pix is named by pix-cashin:<endToEndId>. The caller is the client’s antifraud partner, through the client’s M2M application, or the client’s operator, a person, who must justify the decision in 10 to 500 characters. Both need the fraud-analyses:post permission (the editor and operator roles).
ALLOW records the decision and attempts to release the block (confirm via transaction.block-released or cautelarBlock.status). DENY keeps the block until its deadline and announces the confirmed fraud with the event transaction.block-fraud-confirmed. A person may release the block after the partner’s DENY: fraudCheck.releasedBy and fraudCheck.releasedAt record who released it and when. No decision is accepted at or after the deadline of the block.
Sending the same decision on the same analysisId again answers 200 with the transaction as it stands and moves nothing. Refusals change nothing: 404 PIX-0164 when no Pix under a cautelar block has the id, 409 PIX-0165 when the block is not open for that analysisId (it was decided otherwise, it holds no money to release, or its deadline has passed), 422 PIX-0166 for a body outside the contract, and 503 PIX-0167 with Retry-After when the accepted REVIEW has not credited the Pix yet.
Encabezados
Parámetros de ruta
Cuerpo
Respuesta
OK

