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.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
to_currency The currency to convert into, as a three-letter ISO 4217 code. | string | Yes | — | — | GBP |
from_currency The currency to convert from, as a three-letter ISO 4217 code; One Simple API assumes USD when it is blank. | string | No | — | — | EUR |
from_value How much of the source currency to convert; One Simple API converts a single unit when it is blank. | number | No | — | ≥ 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
| Field | Type | Example |
|---|---|---|
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
}Related One Simple API nodes
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.