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
Unique key used to safely retry this write for 24 hours without applying it twice.
1 <= length <= 200application/json
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/usage/check" \ -H "Content-Type: application/json" \ -d '{ "customerId": "string", "featureCode": "string" }'{ "allowed": true, "subscriptionStatus": "string", "featureCode": "string", "quantity": -9007199254740991, "reason": "string", "message": "string", "consumptionModel": "metered", "current": 0, "remaining": 0, "unlimited": true, "included": 0, "overageEnabled": true, "overageUnitPrice": 0, "object": "usage_check", "livemode": true}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}1 <= length <= 200^[a-z0-9_]+$1 <= length <= 500 < value <= 90071992547409911