Metering - Plans
API Metering plan management
https://dev.zuplo.com
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 · uint32offset
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 · requiredplanExternalId
string · requiredmeters
object · required
trialDays
integertrialEndStatus
string · enumEnum values:pausedcanceledisTrialCollectPayment
boolean
Responses
createdOn
string · date-time · readOnly · requiredWhen the item was created.
updatedOn
string · date-time · readOnly · requiredWhen the item was last updated.
id
string · readOnly · requiredhasSubscriptions
boolean · readOnly · requiredlabel
string · requiredplanExternalId
string · requiredmeters
object · requiredtrialDays
integertrialEndStatus
string · enumEnum values:pausedcanceledisTrialCollectPayment
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.
updatedOn
string · date-time · readOnly · requiredWhen the item was last updated.
id
string · readOnly · requiredhasSubscriptions
boolean · readOnly · requiredlabel
string · requiredplanExternalId
string · requiredmeters
object · requiredtrialDays
integertrialEndStatus
string · enumEnum values:pausedcanceledisTrialCollectPayment
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
stringplanExternalId
stringmeters
objecttrialDays
integertrialEndStatus
string · enumEnum values:pausedcanceledisTrialCollectPayment
boolean
Responses
createdOn
string · date-time · readOnly · requiredWhen the item was created.
updatedOn
string · date-time · readOnly · requiredWhen the item was last updated.
id
string · readOnly · requiredhasSubscriptions
boolean · readOnly · requiredlabel
string · requiredplanExternalId
string · requiredmeters
object · requiredtrialDays
integertrialEndStatus
string · enumEnum values:pausedcanceledisTrialCollectPayment
boolean