Save credit unit
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.
AuthorizationBearer <token>A secret, trusted or limited token. See Authentication.
Idempotency-Key*stringSame key and canonical body replay the saved result. A different body returns CreditRequestConflict; pending work returns CreditRequestPending.
^[ -~]+$1 <= length <= 128application/json- body
expected_revision*integer0 <= valuename*string1 <= length <= 100singular_label*string1 <= length <= 96plural_label*string1 <= length <= 96Success.
application/json- response
object?unknowncredit_unit_id?stringStable unit identity.
name?stringUnit name.
length <= 100singular_label?stringSingular display label.
length <= 96plural_label?stringPlural display label.
length <= 96revision?integer0 <= valuedate_created?stringdate-timedate_modified?stringdate-timeaccount_id?stringtest?booleancurl -X POST 'https://api.comecero.com/api/v1/usage/credit_unit' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{ "expected_revision": 0, "name": "Compute", "singular_label": "credit", "plural_label": "credits"}'{ "object": "credit_unit", "credit_unit_id": "unit_compute", "account_id": "AB1234", "test": true, "name": "Compute", "singular_label": "credit", "plural_label": "credits", "revision": 2, "date_created": "2026-11-01T00:00:00Z", "date_modified": "2026-11-02T00:00:00Z"}Get credit unit GET
Reads saved credit state. Missing projections return unavailable, never a zero estimate. Secret and trusted tokens require read permissions.
List currency rates GET
Reads saved credit state. Missing projections return unavailable, never a zero estimate. Secret and trusted tokens require read permissions.