Subscriptions
Update or swap a subscription
Updates or swaps an existing subscription:
cancel: Schedules cancellation at the end of the current billing period (cancel_at_period_end: true,statusremainsactive/trialing). Dispatchessubscription.canceledandsubscription.updated.cancel_immediately: Cancels the subscription immediately (status: "canceled",cancel_at_period_end: false, andcurrent_period_endis immediately updated to the termination timestamp). Dispatchessubscription.canceled.resume: Reverses a scheduled period-end cancellation (cancel_at_period_end: false). Dispatchessubscription.uncanceledandsubscription.updated.swap: Immediately upgrades or downgrades the subscription to a newvariant_idorproduct_idwith automatic proration (create_prorations). Works in both Live and Test mode. Dispatchessubscription.upgradedandsubscription.updated.
PATCH
Update or swap a subscription
Headers
Path Parameters
Body
application/json
cancel (at period end), cancel_immediately (terminate now and set current_period_end to now), resume (undo pending cancel), or swap (change plan/variant with proration).
Available options:
cancel, cancel_immediately, resume, swap Target variant UUID when action is swap.
Target product UUID when action is swap (optional if variant_id is provided).
Response
Subscription updated successfully