Open MercatoDocsSearch docsAPI reference

User guide

Manage currencies and exchange rates

Define the currencies your organization uses, then enter or fetch rates for a particular date. Check the date and currency pair when a historical amount looks unexpected.

The currencies module enables multi-currency operations across your organization, with automatic exchange rate fetching from trusted financial providers and flexible manual rate management.

Currencies screen

1. Create and manage currencies

Each organization can maintain its own set of active currencies, scoped to your tenant for complete isolation.

2. Manage exchange rates

Exchange rates can be added manually or fetched automatically from configured providers.

Manual rate entry

  1. Navigate to Backend → Exchange Rates and click Add exchange rate.
  2. Select the source and target currencies (e.g., USD → EUR).
  3. Enter the exchange rate value. The entered decimal string is stored exactly within the input limits (1000 significant digits, 300 integer digits, and no non-zero digit below 1e-1000). Tiny or inverted rates (for example 1 IDR = 0.000056 USD) keep every digit.
  4. Choose the date for this rate – historical rates are fully supported.
  5. Optionally specify the rate type:
    • Buy: Rate when the bank buys the foreign currency (you sell it to them)
    • Sell: Rate when the bank sells the foreign currency (you buy it from them)
    • Leave empty for general-purpose rates
  6. Set the source identifier (e.g., "manual", "accounting-system", or your provider name).
  7. Optionally add Metadata as a JSON object with extra context (for example a reference or note). Automatically fetched rates store provider details here, such as the NBP table number.
  8. Save the rate. It's immediately available for conversions and calculations.

You can maintain multiple rates for the same currency pair and date from different sources. The system returns all available rates, allowing you to choose which one to use in your business logic.

Viewing rate history

The exchange rates list shows all rates with filtering by:

This gives you full audit trail and historical data for compliance and reporting.

3. Configure automatic rate fetching

Open Mercato includes built-in providers that fetch exchange rates automatically.

Available providers

  1. NBP (National Bank of Poland)

    • Fetches ~13 currencies with bid (buy) and ask (sell) rates
    • Uses official Polish central bank data
    • Daily updates from Table C
  2. Raiffeisen Bank Polska

    • Fetches 4 major currencies: EUR, USD, CHF, GBP
    • Provides intraday buy and sell rates
    • Web-scraped from public rate tables

Enable a provider

  1. Navigate to Backend → Settings → Currency Fetch Configuration.
  2. Click Enable provider and select NBP or Raiffeisen.
  3. Configure the sync schedule (time of day when rates should be fetched).
  4. Save the configuration.

The provider will automatically fetch rates at the scheduled time each day. Last sync status and count are displayed in the configuration list.

Manual rate fetching

Need rates immediately? You can trigger a manual fetch:

4. Working with exchange rates in your workflow

Once currencies and rates are configured, the system automatically:

Your application code can retrieve rates via the REST API or the service layer (see Framework documentation for programmatic access).

Rate selection strategies

When multiple providers return rates for the same currency pair, you can:

5. Currency formatting

Each currency includes formatting rules that control how amounts are displayed:

These settings ensure consistent, locale-appropriate formatting across invoices, quotes, and order displays.

6. Access control

The currencies module provides granular permissions:

Assign these permissions to roles based on your organizational needs – accountants might need full access while sales teams only need view permissions.

7. Multi-tenant isolation

All currencies and exchange rates are scoped to your tenant and organization:

This ensures complete data privacy and allows different business units to use different currency strategies.

Previous: Communication Channels (per-user email) · Next: Fieldsets and groups for custom fields