Create a new subscription

Creates a new subscription for recurring payments. Supports two authorization journeys: BACKGROUND (push notification) and USER_INTERACTION (QR code scan).

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
uuid | null

ID of a pre-configured subscription product. If provided, inherits product configuration.

customer
object
required
string
required

Payment channel/method. Valid values: PIX (PIX Automatic), WALLET (coming soon), SPEI (coming soon).

string
required

Authorization type. Valid values: BACKGROUND (Journey 1 - push notification, requires authorizationDetails), USER_INTERACTION (Journey 2 - QR code scan). INITIAL_PAYMENT (Journey 3 - Subscription and a First Immediate Payment)

string
required

Payment frequency. Valid values: WEEKLY, MONTHLY, QUARTERLY, SEMIANNUAL, ANNUAL.

retryPolicy
object
required
initialPayment
object
date-time | null

Subscription start date in ISO 8601 format

date-time | null

Subscription expiration date in ISO 8601 format

int32 | null
≥ 1
Defaults to 2880

Optional. Time window in minutes the customer has to authorize the mandate before the subscription is transitioned to EXPIRED. If omitted, defaults to 2880 minutes (48 hours). The value is persisted on the subscription and propagated to the PSP integration so the deadline is enforced end-to-end.

amount
object
required
uri
required

Webhook URL for receiving subscription and payment events. Must be HTTPS.

string
required
length between 2 and 2

ISO country code (2 characters)

boolean
Defaults to false

Whether payments should be automatically scheduled

string | null

Description of the subscription

string
required
length between 2 and 2

ISO language code (2 characters)

string
required
length ≤ 50

Your internal reference ID for this subscription. Required — used for correlation across webhooks, reporting and reconciliation. Max length: 50 characters.

metadata
object | null

Custom metadata key-value pairs

Responses

Language
Credentials
Basic
base64
:
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json