0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Business → Verify VAT ID

AI-generated

Overview

This node verifies the validity of a VAT (Value Added Tax) ID for a business. It supports two input formats: providing the full VAT ID directly, or specifying the country code and the local ID separately. This is useful for businesses needing to validate customer or partner VAT numbers for compliance, invoicing, or tax purposes.

Common scenarios:

  • E-commerce platforms verifying customer VAT IDs before applying tax exemptions.
  • B2B services checking the legitimacy of client VAT numbers.
  • Automated workflows that require validation of supplier or partner VAT information.

Example:
A company receives a new order from a European customer and wants to check if the provided VAT ID is valid before processing the order.

Properties

Name Meaning
VAT Format Choose how to provide the VAT information:
- Via VAT ID
- Via Country Code and ID
VAT ID The complete VAT identification number (used when "Via VAT ID" is selected)
Country Code The country code part of the VAT number (used when "Via Country Code and ID" is selected)
ID The local identifier part of the VAT number (used with Country Code)

Output

The output will be a JSON object containing the result of the VAT ID verification. While the exact structure depends on the API response, it typically includes fields such as:

{
  "valid": true,
  "countryCode": "DE",
  "vatNumber": "123456789",
  "requestDate": "2024-06-01",
  "name": "Company Name",
  "address": "Street, City, Country"
}

If an error occurs and "Continue On Fail" is enabled, the output will include an error field with the error message.

Dependencies

  • External Service: Requires access to the CodeKit API for VAT validation.
  • Credentials: You must configure the codeKitApi credential in n8n for authentication.

Troubleshooting

Common issues:

  • Invalid VAT ID format: Ensure you select the correct input method and provide all required fields.
  • Missing credentials: If the codeKitApi credential is not set up, the node will fail.
  • API errors: If the external service is unavailable or returns an error, the node may output an error message.

Error messages:

  • "Missing required property": Check that all necessary fields are filled based on your chosen VAT Format.
  • "Invalid VAT ID": The provided VAT ID does not conform to expected patterns or is not recognized by the service.
  • "Authentication failed": Verify your codeKitApi credentials in n8n.

Links and References

Discussion