currencies

Note. This element is used only in the YML format.
The currencies element sets a list the store's exchange rates. Each currency is described in a separate currency element. Currencies allowed: rubles (RUR, RUB), hryvnias (UAH), Belarusian rubles (BYN), tenge (KZT), dollars (USD), and euros (EUR).
Example
<currencies>
  <currency id="RUR" rate="1"/>
  <currency id="USD" rate="23.98"/>
  <currency id="EUR" rate="CBRF"/>
  <currency id="UAH" rate="NBU"/>
  <currency id="KZT" rate="CB"/>
</currencies>

Attribute id — currency code.

The rate attribute specifies the exchange rate between the selected currency and the main currency (the currency for which rate="1"). The rate parameter can have the following values:

  • Number: the internal exchange rate that you use.

  • CBRF: the rate of the Central Bank of the Russian Federation.

  • NBU: the rate of the National Bank of Ukraine.

  • NBK: the rate of the National Bank of Kazakhstan.

  • СВ: the exchange rate of the central bank of the country where the store is located as determined by the region that is specified in the personal account.

Example

The rate for USD is the rate of the Central Bank of the Russian Federation + 3%.

<currencies>
    <currency id="RUR" rate="1"/>
    <currency id="USD" rate="CBRF" plus="3"/>
    ...
</currencies>

Only the following currencies may be specified as the main currency (for which rate="1" is set): Russian ruble (RUB), Belarusian ruble (BYN), hryvnia (UAH) or tenge (KZT).

If your YML file does not specify an exchange rate, then the exchange rate of the central bank of the country indicated in the store settings will be used. The current day's exchange rate is applied. The exchange rate is updated daily at 00:00.

Attention. If the specified currency exchange rate exceeds the exchange rate of the Central Bank of the Russian Federation or the National Bank of Ukraine by a factor of two or more, the data will be considered invalid.
Attention.

All numbers in YML use a dot as the decimal separator (never use a comma).