Exchange Rate

onesimpleapi.exchange_rate
ActionBusiness appsconnection required

Calls the One Simple API API with the connection's credentials.

Convert an amount between currencies at the current rate.

Connection

Required
Yes — the node will not save without one
Auth type
API key
Providers
One Simple API
Secret shape
the API token, or {"api_token": "…"}
Config it needs
base_url
Resolved by
config.connection_id, else node.connection_id

Configuration

3 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
to_currency
The currency to convert into, as a three-letter ISO 4217 code.
stringYes——GBP
from_currency
The currency to convert from, as a three-letter ISO 4217 code; One Simple API assumes USD when it is blank.
stringNo——EUR
from_value
How much of the source currency to convert; One Simple API converts a single unit when it is blank.
numberNo—≥ 0—

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "from_currency": "EUR",
  "to_currency": "GBP"
}

Output

One shape.

result

FieldTypeExample
from_currency
The currency that was converted from.
string—
from_value
The amount that was converted.
number—
to_currency
The currency that was converted into.
string—
to_value
The converted amount.
number—
to_exchange_rate
The rate that was applied.
number—
{
  "from_currency": "",
  "from_value": 0,
  "to_currency": "",
  "to_exchange_rate": 0,
  "to_value": 0
}

See Exchange Rate run in a workflow.

In a technical demo we add the One Simple API connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.