Documentation

API URL


POST /api/v1/vat-validation-and-rates/validate

Headers
Code
Content-Type: application/json
Body Parameters


Example Request

Code
GET https://datpaq.com/api/v1/vat-validation-and-rates/validate?api_key=your-api-key&vatNumber=DE123456789

Successful Response

Status
HTML
200 OK
Body
Code
{
  "success": true,
  "valid": true,
  "normalized": "DE123456789",
  "countryCode": "DE",
  "nationalNumber": "123456789",
  "country": "Germany",
  "rates": {
    "country": "Germany",
    "standard": 19,
    "reduced": [
      7
    ],
    "superReduced": null,
    "parking": null,
    "zero": null,
    "currency": "EUR"
  },
  "metadata": {
    "correlationId": "req-example-vat",
    "timestamp": "2026-10-12T12:00:00.000Z",
    "processingTime": "4ms",
    "api_token_name": null,
    "rate_limit": {
      "limit": null,
      "remaining": null,
      "reset": null
    }
  }
}

Error Response

Example
Code
HTTP 400 InvalidRequest: Joi query/body validation fails, VAT format is invalid, or a calculate category/country-code value is invalid — Request returns invalid-input details or a VAT validation failure; HTTP 401 AuthenticationError: Gateway rejects missing or invalid API-key credentials — Request is not authorized; HTTP 404 NotFound: Country code has no bundled rates or route is unknown — Lookup target is unavailable; HTTP 429 RateLimitError: More than 1000 requests reach /api/* routes in 15 minutes — Request returns Too many requests; HTTP 500 InternalError: A VIES/HMRC fetch or handler operation throws an exception — Request returns an operation-specific failure reason

Last Updated:  May 4, 2026