0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions108

Overview

The node "0CodeKit" is a versatile toolbox of no-code utilities that supports multiple resources and operations, including AI, Business, Calculate, Code, Convert, Crypto, Date & Time, Generate, Image, Operator, PDF, Storage, Text, and User. Specifically for the Business resource with the Lookup VAT Rates operation, the node allows users to retrieve VAT rate information based on a provided country code.

This node is beneficial in scenarios where automated workflows require validation or retrieval of tax-related data such as VAT rates for different countries, which can be used in invoicing, accounting, or e-commerce automation. For example, an e-commerce platform could use this node to dynamically fetch VAT rates for customers based on their country during checkout.

Properties

Name Meaning
Code Variables A collection of code variables where each variable has:
- Variable Name or ID: The name or ID of a variable defined in the code editor for the function.
- Value: The value assigned to the variable.

Note: The provided input properties JSON only defines the "Code Variables" fixed collection property, which is used when running code editor functions (resource "editor"). For the Business resource's Lookup VAT Rates operation, the relevant input property (not explicitly listed in the user-provided JSON but visible in the source) is:

Name Meaning
countryCode The country code to lookup VAT rates for.

This property is used to specify the country whose VAT rates should be retrieved.

Output

The output of the node is a JSON array containing the results from the invoked API endpoint corresponding to the selected resource and operation.

For the Business > Lookup VAT Rates operation, the output JSON will contain VAT rate information related to the specified country code. The exact structure depends on the external service response but typically includes fields such as standard VAT rate, reduced rates, and possibly other tax-related details.

If the node operation returns multiple items, they are aggregated into the output array.

The node does not explicitly handle binary data output for this operation.

Dependencies

  • Requires an API key credential for authentication with the external 0CodeKit API service.
  • The node makes HTTP POST requests to endpoints structured as business/lookupvatrates with the parameter countryCode.
  • No additional environment variables or configurations are indicated beyond the required API credential.

Troubleshooting

  • Common Issues:

    • Invalid or missing country code parameter may result in errors or empty responses.
    • Missing or incorrect API key credential will cause authentication failures.
    • Network connectivity issues can prevent successful API calls.
  • Error Messages:

    • Errors thrown by the node will include the error message from the API or internal exceptions.
    • If "Continue On Fail" is enabled, errors for individual items will be returned as objects with an error field containing the error string.
  • Resolution Tips:

    • Ensure the country code is valid and correctly formatted.
    • Verify that the API key credential is properly configured and active.
    • Check network access and firewall settings to allow outbound API requests.

Links and References

  • n8n Expressions Documentation — for using expressions in variable values.
  • 0CodeKit API documentation (not publicly linked here) would provide detailed info about the VAT rates endpoint and response format.

Discussion