Cancel subscription

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

An active subscription can be cancelled. When the subscription will expire is determined by possible notice and fixation period defined for the plan, or optional overriding notice period defined in the cancel request. By default the subscription will expire at the end of the current billing period. Cancelling a subscription in trial will always result in an expire at the end of the trial period.

Errors

The operation can generate the following errors beside the generic HTTP error codes described here.

Error code HTTP codeDescription
12404Subscription not found
13400Subscription expired, must be active
95400Subscription on-hold, must be active
22400Subscription already cancelled
93400Cannot expire in current period. A custom expires at has been provided that is in the current period.
Path Params
string
required

Subscription handle

Body Params
int32

Optional override of the notice periods set for plan. See plan for the definition of notice periods.

boolean

Optional override of the notice periods after current setting for plan. See plan for the definition of notice periods.

string

Optional fixed date and time on when the subscription should expire. Using this option results in prorated billing for the last partial period. Notice that when using this option the cancellation cannot be uncancelled in the last partial period. The fixed expire date takes precedence over notice periods and fixation period. The fixed expire date must be after the end of the current periods. On the form yyyy-MM-dd, yyyyMMdd, yyyy-MM-ddTHH:mm and yyyy-MM-ddTHH:mm:ss.

boolean

If subscription is in trial and this flag is set to true, the potential notice and fixation periods will be respected. This can be used in a paid trial scenario where the trial period have custom duration and price collected with a setup fee. E.g. if notice period is set to 2, the subscription will run for the trial period and two full paid periods.

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