currencies
Currencies are defined in the registry and used throughout the system for filtering and display purposes.
Each currency must have a unique key (typically the ISO 4217 currency code) at the path /currencies/<code>.
Properties
| Property | Type | Description |
|---|---|---|
label | string or object | Display label for the currency. Can be a simple string or a localized object with locale keys (e.g., default, sv). |
Currencies automatically provide enum values for currencyCode fields on orders. The label is used as the dropdown display text. Custom graph fields may use currencies too by specifying values: "currencies".
Example
yaml
uri: /registry/currencies/SEK
spec:
value:
label: Swedish KronaWith localization:
yaml
uri: /registry/currencies/EUR
spec:
value:
label:
default: Euro
sv: Euro