Create subscription

Required scope: subscriptions:write
Organization authorization: supported

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
int64
> 0

Id of the plan to subscribe to

int64
> 0

Id of the customer the subscription is created for, e.g. team or charge-point id

string
enum
required

Type of the customer that the subscription is created for. e.g. team or charge-point

Allowed:
double | null
≥ 0

Allows to modify the absolute discount on a subscription if provided.
If not provided, the discount of the plan is used.
Note: If you want to set it on an existing subscription, you have to cancel the subscription first.

double | null
≥ 0

Allows to modify the percentage discount on a subscription if provided.
If not provided, the discount of the plan is used.
Note: If you want to set it on an existing subscription, you have to cancel the subscription first.

serviceConfig
object | null

Configure the subscription, based on the plans serviceType.Currently you can configure tax-refund subscriptions only.

int64 | null
> 0

The user that should be assigned as the purchaser of the subscription. If not provided, the subscription will be assigned to the default user for this consumer.

date-time | null

Date when wallet will be charged for the first time (ISO8601: yyyy-MM-ddTHH:mm:ssZ). Has to be a date in the future.

boolean | null
Defaults to true

Whether to send the subscription-created notifications (e.g. confirmation email to the team's admins). Defaults to true. Set to false to suppress them, e.g. when migrating existing customers from another CPMS.

Responses

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