Create a subscription plan
Creates a new recurring subscription plan.
Authorizations
HTTP Basic authentication. Use your secret key as the username and an empty string as password. The API key should be base64 encoded in the format 'username:' when sending the Authorization header.
Body
Merchant ID
"2RhQg9M7ZCg3X3nMb9W1kX8Q"
Plan name
"Plano Premium Mensal"
Price in currency units (e.g., 99.90 for R$99.90)
99.9
ISO 4217 currency code
"BRL"
Recurrence type
weekly, biweekly, monthly, custom "monthly"
Custom recurrence interval in months (required if recurrenceType is 'custom')
3
Plan end date (ISO 8601)
"2025-12-31"
Message displayed to buyer
"Bem-vindo ao Plano Premium!"
Accepted payment methods
["credit_card"]Optional trial period configuration. If provided, new subscribers will go through a trial before the first full billing cycle.
Initial plan status
active, inactive "active"
Response
Subscription plan successfully created
Unique plan identifier
"2RhQg9M7ZCg3X3nMb9W1kX8Q"
Merchant ID
"2RhQg9M7ZCg3X3nMb9W1kX8Q"
Plan name
"Plano Premium Mensal"
Plan price
99.9
Currency code
"BRL"
Recurrence type
weekly, biweekly, monthly, custom "monthly"
Custom recurrence interval in months
null
Plan end date
null
Message displayed to buyer
"Bem-vindo ao Plano Premium!"
Accepted payment methods
["credit_card"]Plan image URL
"https://storage.example.com/plans/image.png"
Plan status
active, inactive "active"
Number of active subscriptions
150
Creation timestamp
"2024-01-15T10:30:00.000Z"
Last update timestamp
"2024-01-15T10:30:00.000Z"