Commet
  • Precios
Iniciar SesiónRegistrarse
Create feature POSTDelete feature DELETEGet feature access GETGet feature GETList feature access GETList features GETUpdate feature PUT
DocumentaciónRecursosConstruir con AIAPI ReferenceWebhooks

List feature access

List all features for a customer's active subscription, scoped by the customerId query parameter.

GET
/feature-access

List all features for a customer's active subscription, scoped by the customerId query parameter.

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Query Parameters

customerId*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/feature-access?customerId=string"
{  "success": true,  "data": [    {      "code": "string",      "name": "string",      "type": "boolean",      "allowed": true,      "enabled": true,      "current": 0,      "included": 0,      "remaining": 0,      "overageQuantity": 0,      "overageUnitPrice": 0,      "unlimited": true,      "overageEnabled": true,      "billedQuantity": 0,      "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"  }}

Get feature GET

Get a single feature definition by code from the organization's feature catalog.

List features GET

List every feature defined in the organization. This is the organization's feature catalog (definitions), not a customer's feature access.