What This Workflow Does
This automation solves a common pain point for businesses operating internationally: manually converting currencies for pricing, invoicing, and financial reporting. Instead of checking exchange rates daily or using spreadsheets, this workflow lets you trigger a real-time currency conversion simply by sending a webhook request.
By integrating with the ExchangeRate.host API, it fetches live rates for over 170 currencies and returns the converted amount instantly. This is perfect for e‑commerce platforms displaying local prices, freelancers billing clients in different currencies, companies reconciling international payments, or anyone needing up‑to‑date financial data.
The workflow acts as a central conversion engine that you can call from any system—your website, internal tools, CRM, or accounting software—ensuring accuracy and saving hours of manual work each month.
How It Works
Step 1: Receive Conversion Request via Webhook
A webhook node listens for incoming POST requests containing three key parameters: the source currency (e.g., USD), target currency (e.g., EUR), and the amount to convert. This webhook can be triggered from any application that needs a conversion.
Step 2: Fetch Live Exchange Rate from API
The workflow securely calls the ExchangeRate.host API using your stored credentials. It constructs the API URL dynamically based on the webhook input and retrieves the current exchange rate. The API key is handled safely within n8n’s credential system.
Step 3: Perform Calculation and Return Result
The node multiplies the amount by the fetched rate, calculates the converted value, and formats the response. The result is sent back to the originating system via the webhook response, completing the conversion in seconds.
Who This Is For
This template is ideal for businesses and individuals dealing with multi‑currency operations:
- E‑commerce stores selling globally that need dynamic price displays.
- Freelancers & consultants billing international clients in their local currency.
- Financial teams tracking expenses, revenues, or investments across currencies.
- Travel companies estimating costs and converting travel budgets.
- Accounting departments automating ledger entries for foreign transactions.
- Developers building apps or dashboards that require real‑time currency data.
What You'll Need
- A running n8n instance (cloud or self‑hosted).
- A free API key from ExchangeRate.host (sign up at exchangerate.host).
- A system that can send HTTP POST requests (webhook triggers) – this could be your website backend, a CRM, an internal tool, or even a simple script.
- Basic understanding of JSON payloads (the webhook expects a simple JSON object with
from,to, andamountfields).
Quick Setup Guide
- Import the downloaded JSON template into your n8n editor.
- Create an “HTTP Query Auth” credential in n8n, entering your ExchangeRate.host API key with parameter name
access_key. - Assign that credential to the “Convert Currency” HTTP Request node.
- Set a unique path for the Webhook node (e.g.,
/convert-currency) and activate the workflow. - Test by sending a POST request to your webhook URL with a JSON body like
{ "from": "USD", "to": "EUR", "amount": 100 }. - Integrate the webhook endpoint into your applications to automate conversions on‑demand.
Pro tip: Add a Cache node after the API call to store recent rates for common currency pairs. This reduces API calls and speeds up repeated conversions, especially if you handle high‑volume requests.
Key Benefits
Real‑time accuracy: Eliminates guesswork and outdated manual rates by pulling live exchange data directly from a reliable API.
Time savings: Automates a repetitive task that can consume hours each month, freeing your team for higher‑value work.
Scalability: Handles thousands of conversion requests effortlessly, perfect for growing e‑commerce or financial operations.
Error reduction: Removes human miscalculation risks, ensuring financial reports and invoices are always correct.
Flexible integration: Works with any system that can send a webhook—CRMs, accounting software, custom apps, or even chat bots.