Saltar al contenido principal
POST
cURL
Upgrade or change billing interval immediately, optionally applying an Offer by offerId or the Offer of a promoCode. Scheduled changes accept neither offerId nor promoCode. From a free plan, a promoCode opens the checkout with the code applied and counts its use when the checkout is paid; without offerId or promoCode, a destination price whose free trial requires no payment method starts that trial right away without checkout. During a trial without a payment method, an immediate change returns 409 no_payment_method; scheduled changes still apply.

Autorizaciones

x-api-key
string
header
requerido

Encabezados

Idempotency-Key
string

Unique key used to safely retry this write for 24 hours without applying it twice.

Required string length: 1 - 200
Commet-Version
string
predeterminado:2026-08-27

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>
offerId
string
Minimum string length: 1
promoCode
any

Respuesta

Success

outcome
string
requerido
Allowed value: "requires_checkout"
requiresCheckout
boolean
requerido
checkoutUrl
string
requerido
object
string
requerido
Allowed value: "plan_change"
livemode
boolean
requerido
offerApplication
object