Pular para o conteúdo principal
POST

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Cabeçalhos

X-Idempotency
string
obrigatório

REQUIRED. Client-supplied replay key, at most 64 bytes. A request without it is refused with PIX-0030 @ 400 before the handler runs. Within one hour of the first 2xx answer, replaying the same key with a divergent method, URL or body is PIX-0031 @ 412.

Required string length: 1 - 64

Corpo

application/json
accountId
string<uuid>
obrigatório

Payer account UUID. The payer travels in the body rather than in a header because a series is written once and read for months afterwards, so it belongs to the record rather than to the transport.

Exemplo:

"0195948b-bf02-7e4f-9a1b-2c3d4e5f6a7b"

amount
string
obrigatório

Amount of EVERY occurrence, in BRL with two decimals. The available balance is NOT touched at creation, nor by the occurrences this call materializes.

Exemplo:

"150.00"

initiationType
enum<string>
obrigatório

How the destination is resolved, once, at creation. DICT reads the directory and requires payeeKey; MANUAL requires destination. The two blocks are mutually exclusive: a DICT body that also carries destination, or a MANUAL body that also carries payeeKey, is refused rather than resolved from one of them. A well-formed block of another type is refused with 422 PIX-0751; one with a missing field fails request validation first (400 PIX-0002), and one with an invalid field likewise (400 PIX-0003). The key is stored with the series because REG-Art.9 section 5 makes the directory re-lookup mandatory before EVERY occurrence settles. QR_CODE is REFUSED on this route with PIX-0751: a BR Code names one collection, and a series reusing it would pay that same collection every period. Use the single scheduled-payments route for a BR Code.

Opções disponíveis:
MANUAL,
DICT,
QR_CODE
Exemplo:

"DICT"

recurrence
object
obrigatório

The rule that describes the series.

currency
enum<string>

Always BRL. Present for forward compatibility only.

Opções disponíveis:
BRL
Exemplo:

"BRL"

description
string

Free-text memo carried by every occurrence, at most 140 characters -- the RmtInf ceiling. Stored and returned VERBATIM.

Maximum string length: 140
Exemplo:

"Aluguel"

destination
object

The payee's account and owner. Required when initiationType is MANUAL; refused on DICT (422 PIX-0751; first 400 PIX-0002 if a field of it is missing, 400 PIX-0003 if one is invalid).

metadata
object

Caller-owned annotation, stored and returned verbatim. This service never reads a key nor derives behaviour from a value. Absent and empty are distinct: absent stays null on read.

Exemplo:
payeeKey
object

The Pix key to resolve. Required when initiationType is DICT; refused on MANUAL (422 PIX-0751; first 400 PIX-0002 if a field of it is missing, 400 PIX-0003 if one is invalid).

purpose
enum<string>

Only IPAY can be scheduled. Pix Saque (OTHR) and Pix Troco (GSCB) are point-in-time operations and REG-Art.11-P prohibits scheduling them.

Opções disponíveis:
IPAY
Exemplo:

"IPAY"

Resposta

Idempotent replay: the same X-Idempotency key was sent with the same request within one hour of the first 2xx answer, so the original creation's response is returned unchanged. The series was NOT created a second time.

accountId
string
obrigatório

Payer account.

Exemplo:

"0195948b-bf02-7e4f-9a1b-2c3d4e5f6a7b"

amount
string
obrigatório

Amount of every occurrence, in BRL.

Exemplo:

"150.00"

createdAt
string<date-time>
obrigatório
currency
string
obrigatório

Always BRL.

Exemplo:

"BRL"

destination
object
obrigatório

The payee as photographed at creation. On a DICT series it is compared, before EVERY occurrence settles, against a fresh directory answer (REG-Art.9 section 6), which is why it is stored rather than re-resolved; the occurrences of a MANUAL series are sent to it as photographed, with no second lookup.

id
string
obrigatório

Series identifier.

Exemplo:

"01a0d8fb-1a8b-7a10-b3c4-d5e6f7a8b9c0"

initiationType
enum<string>
obrigatório

How the destination was resolved at creation.

Opções disponíveis:
MANUAL,
DICT,
QR_CODE
Exemplo:

"DICT"

lastPaymentDate
string<date> | null
obrigatório

Civil date of the series' final payment, when it has one. Null on an indefinite series, where reporting one would be a fabrication.

Exemplo:

"2028-07-10"

materializedThrough
string<date> | null
obrigatório

Civil date up to which occurrences exist -- the edge of the materialized window. Occurrences beyond it do not exist yet. Null on a series that has never been materialized.

Exemplo:

"2027-10-10"

occurrences
object[]
obrigatório

The currently materialized occurrences, oldest first -- NOT necessarily the whole series. materializedThrough states how far the window reaches, and a long-running series is enumerated in full through GET /v1/scheduled-payments?recurrence_id=. Empty and never null.

purpose
enum<string>
obrigatório

Always IPAY: REG-Art.11-P prohibits scheduling any other purpose.

Opções disponíveis:
IPAY
Exemplo:

"IPAY"

recurrence
object
obrigatório

The rule the occurrences are computed from.

source
object
obrigatório

The payer as photographed at creation.

status
enum<string>
obrigatório

Situation of the SERIES, not of any one occurrence: a cancelled series still has settled occurrences behind it, and each occurrence carries its own status.

Opções disponíveis:
ACTIVE,
COMPLETED,
CANCELLED
Exemplo:

"ACTIVE"

updatedAt
string<date-time>
obrigatório
description
string

The payer's memo, carried by every occurrence and returned exactly as stored.

Exemplo:

"Aluguel"

metadata
object

The annotation the caller sent at creation, returned verbatim. Absent when none was sent -- this service never invents one.

Exemplo:
payeeKey
object

The directory key a DICT-initiated series resolved at creation. It is kept because the mandatory re-lookup needs the key that was used, and a key is not one of the payee's attributes -- it cannot be reconstructed from the photograph above.