Create subscription
Authorizations
Value for the Authorization header parameter.
Body
The billing group of the subscription.
The billing start date of the subscription. Fallback to the start date if not set.
The start date of the subscription. If not set, the current date is used.
The end date of the subscription. If not set, the subscription has no end date.
The contract period terms of the subscription.
The po number of the subscription.
255
The customer who owns the subscription.
The payment method id to use for the subscription. If not set, the default payment method of the customer is used.
The invoice address of the customer. If not set, the default invoice address of the customer is used.
The name of the subscription. If not set, an empty string is used.
255
The number of the subscription. If not set, a unique number is generated. This number is used for the invoice and to display the subscription in the customer portal.
255
The external id of the subscription in the external system.
255
The product selections which defines the items of the subscription.
Response
The payment method of the subscription. If null, the default payment method of the customer is used.
The invoice address of the subscription. If null, the default invoice address of the customer is used.
The number of the subscription.
The plan this subscription is based on.
The name of the subscription. Defaults to the name of the plan. This will be used in the invoice for the grouping headers.
The selected items of the subscription. Can be charges or addons.
The billing group defines the billing cycle 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.
draft
, active
, paused
, offer
, cancelled
, terminated
The date the subscription was activated.
The po number of the subscription.
The contract details of the subscription.
The date the trial period ends.
The date and time when the resource was created.
The date and time when the resource was last updated.
The payment method is null, we use the default payment method of the customer.
The invoice address is null, we use the default invoice address of the customer.
The next billing date of the subscription.
The last billing date of the subscription.
The date the subscription will be cancelled.
The date when the subscription was cancelled.
The reason why the subscription was cancelled.
Indicates if the subscription is pending for cancellation. If true, the subscription will be cancelled in the future and the cancellation could be revoked.
Was this page helpful?