Saltar al contenido principal
POST
cURL
Reactivates a subscription. A past_due subscription retries its outstanding renewal charge (recovering to active on success). A canceled subscription generates a fresh invoice, charges the saved card, and resets the billing period; when that invoice totals zero, for example under an Offer, it is marked paid without a charge and the subscription becomes active at once, still requiring a saved payment method. On a successful charge the subscription becomes active; a declined charge returns an error with a recoveryUrl in the error details that can be sent to the customer to update their card. A canceled subscription may apply an Offer by offerId; past-due recovery cannot. A canceled subscription returns on the latest version of what was bought: the plan’s current version for a plan code, the experiment’s latest version for an experiment code (the plan’s current version once the experiment is no longer running), and the same version for planVersionId. Add-ons that version does not sell are deactivated, and a version that does not sell the subscription’s currency returns 422 missing_regional_price. Past-due recovery keeps the subscription’s version.

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

Respuesta

Success

subscriptionId
string
requerido
invoiceId
string
requerido
status
enum<string>
requerido
Opciones disponibles:
processing,
succeeded
object
string
requerido
Allowed value: "subscription_reactivation"
livemode
boolean
requerido
offerApplication
object