0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions108

Overview

The node provides a "Verify VAT ID" operation under the "Business" resource, which allows users to verify the validity of a VAT (Value Added Tax) identification number. This is useful for businesses that need to validate VAT IDs for compliance, invoicing, or tax reporting purposes.

There are two ways to verify a VAT ID:

  • Directly by providing the full VAT ID.
  • By providing a country code and an ID separately.

Typical use cases include:

  • Validating customer or supplier VAT IDs before processing transactions.
  • Automating VAT compliance checks in accounting workflows.
  • Integrating VAT validation into CRM or ERP systems.

Properties

Name Meaning
vatFormat Method to verify VAT: "Via VAT ID" (full VAT ID string) or "Via Country Code and ID" (separate inputs).
VAT ID The full VAT identification number to verify (used if vatFormat is "vatId").
Country Code The country code part of the VAT ID (used if vatFormat is "ccid").
ID The identification number part of the VAT ID (used if vatFormat is "ccid").
Code Variables Optional collection of code variables with name/ID and value pairs, used for advanced scripting or dynamic input substitution.

Output

The output is a JSON array containing the verification results returned from the external service. Each item corresponds to one input item processed.

The exact structure of the JSON depends on the external API response but generally includes fields indicating whether the VAT ID is valid, possibly additional metadata about the VAT registration status, and any error messages if invalid.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential for authentication with the external "0CodeKit" service.
  • The node sends a POST request to the endpoint business/validate/vat with parameters depending on the selected VAT format.
  • Proper configuration of the API key credential in n8n is necessary for successful requests.

Troubleshooting

  • Invalid VAT ID errors: If the VAT ID or country code + ID combination is incorrect or malformed, the external service may return an error or indicate invalidity. Double-check the input values.
  • Authentication errors: Ensure the API key credential is correctly set up and has permissions to access the VAT validation endpoint.
  • Network or service downtime: Temporary failures contacting the external API will cause errors; retry later or check network connectivity.
  • Missing required parameters: The node requires either the full VAT ID or both country code and ID depending on the chosen format. Omitting these will cause errors.

Links and References


This summary is based solely on static analysis of the provided source code and property definitions.

Discussion