Initiate a Pix Transfer
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.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
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.
Body
Type of transfer initiation. Determines which additional field is
required: MANUAL requires destination, KEY requires key, and
QR_CODE requires emv.
MANUAL, KEY, QR_CODE "MANUAL"
Destination account information (required for MANUAL).
Pix key value (required for KEY type). Can be a CPF, CNPJ, email, phone, or EVP.
"john.doe@example.com"
QR code EMV payload (required for QR_CODE type).
"00020126...5802BR5913Fulano..."
Optional custom end-to-end ID (32-character alphanumeric string, auto-generated if not provided).
"E1234567820240101000001234567890"
Response
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.
Unique identifier for this initiation (used as initiationId in process).
"019c96a0-0c82-7c3d-8dcc-c180868b45c4"
Type of initiation.
MANUAL, KEY, QR_CODE "KEY"
EMV payload from the QR code (only for QR_CODE type).
"00020126...5802BR5913Fulano..."
End-to-end identifier for this transfer.
"E1234567820240101000001234567890"
Decoded QR code details (only for QR_CODE type). The shape varies
by QR type (static, immediate, or due-date collection).
Account party (source or destination) information.
Date-time when the initiation expires and can no longer be processed.
"2024-01-15T11:00:00Z"
"2024-01-15T10:30:00Z"
"2024-01-15T10:30:00Z"

