Skip to content
← Back to Index

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

PropertyTypeDescription
labelstring or objectDisplay 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 Krona

With localization:

yaml
uri: /registry/currencies/EUR
spec:
  value:
    label:
      default: Euro
      sv: Euro

© 2024 Hantera AB. All rights reserved.