Skip to main content
POST
Create a payment link
The link is created ACTIVE — status is not accepted in the body. So it must be sellable right away: every product must be an active product of your organization’s catalog with a price above zero, and expirationDate, when sent, must be today or later. Each checkout of the link creates a contract and a deal for the payer, charging the products’ prices at that moment. Any member of the organization, or an admin of the realm, can create one; createdBy and updatedBy are set to the ID of the authenticated caller.

Path Parameters

realmId
string<uuid>
required

ID of your realm.

Format: UUID

organizationId
string<uuid>
required

ID of your organization: the one that sells through the link.

Format: UUID

Body

application/json
name
string
required

Name of the link. The checkout page shows it to the payer, and it becomes the description of the deal each checkout creates.

Required string length: 2 - 56
Example:

"Plano anual"

products
object[]
required

What the link sells. At least one. The amount charged is the products' current prices times their quantities, read at each checkout.

Minimum array length: 1
type
enum<string>
required

ONE_TIME: each checkout charges once. RECURRENT: each checkout charges numberOfInstallments times, monthly.

Available options:
RECURRENT,
ONE_TIME
Example:

"ONE_TIME"

paymentMethod
enum<string>[]
required

The ways the payer can choose from at checkout: BANK_SLIP (boleto), PIX (a PIX charge), PIX_AUTOMATIC (PIX Automático: the payer authorizes the recurring payments once) or PIX_INITIATION (recurring scheduled PIX, authorized the same way). A RECURRENT link with PIX_AUTOMATIC needs numberOfInstallments above 1 and firstPaymentDate.pixAutomatic.


Example: ["PIX","BANK_SLIP"]

Minimum array length: 1
Available options:
BANK_SLIP,
PIX_INITIATION,
PIX,
PIX_AUTOMATIC
firstPaymentDate
object
required

When the first payment of a checkout is due, counted from the checkout day: SAME_DAY, ONE_DAY, FIVE_DAYS, TEN_DAYS, THIRTY_DAYS, SIXTY_DAYS, or EXPIRATION_DATE (the link's expirationDate; the checkout day when it has none). At least one key. One value applies to every checkout, whatever method the payer picks: pixAutomatic when set, otherwise bankSlip, otherwise pix.

description
string

What the link sells, shown on the checkout page.

Maximum string length: 250
Example:

"Acesso completo por 12 meses."

expirationDate

Last day the link can be paid: an ISO 8601 date (YYYY-MM-DD, read as midnight UTC) or a date-time with an offset. Today or later. The link can be paid through that day: the daily expiry run, at 03:01 UTC (00:01 in Brasília) of the following day, turns it EXPIRED, which is final. Omit it for a link that never expires.

Example:

"2026-12-31"

secondaryPaymentMethod
enum<string>[]

Other ways each invoice can also be paid, whatever the payer chose — typically PIX and/or BANK_SLIP alongside PIX_AUTOMATIC or PIX_INITIATION.


Example: ["PIX"]

Available options:
BANK_SLIP,
PIX_INITIATION,
PIX,
PIX_AUTOMATIC
numberOfInstallments
integer | null

How many monthly payments a checkout of a RECURRENT link creates. Above 1 for a RECURRENT link with PIX_AUTOMATIC. Omitted or null: 1.

Required range: x >= 1
Example:

12

Response

Successful response

A payment link.

id
string
required

ID of the payment link. The checkout page of the link is addressed by it.

Example:

"5c1e8d2a-7b4f-4e3a-9d6c-2a1b0f9e8d7c"

name
string
required

Name of the link.

Example:

"Plano anual"

status
enum<string>
required

ACTIVE: payers can check out. DEACTIVATED: switched off; it can be activated again. EXPIRED: its expirationDate passed; final.

Available options:
ACTIVE,
DEACTIVATED,
EXPIRED
Example:

"ACTIVE"

products
object[]
required

What the link sells.

expirationDate
string<date-time> | null
required

Last day the link can be paid (midnight UTC of that day), or null when it never expires.

Example:

"2026-12-31T00:00:00.000Z"

type
enum<string>
required

ONE_TIME: each checkout charges once. RECURRENT: monthly, numberOfInstallments times.

Available options:
RECURRENT,
ONE_TIME
Example:

"ONE_TIME"

paymentMethod
enum<string>[]
required

The ways the payer can choose from at checkout.


Example: ["PIX","BANK_SLIP"]

Available options:
BANK_SLIP,
PIX_INITIATION,
PIX,
PIX_AUTOMATIC
secondaryPaymentMethod
enum<string>[]
required

Other ways each invoice can also be paid. Empty when there are none.


Example: ["PIX"]

Available options:
BANK_SLIP,
PIX_INITIATION,
PIX,
PIX_AUTOMATIC
description
string

What the link sells. Absent when it has none.

Example:

"Acesso completo por 12 meses."

firstPaymentDate
object

When the first payment of a checkout is due, per payment method.

numberOfInstallments
integer

How many monthly payments a checkout of a RECURRENT link creates, or null (1).

Example:

null

createdAt
string<date-time>

When the link was created.

Example:

"2026-10-26T14:30:00.000Z"

updatedAt
string<date-time>

When the link was last changed.

Example:

"2026-10-26T14:30:00.000Z"