comecerodocs

Create an entitlement override

POST
/customers/{customer_id}/entitlement_overrides

Gives one customer one feature in place of what their plans give, until it expires or you remove it: more of a limit, a feature their plan lacks, or value: false to take a feature away. A customer has at most one active override per feature. A change in effective access fires entitlement:changed (cause override), including when an override expires. Not for a metered feature a feature set bills through a rate plan (the billed allowance could not follow); give the customer another feature set or rate plan instead. The feature's type and metric_id are fixed from now on. 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.

Request Body

The override.

application/json
  1. body

Send exactly one of value, limit or unlimited, as the feature's type takes it. Quantities are decimal strings of at most 12 digits and 6 decimals; a whole JSON number, such as 50000, is taken too (send a fraction as a string).

feature_key*string

An active feature of the account. Not a metered feature a feature set bills through a rate plan (400).

value?||

boolean features, true or false. number features, the value as a decimal string or a whole number. Any type, false takes the feature away.

Match^[0-9]{1,12}(\.[0-9]{1,6})?$
Range0 <= value <= 999999999999
limit?|

Metered features. The limit in each reset window.

Match^[0-9]{1,12}(\.[0-9]{1,6})?$
Range0 <= value <= 999999999999
unlimited?boolean

number and metered features. No limit. Only true is taken; send value false to take a feature away.

expires_at?string

When it stops, in the future. Leave it out to keep it until you remove it.

Formatdate-time
reason*string

Why the customer gets it, up to 500 characters. Kept for audit.

Lengthlength <= 500

Response Body

Success.

application/json
  1. response

One feature given to one customer in place of what their plans give, until it expires or you remove it. value: false takes the feature away. Removed and expired overrides are kept, for audit.

object?string

Always entitlement_override.

override_id?string

eo_ plus 32 characters.

customer_id?string

The Comecero customer id.

feature_key?string

The feature's key.

value?|

boolean features, true. number features, the value as a decimal string. Any type, false takes the feature away. Left out when limit or unlimited is set.

limit?string

Metered features. The limit in each reset window, as a decimal string. Left out when not set.

unlimited?boolean

number and metered features. No limit. Left out when not set.

expires_at?|

When it stops and the plan's value is back. Null means it stays until you remove it.

Formatdate-time
reason?string

Why the customer has it.

created_by?string

The user behind the token that made it, or the token.

date_created?string

When it was made.

Formatdate-time
status?string

Only an active override applies.

Value in"active""removed""expired"
date_removed?string

When it was removed. Left out unless removed.

Formatdate-time
removed_by?string

Who removed it. Left out unless removed.

test?boolean

Test or live.

Example Request
curl -X POST 'https://api.comecero.com/api/v1/customers/string/entitlement_overrides' \  -H 'Content-Type: application/json' \  -d '{  "feature_key": "api_calls",  "limit": "50000",  "expires_at": "2026-12-31T23:59:59Z",  "reason": "Launch promotion agreed by sales"}'
Example Response
{  "object": "entitlement_override",  "override_id": "eo_9b2e6c1d4a7f4e3b8c5d0a1f2e3d4c5b",  "customer_id": "0091304300408CuoxY9Pf3",  "feature_key": "api_calls",  "limit": "50000",  "expires_at": "2026-12-31T23:59:59Z",  "reason": "Launch promotion agreed by sales",  "created_by": "US0012345678",  "date_created": "2026-11-15T10:00:00Z",  "status": "active",  "test": true}