Saltar al contenido principal
POST
Change plan
This reference describes API version 2026-05-12. Send Commet-Version: 2026-05-12 with your request.

Autorizaciones

x-api-key
string
header
requerido

Encabezados

Commet-Version
string
predeterminado:2026-05-12

API version used by this reference. Send this header to select this contract explicitly.

Parámetros de ruta

id
string
requerido

Cuerpo

application/json
newPlanId
string
Minimum string length: 1
newBillingInterval
enum<string>
Opciones disponibles:
weekly,
monthly,
quarterly,
semiannual,
yearly
successUrl
string<uri>
promoCode
string

Promo code whose Offer prices the change, validated with the checkout's rules: a code the checkout would refuse returns 400 validation_error with the checkout's reason in details.reason. Cannot be combined with offerId.

Minimum string length: 1

Respuesta

Success

success
any
requerido
data
object
requerido