Skip to main content
POST
Process a Pix Transfer

Autorizaciones

Authorization
string
header
requerido

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Encabezados

X-Account-Id
string
requerido

Unique identifier of the Midaz Ledger Account (UUID format).

X-Purpose
enum<string>
predeterminado:TRANSFER

Transaction purpose for the cash-out. Defaults to TRANSFER when omitted.

Opciones disponibles:
TRANSFER,
CHANGE,
WITHDRAWAL,
REFUND_AUTOMATIC_PIX,
INSTANT_PAYMENT_REFUND,
INSTALLMENT_PIX
X-Idempotency
string

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.

X-TTL
integer

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.

Cuerpo

application/json
initiationId
string
requerido

Initiation ID from the initiate step.

Ejemplo:

"019c96a0-0c82-7c3d-8dcc-c180868b45c4"

amount
string
requerido

Transfer amount in BRL (format 0.00). For QR codes with a fixed amount, this must match the amount encoded in the QR code.

Ejemplo:

"100.50"

description
string

Optional description or message.

Maximum string length: 140
Ejemplo:

"Payment for services"

metadata
object

Custom key-value attributes for this transfer. Maximum 50 keys, key max 100 chars, value max 2000 chars.

Respuesta

Pix transfer processed 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.

id
string

Transfer unique identifier.

Ejemplo:

"019c96a0-0c21-71f9-a487-66a1258278a1"

endToEndId
string

End-to-end identifier.

Ejemplo:

"E123456789BR1234567890123456789"

amount
string

Transfer amount in BRL (format 0.00).

Ejemplo:

"100.00"

status
enum<string>

Transfer status.

Opciones disponibles:
CREATED,
PENDING,
PROCESSING,
COMPLETED,
FAILED,
REVERSED
Ejemplo:

"COMPLETED"

type
enum<string>

Transfer type.

Opciones disponibles:
CASHOUT,
CASHIN
Ejemplo:

"CASHOUT"

description
string

Optional description or message.

Maximum string length: 140
Ejemplo:

"Pix Cashout Transfer"

source
object

Account party (source or destination) information.

destination
object

Account party (source or destination) information.

paymentType
enum<string>

Payment type.

Opciones disponibles:
IMMEDIATE,
SCHEDULED
Ejemplo:

"IMMEDIATE"

initiationType
enum<string>

Initiation type.

Opciones disponibles:
MANUAL,
KEY,
QR_CODE
Ejemplo:

"KEY"

urgency
enum<string>

Transfer urgency.

Opciones disponibles:
HIGH,
NORMAL
Ejemplo:

"HIGH"

purpose
enum<string>

Transaction purpose type. Defaults to TRANSFER.

Opciones disponibles:
TRANSFER,
INSTANT_PAYMENT_REFUND
Ejemplo:

"TRANSFER"

accountId
string

Account identifier (UUID).

Ejemplo:

"01989f9e-6508-79f8-9540-835be49fbd0d"

aliasId
string

Alias identifier (UUID).

Ejemplo:

"01989f9e-6508-79f8-9540-835be49fbd0e"

initiatedAt
string<date-time>

Initiation timestamp (ISO 8601 UTC).

Ejemplo:

"2024-01-15T10:30:00Z"

createdAt
string<date-time>
Ejemplo:

"2024-01-15T10:30:00Z"

updatedAt
string<date-time>
Ejemplo:

"2024-01-15T10:30:00Z"

ledger
object

Midaz ledger transaction and operation identifiers.

metadata
object

Custom key-value attributes associated with this transfer. Maximum 50 keys, key max 100 chars, value max 2000 chars.

feeCharge
object

Fee calculation details (if applicable).