Skip to main content
POST
/
v1
/
validate
/
async
/
batch
Validate multiple VAT numbers asynchronously
curl --request POST \
  --url https://api.vatly.dev/v1/validate/async/batch \
  --header 'Content-Type: application/json' \
  --data '
{
  "vat_numbers": [
    "DE123456789",
    "NL987654321B01"
  ],
  "requester_vat_number": "NL987654321B01",
  "cache": true
}
'
{
  "data": {
    "batch_id": "550e8400-e29b-41d4-a716-446655440000",
    "status": "pending",
    "total": 197,
    "accepted": 197,
    "rejected": [
      {
        "vat_number": "<string>",
        "error": {
          "code": "<string>",
          "message": "<string>"
        }
      }
    ]
  },
  "meta": {
    "request_id": "550e8400-e29b-41d4-a716-446655440000",
    "cached": true,
    "cached_at": "<string>",
    "stale": true,
    "source_status": "live",
    "mode": "test",
    "request_duration_ms": 120
  }
}

Body

application/json
vat_numbers
string[]
required

Array of VAT numbers to validate (max 200 for Pro, 1000 for Business)

Minimum array length: 1
Minimum string length: 1
Example:
["DE123456789", "NL987654321B01"]
requester_vat_number
string

Your own VAT number (for consultation numbers)

Example:

"NL987654321B01"

cache
boolean
default:true

Whether to use cached results

Response

Batch accepted for processing

data
object
required
meta
object
required