Check usage availability
Check if a customer can consume a feature before actual consumption. Returns availability and cost estimates based on the plan's consumption model.
Check if a customer can consume a feature before actual consumption. Returns availability and cost estimates based on the plan's consumption model.
ApiKeyAuth In: header
application/json
TypeScript Definitions
Use the request body type in TypeScript.
1 <= length <= 200^[a-z0-9_]+$1 <= length <= 10010 < valueapplication/json
curl -X POST "https://commet.co/api/usage/check" \ -H "Content-Type: application/json" \ -d '{ "customerId": "string", "featureCode": "string" }'application/json
application/json
application/json
application/json
Check if a customer can consume a feature before actual consumption. Returns availability and cost estimates based on the plan's consumption model.
{
"success": true,
"data": {
"allowed": true,
"consumptionModel": "metered",
"feature": "string",
"quantity": 0,
"current": 0,
"remaining": 0,
"unlimited": true,
"included"
{
"success": false,
"code": "string",
"message": "string",
"details": null
}{
"success": false,
"code": "string",
"message": "string",
"details": null
}{
"success": false,
"code": "string",
"message": "string",
"details": null
}{
"success": false,
"code": "string",
"message": "string",
"details": null
}