API Metering plan management
Lists plans
Lists all plans belonging to this bucket.
path Parameters
bucketId
string · requiredThe id of the bucket. Zuplo automatically creates buckets for your project. You can find it in your Zuplo Portal under the Settings tab for your project.
Responses
The request has succeeded.
data
object[] · required
limit
integer · uint32Example: 1000offset
integer · uint32Example: 0total
integer · uint32
Creates a plan
Creates a new plan for this bucket.
path Parameters
bucketId
string · requiredThe id of the bucket. Zuplo automatically creates buckets for your project. You can find it in your Zuplo Portal under the Settings tab for your project.
Request Body
label
string · requiredExample: Basic Subscription PlanplanExternalId
string · requiredExample: prod_Pbyd5ARBWtFxkgmeters
object · requiredExample: {"requests":{"label":"Requests","max":10}}
trialDays
integerExample: 10trialEndStatus
string · enumEnum values:pausedcanceledExample: pausedisTrialCollectPayment
boolean
Responses
The request has succeeded.
createdOn
string · date-time · readOnly · requiredWhen the item was created.
Example: 2023-04-18T05:54:34.408ZupdatedOn
string · date-time · readOnly · requiredWhen the item was last updated.
Example: 2023-04-20T05:54:34.408Zid
string · readOnly · requiredExample: plan_40dRwJecUOu9xDj2OeXDcYA5hasSubscriptions
boolean · readOnly · requiredExample: truelabel
string · requiredExample: Basic Subscription PlanplanExternalId
string · requiredExample: prod_Pbyd5ARBWtFxkgmeters
object · requiredExample: {"requests":{"label":"Requests","max":10}}
trialDays
integerExample: 10trialEndStatus
string · enumEnum values:pausedcanceledExample: pausedisTrialCollectPayment
boolean
Gets a plan
Returns the details for a plan.
path Parameters
bucketId
string · requiredThe id of the bucket. Zuplo automatically creates buckets for your project. You can find it in your Zuplo Portal under the Settings tab for your project.
planId
string · requiredThe id of the plan.
Responses
The request has succeeded.
createdOn
string · date-time · readOnly · requiredWhen the item was created.
Example: 2023-04-18T05:54:34.408ZupdatedOn
string · date-time · readOnly · requiredWhen the item was last updated.
Example: 2023-04-20T05:54:34.408Zid
string · readOnly · requiredExample: plan_40dRwJecUOu9xDj2OeXDcYA5hasSubscriptions
boolean · readOnly · requiredExample: truelabel
string · requiredExample: Basic Subscription PlanplanExternalId
string · requiredExample: prod_Pbyd5ARBWtFxkgmeters
object · requiredExample: {"requests":{"label":"Requests","max":10}}
trialDays
integerExample: 10trialEndStatus
string · enumEnum values:pausedcanceledExample: pausedisTrialCollectPayment
boolean
Deletes a plan
Deletes a plan (if there are no associated subscriptions)
path Parameters
bucketId
string · requiredThe id of the bucket. Zuplo automatically creates buckets for your project. You can find it in your Zuplo Portal under the Settings tab for your project.
planId
string · requiredThe id of the plan.
Responses
There is no content to send for this request, but the headers may be useful.
Updates a plan
Update the details for a plan
path Parameters
bucketId
string · requiredThe id of the bucket. Zuplo automatically creates buckets for your project. You can find it in your Zuplo Portal under the Settings tab for your project.
planId
string · requiredThe id of the plan.
Request Body
label
stringExample: Basic Subscription PlanplanExternalId
stringExample: prod_Pbyd5ARBWtFxkgmeters
objectExample: {"requests":{"label":"Requests","max":10}}trialDays
integerExample: 10trialEndStatus
string · enumEnum values:pausedcanceledExample: pausedisTrialCollectPayment
boolean
Responses
The request has succeeded.
createdOn
string · date-time · readOnly · requiredWhen the item was created.
Example: 2023-04-18T05:54:34.408ZupdatedOn
string · date-time · readOnly · requiredWhen the item was last updated.
Example: 2023-04-20T05:54:34.408Zid
string · readOnly · requiredExample: plan_40dRwJecUOu9xDj2OeXDcYA5hasSubscriptions
boolean · readOnly · requiredExample: truelabel
string · requiredExample: Basic Subscription PlanplanExternalId
string · requiredExample: prod_Pbyd5ARBWtFxkgmeters
object · requiredExample: {"requests":{"label":"Requests","max":10}}
trialDays
integerExample: 10trialEndStatus
string · enumEnum values:pausedcanceledExample: pausedisTrialCollectPayment
boolean