Change subscription

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Subscription handle

Body Params
string
enum
required

When to perform the subscription change. Either immediate or renewal.

Allowed:
string

The handle of the plan to change to

int32
≥ 0

Optional custom per quantity plan price. If provided the plan price billed for each billing period will be overridden by this price.

int32
≥ 1

Optional quantity override. If not provided, the subscription's current stored quantity is preserved unchanged, regardless of the new plan's default quantity. If provided, the given value is used.

string
enum

In the case of immediate change and change not affecting billing period, how to bill for the remaining partial period. Either prorated, full, zero_amount or none. The default is prorated.

Allowed:
boolean

Whether the optional amount is including VAT. Defaults to true.

boolean

Force a change to the amount_incl_vat setting even if the value appears unchanged. When true, the amount_incl_vat value will be explicitly set, allowing reset to plan defaults when null.

string
enum

In the case of immediate change, optional method for compensation of partial period, either full_refund, prorated_refund, full_credit, prorated_credit or none. Default is prorated_refund

Allowed:
string
enum

Optional argument to override plan setting on how to handle a potential initial partial billing period for fixed day scheduling. The options are to bill for a full period, bill prorated for the partial period, bill a zero amount, or not to consider the period before first fixed day a billing period. The default is to bill prorated. Options: bill_full, bill_prorated, bill_zero_amount, no_bill.

Allowed:
string

If the subscription change results in a new period due to change to a plan with different scheduling, or the use of argument force_new_period, an optional date and time from which the subscription is eligible to schedule first invoice can be given. See subscription create and subscription reactivate argument start_date. If the subscription has not yet started it's billing cycles, e.g. in trial or changing from a manual plan, start_date will default to now.

boolean

If an immediate change should result in a new billing period starting now, or at the optional start_date. If the subscription is in trial the trial will be terminated. Default is false. If the subscription change results in a new period due to change to a plan with different scheduling, this option will have no effect as new period is required in this case.

boolean

If there are pending changes at renewal for the subscription they can be cancelled using this argument and timing=renewal

add_ons
array of objects
length between 0 and 100

Add-ons to attach to subscription. The same add-on can only be attached to subscription once unless unique handles are supplied for the subscription add-on. A maximum of 100 add-ons is allowed.

add_ons
remove_add_ons
array of strings

Subscription add-ons to remove from subscription by subscription add-on handle

remove_add_ons
string

Date and time on the form yyyy-MM-dd, yyyyMMdd, yyyy-MM-ddTHH:mm and yyyy-MM-ddTHH:mm:ss which represents the earliest possible cancellation date

int32
0 to 12000

Optional number of notice periods for a cancel. The subscription will be cancelled for this number of full periods before expiring. Either from the cancellation date, or from the end of the the current period. See notice_periods_after_current. The default is to expire at the end of current period (0). A value of 1 (and notice_periods_after_current set to true) will for example result in a scenario where the subscription is cancelled until the end of current period, and then for the full subsequent period before expiring.

string
enum

Time unit used in conjunction with notice periods

Allowed:
string

Contract period start date for the subscription

string

Contract period end date for the subscription

int32
0 to 12000

Contract period after renewal

string
enum

Time unit for the contract period after renewal

Allowed:
Responses

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json