Actions40
- AI Actions
- Business Actions
- Calculate Actions
- Code Actions
- Convert Actions
- Crypto Actions
- Generate Actions
- Operator Actions
- PDF Actions
- Storage Actions
Convert → Convert Currency
AI-generatedOverview
The Convert Currency operation in the "Convert" resource of this n8n node allows you to convert a specified amount from one currency to another, optionally using historical exchange rates for a given date. This is useful for financial workflows, reporting, invoicing, or any automation where currency conversion is required.
Practical examples:
- Automatically converting sales amounts from various currencies into your home currency for accounting.
- Calculating historical values for expense reports based on past exchange rates.
- Integrating with e-commerce platforms to display prices in different currencies.
Properties
| Name | Meaning |
|---|---|
| Amount | The numeric value to be converted. Must be at least 0.01. |
| Source Currency | The currency code of the original amount. Options include a wide range of international currencies (e.g., USD, EUR, JPY, etc.). |
| Target Currency | The currency code to which the amount should be converted. Options are the same as for Source Currency. |
| Date | (Optional) A specific date for the conversion rate. If provided, the conversion will use the historical rate for that date. Useful for back-dated financial calculations. |
Output
The output is a JSON object containing the result of the currency conversion. While the exact structure may depend on the API response, it typically includes:
{
"amount": 100,
"sourceCurrency": "USD",
"targetCurrency": "EUR",
"convertedAmount": 92.5,
"rate": 0.925,
"date": "2024-06-01"
}
amount: The original amount provided.sourceCurrency: The source currency code.targetCurrency: The target currency code.convertedAmount: The result after conversion.rate: The exchange rate used.date: The date of the exchange rate applied.
Note: The actual field names may vary depending on the backend service.
Dependencies
- External Service: Requires access to the CodeKit API (as referenced by the credential
codeKitApi). - n8n Configuration: You must set up and provide valid credentials for the CodeKit API in n8n under the name
codeKitApi.
Troubleshooting
Common issues:
- Missing or invalid credentials: Ensure the
codeKitApicredential is correctly configured in n8n. - Unsupported currency codes: Only supported ISO currency codes can be used; check the options list.
- Invalid amount: The amount must be a number greater than or equal to 0.01.
- Date format errors: If specifying a date, ensure it is in a valid date format (e.g., YYYY-MM-DD).
Error messages:
"error":"Missing required parameter": One of the required fields (Amount, Source Currency, Target Currency) was not provided."error":"Invalid currency code": The selected currency is not supported."error":"Invalid date": The date provided is not in the correct format or is out of range.
How to resolve:
- Double-check all input fields for correctness.
- Ensure credentials are active and have sufficient permissions.
- Use only supported currency codes from the provided options.
Links and References
- ISO 4217 Currency Codes
- n8n Documentation: Credentials
- CodeKit API Documentation (Replace with actual link if available)