Update a credit unit
Partial update: an absent field is left unchanged. code and precision are immutable and
cannot be changed here. Setting archived: true blocks the unit from new prices, packs and
grants; existing ones keep working.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Credit unit ID
Body
Partial update: an absent field is left unchanged. code and precision have no field here,
they are immutable. symbol set to null clears it.
Blocks the unit from new prices, packs and grants; existing ones keep working.
Singular display name, 1 to 64 characters.
Plural display name, 1 to 64 characters.
The product sales of the unit are booked under; null clears it, which stops the unit
from being sold.
Validated by the store (trimmed, at most 8 characters) rather than here: validator has
no built-in support for a double Option.
Response
Updated
A tenant-defined denomination usage can be priced or credit granted in, instead of money.
code and precision are immutable once created.
Archived units take no new prices, packs or grants; existing ones keep working.
Upper-case code naming the unit in wallets, grants and webhooks, e.g. CREDITS.
The unit's id (cun_…).
Singular display name, e.g. "Credit".
Plural display name, e.g. "Credits".
Minor-unit exponent: amounts of this unit are integers of 10^-precision credit.
x >= 0The active selling prices, one per currency.
The product sales of this unit are booked under: their tax category and accounting code. The unit can be sold (top-ups) only once it is set.
Short display symbol, e.g. "cr".