Cancel Pending Change

View as Markdown
Cancel a pending plan change scheduled for period_end. If a subscription has a pending plan change (scheduled via `effective_at: "period_end"`), this endpoint cancels it. Returns the details of the cancelled pending change, or status "not_found" if no pending change exists. Works for both User and API Key authentication. Account access is automatically validated via endpoint dependency.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

subscription_idstringRequired
account_idstringRequired

Response

Successful Response
statusenum

‘cancelled’ if pending change was removed, ‘not_found’ if none existed

subscription_idstring
ID of the subscription
previous_pending_changeobject or nullOptional

The cancelled pending change details (if any)

Errors

422
Unprocessable Entity Error