Skip to main content
POST
Create an immediate Pix collection (cob)

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Encabezados

X-Idempotency
string
requerido

REQUIRED. Client-supplied replay key, at most 64 bytes. A request without it is refused with PIX-0030 @ 400 before the handler runs. Replaying the same key returns the ORIGINAL response at 200, even when the body differs from the first request under this key -- the key alone decides replay for collection creation. To create a different collection, use a new X-Idempotency key and a new txId.

Required string length: 1 - 64
X-Account-Id
string
requerido

Receiver merchant account UUID (scopes DICT key validation)

Ejemplo:

"019606a1-3b4c-7d8e-9f01-234567890abc"

Cuerpo

application/json
amount
string
requerido

Collection amount in BRL

expirationSeconds
integer<int64>
requerido

Seconds until the collection expires

Ejemplo:

3600

keyType
string
requerido

Pix key type

Ejemplo:

"EVP"

keyValue
string
requerido

Pix key value

Ejemplo:

"123e4567-e12b-12d1-a456-426655440000"

merchantCity
string
requerido

Merchant city

Ejemplo:

"Goiania"

merchantName
string
requerido

Merchant name

Ejemplo:

"Loja Teste"

txId
string
requerido

BACEN transaction identifier

Ejemplo:

"TX1234567890123456789012345"

additionalInfo
object[] | null

Free-form key/value metadata (max 50 entries)

currency
string

Currency (BRL only)

Ejemplo:

"BRL"

debtor
object

Optional debtor block

description
string

Free-form description

Ejemplo:

"Pagamento do pedido 12345"

Respuesta

Replay of an already-completed request under this X-Idempotency key -- the ORIGINAL response, verbatim, even when this request's body or txId differs from the first ( Never re-executes the command and never calls the provider a second time.

accountId
string
requerido
Ejemplo:

"0196a7b2-3e5f-7061-ac12-34567890abcd"

amount
string
requerido
Ejemplo:

"100.50"

createdAt
string<date-time>
requerido
Ejemplo:

"2026-05-06T10:30:00Z"

currency
enum<string>
requerido
Opciones disponibles:
BRL
Ejemplo:

"BRL"

emvPayload
string
requerido
Ejemplo:

"00020101021226500014br.gov.bcb.pix2528pix.example.com/qr/v2/abc1235204000053039865802BR5910Loja Teste6007Goiania62070503***63041206"

expirationSeconds
integer<int64>
requerido
Ejemplo:

3600

expiresAt
string<date-time>
requerido
Ejemplo:

"2026-05-06T11:30:00Z"

externalId
string
requerido
Ejemplo:

"0196a7b2-4f60-7172-bd23-4567890abcde"

id
string
requerido
Ejemplo:

"0196a7b2-1c3d-7e4f-8a90-1234567890ab"

keyType
enum<string>
requerido
Opciones disponibles:
CPF,
CNPJ,
PHONE,
EMAIL,
EVP
Ejemplo:

"EVP"

keyValue
string
requerido
Ejemplo:

"123e4567-e12b-12d1-a456-426655440000"

locationUrl
string
requerido
Ejemplo:

"https://pix.example.com/qr/v2/abc123"

merchantCity
string
requerido
Ejemplo:

"Goiania"

merchantDocument
string
requerido
Ejemplo:

"39053344705"

merchantName
string
requerido
Ejemplo:

"Loja Teste"

organizationId
string
requerido
Ejemplo:

"0196a7b2-2d4e-7f50-9b01-234567890abc"

status
enum<string>
requerido
Opciones disponibles:
ACTIVE,
COMPLETED,
CANCELLED
Ejemplo:

"ACTIVE"

txId
string
requerido
Ejemplo:

"TX1234567890123456789012345"

type
enum<string>
requerido
Opciones disponibles:
IMMEDIATE,
DUE_DATE
Ejemplo:

"IMMEDIATE"

updatedAt
string<date-time>
requerido
Ejemplo:

"2026-05-06T10:30:00Z"

additionalInfo
object[] | null
cancelledAt
string<date-time>
Ejemplo:

"2026-05-06T10:40:00Z"

cancelledReason
string
Ejemplo:

"Customer requested cancellation"

debtor
object
description
string
Ejemplo:

"Pagamento do pedido 12345"

payment
object