Unblock a Pix Transfer
Use this endpoint to unblock a transaction that is stuck in PENDING or PROCESSING status. The endpoint fetches the current status from BTG and triggers the appropriate settlement flow if BTG shows the transaction has completed or failed. The optional request body field allowNotFoundUnblock (default false) gates ONLY the not-found branches: a BTG 404, which reverts a cash-out’s Midaz debit and fails it, and an intra-PSP cash-out parked at CREATED that Midaz holds no transaction for, which fails with nothing reverted; a cash-out whose status changed while BTG was queried is refused with 422 (PIX-0470) and nothing is reverted. An inter-PSP cash-out at CREATED is refused with 422 (PIX-0470): its Midaz debit may exist unrecorded, so an operator resolves it. An intra-PSP cash-out, which BTG never holds, is settled on Midaz alone: at CREATED 65 minutes after its creation, at PENDING 65 minutes after its last write. A cash-out at PENDING updated less than 150 seconds ago is also refused with 422 (PIX-0470): the cash-out flow may still be sending it to BTG. A repeat on a terminal cash-out closes a schedule it left PROCESSING and re-sends the recurring module’s terminal event and a reverted rejection’s client webhook, then answers 422; a 500 after the terminal write means one of these failed: repeat the call, which never reverts again. The request body is intentionally an opaque raw-bytes payload (no typed schema): unknown fields are ignored, and an empty body is valid.
Cuerpo
The body is of type file.

