Saltar al contenido principal
POST

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

Cuerpo

application/json
accountId
string<uuid>
requerido

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.

Ejemplo:

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

amount
string
requerido

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

Ejemplo:

"150.00"

initiationType
enum<string>
requerido

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.

Opciones disponibles:
MANUAL,
DICT,
QR_CODE
Ejemplo:

"DICT"

recurrence
object
requerido

The rule that describes the series.

currency
enum<string>

Always BRL. Present for forward compatibility only.

Opciones disponibles:
BRL
Ejemplo:

"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
Ejemplo:

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

Ejemplo:
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.

Opciones disponibles:
IPAY
Ejemplo:

"IPAY"

Respuesta

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
requerido

Payer account.

Ejemplo:

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

amount
string
requerido

Amount of every occurrence, in BRL.

Ejemplo:

"150.00"

createdAt
string<date-time>
requerido
currency
string
requerido

Always BRL.

Ejemplo:

"BRL"

destination
object
requerido

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
requerido

Series identifier.

Ejemplo:

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

initiationType
enum<string>
requerido

How the destination was resolved at creation.

Opciones disponibles:
MANUAL,
DICT,
QR_CODE
Ejemplo:

"DICT"

lastPaymentDate
string<date> | null
requerido

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

Ejemplo:

"2028-07-10"

materializedThrough
string<date> | null
requerido

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.

Ejemplo:

"2027-10-10"

occurrences
object[]
requerido

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>
requerido

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

Opciones disponibles:
IPAY
Ejemplo:

"IPAY"

recurrence
object
requerido

The rule the occurrences are computed from.

source
object
requerido

The payer as photographed at creation.

status
enum<string>
requerido

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.

Opciones disponibles:
ACTIVE,
COMPLETED,
CANCELLED
Ejemplo:

"ACTIVE"

updatedAt
string<date-time>
requerido
description
string

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

Ejemplo:

"Aluguel"

metadata
object

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

Ejemplo:
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.