Subscriptions
Retrieve a list of subscriptions
Required scope: subscriptions:read
query Parameters
pagepage number to retrieve (starts with 0)
perPagenumber of items per page (between 1 and 100, default 10)
planIdFilter subscription by plan
chargePointIdFilter subscriptions by charge point.
Note: This field is deprecated, use customerId instead.
customerIdFilter subscriptions by customer id (charge point or team id).
Note: The customerType must also be provided when filtering by customerId.
customerTypeFilter subscriptions by customer type (charge-point or team).
subscriptionPurchaseIdFilter subscriptions by subscription purchase id.
Retrieve a list of subscriptions › Responses
List of subscriptions that match the criteria
Create subscription
Required scope: subscriptions:write
Organization authorization: supported
Create subscription › Request Body
customerTypeType of the customer that the subscription is created for. e.g. team or charge-point
planIdId of the plan to subscribe to
customerIdId of the customer the subscription is created for, e.g. team or charge-point id
discountAbsoluteAllows 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.
discountPercentageAllows 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.
Configure the subscription, based on the plans serviceType.Currently you can configure tax-refund subscriptions only.
userIdThe 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.
nextPurchaseAtDate when wallet will be charged for the first time (ISO8601: yyyy-MM-ddTHH:mm:ssZ). Has to be a date in the future.
sendNotificationsWhether 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.
Create subscription › Responses
The created subscription
stateState of the subscription
customerTypeCustomer type
createdAtSubscription creation date
updatedAtSubscription update date
idId of the subscription
nextPurchaseAtDate of next purchase
cancelledAtSubscription cancellation date
endAtSubscription end date
The validity period of the subscription, exposing the start (from) and end (to) dates as a dedicated object for billing system integrations.
discountPercentageDiscount percentage
discountAbsoluteDiscount absolute
discountAmountDiscount amount
originalAmountOriginal amount
totalAmountTotal amount
purchaseCountNumber of purchases
chargePointsNumber of charge points
customerIdThe id of the customer
planIdPlan id
Subscription configuration, based on the plans serviceType.Currently you can configure tax-refund subscriptions only.
canCancelIndicates if the subscription can be cancelled
noteA note on the subscription
deletedAtSubscription marked as deleted date
Bulk create subscriptions
Subscribe a team to multiple plans in one request. Each plan is processed independently — failures do not abort siblings. Required scope: subscriptions:write
Organization authorization: supported
Bulk create subscriptions › Request Body
planIdsIds of plans the team should be subscribed to. Each plan is processed independently — failures do not abort siblings.
teamIdId of the team that should be subscribed to all selected plans
userIdThe user that should be assigned as the purchaser of the subscriptions. If not provided, the subscriptions will be assigned to the default user for this consumer.
nextPurchaseAtDate when the wallet will be charged for the first time (ISO8601). Has to be a date in the future.
sendNotificationsWhether 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. Applies to every subscription in the bulk request.
Bulk create subscriptions › Responses
Per-plan create results
statusOutcome of the create attempt for this plan
planIdPlan id this result corresponds to
Created subscription, present only when status is created
errorFailure reason, present only when status is failed
Retrieve subscription statistics
Returns aggregate subscription counts and unpaid amount for the calling operator. Required scope: subscriptions:read
Retrieve subscription statistics › Responses
Subscription statistics for the operator
pending_countactive_countcancelling_countpaused_countunpaid_counttotal_unpaid_amountRetrieve a subscription
Required scope: subscriptions:read
path Parameters
subscriptionIdRetrieve a subscription › Responses
Subscription with provided ID
stateState of the subscription
customerTypeCustomer type
createdAtSubscription creation date
updatedAtSubscription update date
idId of the subscription
nextPurchaseAtDate of next purchase
cancelledAtSubscription cancellation date
endAtSubscription end date
The validity period of the subscription, exposing the start (from) and end (to) dates as a dedicated object for billing system integrations.
discountPercentageDiscount percentage
discountAbsoluteDiscount absolute
discountAmountDiscount amount
originalAmountOriginal amount
totalAmountTotal amount
purchaseCountNumber of purchases
chargePointsNumber of charge points
customerIdThe id of the customer
planIdPlan id
Subscription configuration, based on the plans serviceType.Currently you can configure tax-refund subscriptions only.
canCancelIndicates if the subscription can be cancelled
noteA note on the subscription
deletedAtSubscription marked as deleted date
Update subscription
Required scope: subscriptions:write
path Parameters
subscriptionIdUpdate subscription › Request Body
discountPercentagePercentage discount to set on the subscription.
discountAbsoluteAbsolute discount to set on the subscription.
nextPurchaseAtDate when the wallet will next be charged (ISO8601: yyyy-MM-ddTHH:mm:ssZ).
Subscription configuration, based on the plan's serviceType. Currently you can configure tax-refund subscriptions only.
Update subscription › Responses
The updated subscription
stateState of the subscription
customerTypeCustomer type
createdAtSubscription creation date
updatedAtSubscription update date
idId of the subscription
nextPurchaseAtDate of next purchase
cancelledAtSubscription cancellation date
endAtSubscription end date
The validity period of the subscription, exposing the start (from) and end (to) dates as a dedicated object for billing system integrations.
discountPercentageDiscount percentage
discountAbsoluteDiscount absolute
discountAmountDiscount amount
originalAmountOriginal amount
totalAmountTotal amount
purchaseCountNumber of purchases
chargePointsNumber of charge points
customerIdThe id of the customer
planIdPlan id
Subscription configuration, based on the plans serviceType.Currently you can configure tax-refund subscriptions only.
canCancelIndicates if the subscription can be cancelled
noteA note on the subscription
deletedAtSubscription marked as deleted date
Cancel subscription
Required scope: subscriptions:delete
path Parameters
subscriptionIdquery Parameters
cancellationOptionCancellation option
Cancel subscription › Responses
Subscription successfully canceled
Approve subscription
Required scope: subscriptions:write
path Parameters
subscriptionIdApprove subscription › Request Body
nextPurchaseAtDate when wallet will be charged for the first time (ISO8601: yyyy-MM-ddTHH:mm:ssZ).
sendNotificationsWhether to send the subscription-approved notifications (e.g. the confirmation or add-a-payment-card email to the team's admins). Defaults to true. Set to false to suppress them, e.g. when migrating existing customers from another CPMS.
firstPurchaseAtDeprecated: use nextPurchaseAt instead.
Date when wallet will be charged for the first time (ISO8601: yyyy-MM-ddTHH:mm:ssZ).
Approve subscription › Responses
The approved subscription
stateState of the subscription
customerTypeCustomer type
createdAtSubscription creation date
updatedAtSubscription update date
idId of the subscription
nextPurchaseAtDate of next purchase
cancelledAtSubscription cancellation date
endAtSubscription end date
The validity period of the subscription, exposing the start (from) and end (to) dates as a dedicated object for billing system integrations.
discountPercentageDiscount percentage
discountAbsoluteDiscount absolute
discountAmountDiscount amount
originalAmountOriginal amount
totalAmountTotal amount
purchaseCountNumber of purchases
chargePointsNumber of charge points
customerIdThe id of the customer
planIdPlan id
Subscription configuration, based on the plans serviceType.Currently you can configure tax-refund subscriptions only.
canCancelIndicates if the subscription can be cancelled
noteA note on the subscription
deletedAtSubscription marked as deleted date
Preview a subscription cancellation
Returns the end date and any refund or final purchase that would be applied if the subscription was cancelled now with the given option. Read-only — no state changes. Required scope: subscriptions:read
path Parameters
subscriptionIdquery Parameters
cancellationOptionCancellation option to preview
Preview a subscription cancellation › Responses
Preview of the cancellation outcome
endAtThe date the subscription would end if cancelled with the requested option.
Refund or final-purchase that would result from cancelling now. Null when there is nothing to reconcile (no purchase yet, paid period already elapsed, or end-of-billing-period cancellation).
Renew a subscription
Renews an expired or cancelled subscription, creating a new purchase immediately. Required scope: subscriptions:write
path Parameters
subscriptionIdRenew a subscription › Responses
The renewed subscription
stateState of the subscription
customerTypeCustomer type
createdAtSubscription creation date
updatedAtSubscription update date
idId of the subscription
nextPurchaseAtDate of next purchase
cancelledAtSubscription cancellation date
endAtSubscription end date
The validity period of the subscription, exposing the start (from) and end (to) dates as a dedicated object for billing system integrations.
discountPercentageDiscount percentage
discountAbsoluteDiscount absolute
discountAmountDiscount amount
originalAmountOriginal amount
totalAmountTotal amount
purchaseCountNumber of purchases
chargePointsNumber of charge points
customerIdThe id of the customer
planIdPlan id
Subscription configuration, based on the plans serviceType.Currently you can configure tax-refund subscriptions only.
canCancelIndicates if the subscription can be cancelled
noteA note on the subscription
deletedAtSubscription marked as deleted date
Subscribe a team to a plan
Required scope: subscriptions:write
Organization authorization: supported
path Parameters
teamIdplanIdSubscribe a team to a plan › Request Body
userIdThe 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.
nextPurchaseAtDate when wallet will be charged for the first time (ISO8601: yyyy-MM-ddTHH:mm:ssZ). Has to be a date in the future.
Subscribe a team to a plan › Responses
The created subscription
stateState of the subscription
customerTypeCustomer type
createdAtSubscription creation date
updatedAtSubscription update date
idId of the subscription
nextPurchaseAtDate of next purchase
cancelledAtSubscription cancellation date
endAtSubscription end date
The validity period of the subscription, exposing the start (from) and end (to) dates as a dedicated object for billing system integrations.
discountPercentageDiscount percentage
discountAbsoluteDiscount absolute
discountAmountDiscount amount
originalAmountOriginal amount
totalAmountTotal amount
purchaseCountNumber of purchases
chargePointsNumber of charge points
customerIdThe id of the customer
planIdPlan id
Subscription configuration, based on the plans serviceType.Currently you can configure tax-refund subscriptions only.
canCancelIndicates if the subscription can be cancelled
noteA note on the subscription
deletedAtSubscription marked as deleted date