Actions132
- AI Actions
- Extract Text From Document
- Check Content Policy
- Detect Adult Content
- Detect Brand
- Detect Color
- Detect Email Type
- Detect Faces
- Extract Entities
- Extract Contact Information
- Extract Customizable Information From Text
- Fuzzy Text Matcher
- Generate Image
- Generate JavaScript Code
- Generate Python Code
- Detect Language
- Detect Mood
- Extract Text From PDF
- Recognize Objects in Image
- Extract Text From Image
- Redact Sensitive Information From PDF
- Remove Background Image
- Summarize Text
- Transcribe
- Translate Text
- Image Actions
- Business Actions
- Convert Actions
- Generate Actions
- Crypto Actions
- Operator Actions
- Storage Actions
- Scheduler Actions
- Text Actions
- Chart Actions
- Code Actions
- Calculate Actions
- Date and Time Actions
- PDF Actions
- Compress PDF File
- Count PDF Pages
- Create Empty PDF
- Decrypt PDF
- Convert DOCX to PDF
- Draw Image on PDF
- Draw Text on PDF
- Encrypt PDF
- Convert HTML to PDF
- Convert Markdown to PDF
- Manage PDF Metadata
- Merge PDF Files
- Add PDF Pages
- Remove PDF Pages
- Resize PDF Pages
- Rotate PDF Pages
- Convert PDF to Base64
- Convert PDF to Image
- Split PDF File
- Add Image Watermark to PDF
- Add Text Watermark to PDF
- Shortened URL Actions
Convert → Convert Currency
AI-generatedOverview
The "Convert Currency" operation of the 0CodeKit node provides a utility to convert a specified amount from one currency to another. This is useful in scenarios where workflows need to handle financial data across different currencies, such as e-commerce platforms, accounting automation, or financial reporting systems. For example, you could use this node to convert an invoice total from USD to EUR before sending it to a European client, or to update product prices dynamically based on current exchange rates.
Properties
| Name | Meaning |
|---|---|
| Amount | The numeric amount of money to convert from the source currency to the target currency. |
| From Currency | The source currency code (e.g., USD, EUR) representing the currency of the input amount. |
| To Currency | The target currency code (e.g., USD, EUR) representing the currency to convert to. |
| Date | Optional date string (format: YYYY-MM-DD) specifying the date for the conversion rate. If left empty, the current rate is used. |
The "From Currency" and "To Currency" properties support a wide range of global currency codes, including but not limited to USD, EUR, GBP, JPY, AUD, CAD, CHF, and many others.
Output
The node outputs JSON data containing the result of the currency conversion. The output includes the converted amount based on the specified parameters and the exchange rate valid for the given date or the current date if none is provided.
If the node supports binary data output, it is not indicated here; thus, the output is purely JSON with conversion results.
Dependencies
- Requires an API key credential for the 0CodeKit service.
- The node makes a POST request to the
/convert/currencyendpoint of the 0CodeKit API. - Network connectivity to
https://prod.0codekit.comis necessary. - No additional environment variables are explicitly required beyond the API authentication.
Troubleshooting
Common Issues:
- Invalid or missing API key credential will cause authentication failures.
- Providing unsupported or incorrect currency codes may result in errors or no conversion.
- Incorrectly formatted date strings can lead to request failures.
- Network issues or API downtime can prevent successful conversion.
Error Messages:
- Authentication errors typically indicate invalid or missing API credentials.
- Validation errors may mention unsupported currencies or invalid amounts.
- Date format errors suggest the date must be in
YYYY-MM-DDformat or left empty.
Resolutions:
- Ensure the API key credential is correctly configured in n8n.
- Verify currency codes against the supported list.
- Use ISO date format for the date property or leave it blank for the latest rate.
- Check network connectivity and retry if transient errors occur.
Links and References
- 0CodeKit API Documentation (general base URL)
- ISO 4217 Currency Codes Reference: https://www.iso.org/iso-4217-currency-codes.html