Update subscription plan
Updates an existing subscription plan. Changes do NOT affect existing subscriptions, only new subscriptions will use the updated values.
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.
Path Parameters
Unique subscription plan identifier
Body
Merchant ID (required for validation)
"2RhQg9M7ZCg3X3nMb9W1kX8Q"
Plan name
"Plano Premium Atualizado"
New plan price
119.9
Currency code
"BRL"
Recurrence type
weekly, biweekly, monthly, custom Custom recurrence interval in months
Plan end date
Message displayed to buyer
Accepted payment methods
Response
Subscription plan successfully updated
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"