Skip to main content
POST
Cancel subscription transition

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Response

id
string
required

Subscription transition ID.

customer_id
string
required

ID of the customer whose subscription transitions.

base_subscription_id
string
required

ID of the original subscription the transition is derived from. It references the last active version of the subscription.

source_subscription_id
string
required

ID of the subscription to transition from.

target_subscription_id
string | null
required

ID of the subscription to transition to.

status
enum<string>
required

The current status of the subscription transition. Possible values are 'scheduled', 'completed', 'failed', and 'draft'.

Available options:
scheduled,
completed,
failed,
draft,
pending_approval,
changes_requested,
cancelled,
pending_quote_signature
transitioned_at
string<date> | null
required

The date and time when the transition was completed. Null if the transition is not yet completed. UTC date time string in the ISO 8601 format.

name
string | null
required

An optional name for the transition

transition_date
string<date> | null
required

The date at which the transition should occur. Only applicable if the application schedule is 'scheduled'. Can be a past date within the current billing period. UTC date time string in the ISO 8601 format.

application_schedule
enum<string>
required

When the transition should be applied: 'immediately', 'scheduled' for a specific date, or 'last_renewal' to apply it retroactively to the start of the current billing period (with 'pro_rata' or 'pro_rata_separate_documents', the lines already invoiced for that period are credited and the period is invoiced again with the new prices). Past dates within the current billing period are supported and will be applied immediately.

Available options:
immediately,
scheduled,
next_renewal,
last_renewal,
quote_signature,
scheduled_after_quote_signature,
last_renewal_after_quote_signature
billing_cycle_transition_method
enum<string> | null
required

How the billing cycle is handled at the transition date. Defaults to keep_current_billing_cycle.

  • keep_current_billing_cycle: the current billing period continues with the new configuration, and the next renewal date is unchanged. Rejected when the two configurations share no product billing periodicity, as the cycle cannot then be preserved: use align_to_new_billing_cycle instead.
  • align_to_new_billing_cycle: a new billing period starts on the transition date, and the billing cycle is aligned to it.

See calculation_method for what each option bills.

Available options:
keep_current_billing_cycle,
align_to_new_billing_cycle
calculation_method
enum<string> | null
required

How the billing period in progress is settled at the transition date. Defaults to do_not_charge.

  • do_not_charge: no transition document is issued, and units added to already invoiced one-off products are not billed. With keep_current_billing_cycle, usage and end-of-period products are billed for the whole period at period end, with the new prices. With align_to_new_billing_cycle, usage and end-of-period products elapsed before the transition date are never billed, and start-of-period products are neither credited nor charged until the following renewal.
  • pro_rata: issues one document that nets both configurations. Previous configuration: start-of-period products are credited for the rest of the period, end-of-period products are charged prorated up to the transition date, and usage is charged up to the transition date. New configuration: start-of-period products are charged until the period end with keep_current_billing_cycle, or for a full new period with align_to_new_billing_cycle. Equal and opposite lines are removed. The document is a credit note when its total is negative, otherwise an invoice. Not available when the invoicing entity issues credit notes and invoices as separate documents.
  • pro_rata_separate_documents: the same lines as pro_rata, split into one document for the previous configuration and one for the new configuration. Each document is a credit note when its own total is negative, otherwise an invoice.

With application_schedule last_renewal and pro_rata or pro_rata_separate_documents, the lines already invoiced for the current period are credited, and the period is invoiced again with the new prices.

Available options:
do_not_charge,
pro_rata,
pro_rata_separate_documents