comecerodocs

Get a customer's entitlements

GET
/customers/{customer_id}/entitlements

What one customer can do now: every feature in the catalog, or one with feature, with its usage, what the customer's purchases give, the active override and which purchase decided. Your app should check access with the usage meter's GET /v1/entitlements and a usage key, which is faster and has no Comecero API token; this route is for your back office and support tools. When usage can't be read in time, the rows come without usage and usage_unavailable true. Soft limits and unlimited grants keep access; finite hard limits deny with usage_not_read. Secret and trusted tokens may call it; a limited token may not (403).

Authorization

headerAuthorizationBearer <token>

A secret, trusted or limited token. See Authentication.

Path Parameters

customer_id*string

The Comecero customer id.

Query Parameters

feature?string

One feature's key. Leave it out for every feature.

Response Body

Success.

application/json
  1. response

What one customer can do now, one row per feature in the catalog (or the one asked for).

object?string

Always customer_entitlements.

customer_id?string

The Comecero customer id.

external_id?string

The id the usage meter and your app know the customer by, the customer's external_id, or the Comecero customer id when none is set.

checked_at?string

When the answer was worked out.

Formatdate-time
entitlements?array<>

One row per feature, by key.

Example Request
curl -X GET 'https://api.comecero.com/api/v1/customers/string/entitlements'
Example Response
{  "object": "customer_entitlements",  "customer_id": "0091304300408CuoxY9Pf3",  "external_id": "user_8412",  "checked_at": "2026-11-15T10:30:00.000Z",  "entitlements": [    {      "feature": "api_calls",      "type": "metered",      "has_access": true,      "reason": null,      "value": null,      "limit": "50000",      "used": "12840",      "remaining": "37160",      "reset_at": "2026-12-01T00:00:00.000Z",      "hard_limit": true,      "limit_reached": false,      "valid_until": "2026-12-01T00:00:00.000Z",      "items": [        {          "source": "SB0123456789:1",          "has_access": true,          "limit": "50000",          "used": "12840",          "remaining": "37160",          "reset_at": "2026-12-01T00:00:00.000Z",          "hard_limit": true,          "limit_reached": false,          "valid_until": "2026-12-01T00:00:00.000Z"        }      ],      "plan_value": "10000",      "override": {        "override_id": "eo_9b2e6c1d4a7f4e3b8c5d0a1f2e3d4c5b",        "feature_key": "api_calls",        "limit": "50000",        "expires_at": "2026-12-31T23:59:59.000Z"      },      "source": "SB0123456789:1"    },    {      "feature": "sso",      "type": "boolean",      "has_access": true,      "reason": null,      "value": true,      "limit": null,      "used": null,      "remaining": null,      "reset_at": null,      "hard_limit": false,      "limit_reached": false,      "valid_until": "2026-12-02T00:00:00.000Z",      "plan_value": true,      "override": null,      "source": "SB0123456789:1"    }  ]}