Get feature access
Get feature access details for a customer. Use action=canUse to check if the customer can consume one more unit.
Get feature access details for a customer. Use action=canUse to check if the customer can consume one more unit.
Authorization
ApiKeyAuth x-api-key<token>
In: header
Path Parameters
code*string
Query Parameters
customerId*string
action?string
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/feature-access/string?customerId=string"{ "success": true, "data": { "allowed": true, "code": "string", "name": "string", "type": "boolean", "enabled": true, "current": 0, "included": 0, "remaining": 0, "overageQuantity": 0, "overageUnitPrice": 0, "unlimited": true, "overageEnabled": true, "billedQuantity": 0, "willBeCharged": true, "reason": "string", "object": "feature", "livemode": true }}{ "success": false, "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "success": false, "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "success": false, "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "success": false, "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "success": false, "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}