Set exchange rates
set_exchange_ratesSet or remove the workspace's customer-authored manual exchange rates. One major unit of each input currency equals the supplied rate in the workspace default currency: with DKK as the default, {currency:"EUR",rate:7.46} means 1 EUR = 7.46 DKK. Upserts and removals in one call are atomic; an ambiguous request changes nothing. Capable never fetches or refreshes a rate, never rewrites stored amounts, and uses these facts only for fully-covered display aggregates. Admin-only. Returns the default currency and the complete current rate table.
When to use: When an admin wants aggregate money reads converted into the workspace default currency using rates the customer owns. Upsert and remove rates together; each rate means one unit of that currency equals the authored number of default-currency units. No rate feed or automatic update is involved.
Example: With DKK as our default, set 1 EUR to 7.46 DKK and remove the old USD rate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| remove | No | Currency codes to remove. May be combined atomically with upsert; a currency cannot appear in both lists. | |
| upsert | No | Rates to add or replace. Omit the workspace default currency; its implicit rate is 1. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rates | No | ||
| updated | No | ||
| workspace | No | ||
| invalid_rates | No | ||
| default_currency | No | ||
| duplicate_currencies | No | ||
| supported_currencies | No | ||
| unchanged_currencies | No | ||
| conflicting_currencies | No | ||
| unsupported_currencies | No | ||
| default_currency_upserts | No | ||
| requires_default_currency | No |