Use this endpoint to start a Pix cash-out by creating an initiation record. This endpoint retrieves and validates destination information without moving funds.
Notes:
This endpoint supports three initiation types: MANUAL (full account data), KEY (using a Pix key), and QR_CODE (using a QR code).
For KEY initiation, the plugin queries the DICT service to retrieve destination account information.
For QR_CODE initiation, the plugin decodes the QR code and queries the DICT service to retrieve destination account information.
The initiation does not move funds - it only validates and prepares the transfer.
After successful initiation, use the Process endpoint to complete the transfer.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique identifier of the Midaz Ledger Account (UUID format).
Optional idempotency key for safe retries. Reuse the same value only when retrying the same operation after an unknown outcome.
See Retries and idempotency for details.
Time-to-live in seconds for the idempotency key cache. Defines how long the system remembers a processed request.
See Retries and idempotency for details.
Initiation type.
MANUAL, KEY, QR_CODE "KEY"
Transfer amount.
"100.00"
Pix key (required for KEY type).
"john.doe@example.com"
QR Code EMV payload (required for QR_CODE type).
Transfer description.
"Payment for services"
Pix cash-out initiation created successfully.
The response includes the X-Idempotency-Replayed header.
If the value is false, the transaction was just processed. If the value is true, the response is a replay of a previously processed request.
See Retries and idempotency for more details.