Skip to main content
POST
Create a PIX transaction

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Cuerpo

application/json
accountId
string
requerido

The CRM account id of the payer.

Ejemplo:

"acc-123"

amount
integer<int64>
requerido

Transaction amount in centavos (an integer, e.g. 10050 = R$ 100,50).

Ejemplo:

10050

payee
object
requerido

The recipient bank data.

clientRequestId
string

Optional client idempotency token. A retry carrying the same value is rejected instead of moving money twice; it also seeds the Midaz hold key and the JDPI Chave-Idempotencia. Send it on a manually-typed order: that order has no endToEndId until SPI mints it, so this token is the only thing that can dedup a retry. Omit to opt out.

Ejemplo:

"req-2025-01-01-abc123"

description
string

Free-text payment description.

Ejemplo:

"Invoice 42"

endToEndId
string

SPI end-to-end id. Omit ONLY for a manually-typed payment order: per JDPI §8.4.1 the id does not exist yet and is generated by SPI on this call. If you obtained one from decode-QRCode (§8.3.3) or consultar-chave (§8.2.14) you MUST send it — omitting it makes SPI mint a DIFFERENT id, which will not match the payee's QR/txId conciliation.

Ejemplo:

"E1234567890"

indirectId
string<uuid>

Optional registered-indirect identifier (UUID) routing this outbound order through an indirect participant's PIX position. Omit for a direct order. Validated server-side before any money moves; unknown or inactive is rejected.

Ejemplo:

"3f2504e0-4f89-41d3-9a0c-0305e82c3301"

key
string

The payer's PIX key, when paying from a key.

Ejemplo:

"payer@bar.com"

priority
integer<int64>

Numeric eTransactionPriority (1=PRIMARY,2=SECONDARY).

Ejemplo:

1

Respuesta

Created

amount
integer<int64>
requerido

Transaction amount in centavos.

Ejemplo:

10050

id
string
requerido

The created transaction id.

Ejemplo:

"d1f9c0a2-..."

status
string
requerido

eTransactionStatus name.

Ejemplo:

"PENDING"

description
string

Payment description.

Ejemplo:

"Invoice 42"

endToEndId
string

The SPI end-to-end id.

Ejemplo:

"E1234567890"

flow
integer<int64>

Numeric eTransactionFlow (2=CASH_OUT,3=INTRA_PSP).

Ejemplo:

2

jdpiRequestId
string

The JDPI request id (external CASH_OUT).

Ejemplo:

"REQ-123"

priority
integer<int64>

Numeric eTransactionPriority.

Ejemplo:

1