Cancel subscription
Cancel the subscription. This will stop billing and the subscription will be inactive after the cancellation date.
Required permissions:subscription:write
Authorizations
Value for the Authorization header parameter.
Path Parameters
Subscription identifier
Body
The date when the subscription should be cancelled. Required if the type is custom
.
The type how the cancellation date should be interpreted.
immediate
, next_possible
, custom
The reason code why the subscription should be cancelled.
If the confirmation email should be sent to the customer.
Response
The date the subscription was activated.
The billing group defines the billing cycle of the subscription.
The date the subscription will be cancelled.
The date when the subscription was cancelled.
The contract details of the subscription.
The date and time when the resource was created.
Custom fields for the entity. The keys are the field names and the values are the field values. They need to be configured under "/custom-fields" in the API documentation. The input is validated against the configuration. For more details see Custom Fields Guide
The invoice address is null, we use the default invoice address of the customer.
The payment method is null, we use the default payment method of the customer.
The invoice address of the subscription. If null, the default invoice address of the customer is used.
Indicates if the subscription is pending for cancellation. If true, the subscription will be cancelled in the future and the cancellation could be revoked.
The last billing date of the subscription.
The name of the subscription. Defaults to the name of the plan. This will be used in the invoice for the grouping headers.
The next billing date of the subscription.
The number of the subscription.
The partner of the customer.
The payment method of the subscription. If null, the default payment method of the customer is used.
The plan this subscription is based on.
The po number of the subscription.
The status of the subscription.
Possible values:
draft
: The subscription is in draft mode and not active yet.active
: The subscription is active and will be billed.paused
: The subscription is paused and will not be billed.cancelled
: The subscription is cancelled and will not be billed anymore.terminated
: The subscription is terminated and will not be billed anymore.offer
: The subscription is an offer and waiting for acceptance.
The date the trial period ends.
The date and time when the resource was last updated.
Was this page helpful?