Change usage terms
POST
Revision checked credit operation. Secret and trusted tokens require the applicable resource permission. New writes require header idempotency. Immutable rates do not reprice existing agreements. Core validates exact conversion, current funding, prepared work and protected billing boundaries.
header
AuthorizationBearer <token>A secret, trusted or limited token. See Authentication.
id*stringResource identity owned by this account and mode.
Idempotency-Key*stringSame key and canonical body replay the saved result. A different body returns CreditRequestConflict; pending work returns CreditRequestPending.
Match
^[ -~]+$Length
1 <= length <= 128application/json- body
expected_revision?integerRange
0 <= valueeffective_from?stringFormat
date-timerate_plan_id*stringrate_plan_version*integerRange
1 <= valuefunding_source_entitlement_id?string|nullSuccess.
application/json- response
command_id?stringcompleted?unknowncredit_revision?integerRange
0 <= valueeffective_from?stringFormat
date-timefunding_effective_from?stringFormat
date-timeagreement_id?stringcredit_entitlement?A metered entitlement bills a metric on a pinned rate plan version. A credit entitlement holds prepaid credit. See https://docs.comecero.com/docs/usage-billing/entitlements
linked_entitlement_ids?array<string>old_entitlement_ids?array<string>replacement_entitlement_ids?array<string>balance?numbercredit_balance?string|nullcurl -X POST 'https://api.comecero.com/api/v1/usage/entitlements/string/change_terms' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{ "expected_revision": 1, "effective_from": "2026-12-01T00:00:00Z", "rate_plan_id": "ai_tokens_standard", "rate_plan_version": 2}'Example Response
{ "command_id": "command_terms_1", "old_entitlement_ids": [ "ent_tokens_1" ], "replacement_entitlement_ids": [ "ent_tokens_2" ], "effective_from": "2026-12-01T00:00:00Z", "credit_revision": 2, "completed": true}