Skip to main content
POST
Create a PIX transaction

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Body

application/json
accountId
string
required

The CRM account id of the payer.

Example:

"acc-123"

amount
integer<int64>
required

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

Example:

10050

payee
object
required

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.

Example:

"req-2025-01-01-abc123"

description
string

Free-text payment description.

Example:

"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.

Example:

"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.

Example:

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

key
string

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

Example:

"payer@bar.com"

priority
integer<int64>

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

Example:

1

Response

Created

amount
integer<int64>
required

Transaction amount in centavos.

Example:

10050

id
string
required

The created transaction id.

Example:

"d1f9c0a2-..."

status
string
required

eTransactionStatus name.

Example:

"PENDING"

description
string

Payment description.

Example:

"Invoice 42"

endToEndId
string

The SPI end-to-end id.

Example:

"E1234567890"

flow
integer<int64>

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

Example:

2

jdpiRequestId
string

The JDPI request id (external CASH_OUT).

Example:

"REQ-123"

priority
integer<int64>

Numeric eTransactionPriority.

Example:

1