v1

latestOpenAPI 3.0.02026-07-24161215397.4 KB
Secondary Currencies

Update a secondary currency

Update the secondary currency with id = {secondaryCurrencyId}.

Required scopes: flex.settings.secondaryCurrencies.update

put/api/v2/organizations/{orgSlug}/secondary-currencies/{secondaryCurrencyId}

Path parameters

secondaryCurrencyIdstring required

The id of the corresponding secondary currency

orgSlugstring required

organization slug

Request body

exchangeRatenumber

The exchange rate of the secondary currency.

Example request

{
  "exchangeRate": 3.56
}

Response

_idstring

The _id of the secondary currency.

codestring

The code of the secondary currency.

exchangeRatenumber

The exchange rate of the secondary currency.

Example response

{
  "_id": "6a59d080856fad4ee41952fd",
  "code": "USD",
  "exchangeRate": 2.56
}