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
data
object[] · requiredlimit
integer · uint32Example: 1000offset
integer · uint32total
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
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: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
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
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: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
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
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
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: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