Skip to main content

Test Mode

Test mode lets you build and test your Avatcado integration without making real VIES/HMRC/BFS/Bronnysund calls or consuming your monthly quota. Use a avat_test_ API key instead of a avat_live_ key.

How it works

  • No upstream calls: Requests never reach VIES, HMRC, BFS, or Bronnysund
  • No quota usage: Test requests don’t count toward your monthly limit
  • No burst limit: Test keys are exempt from the per-minute burst limit
  • No rate limit headers: Since there’s no quota or burst limit, rate limit headers are omitted
  • Async endpoints reject test keys: /v1/validate/async and /v1/validate/async/batch return 403 forbidden for avat_test_ keys. Use a avat_live_ key for async testing
  • No caching: Every request returns a fresh response
  • Format validation still applies: Invalid VAT formats return invalid_vat_format just like in live mode
  • meta.mode: "test": Every test response includes this field so you can distinguish test from live

Magic VAT numbers

Use these specific VAT numbers to trigger predictable scenarios: Any other properly formatted VAT number returns valid: true with a generic “Test Company” / “Test Address”.

Examples

Valid response

Error response

Behavior notes

  • Consultation numbers are included for all tiers when a matching requester_vat_number is provided
  • Input normalization works the same as live mode. "de 111.111.111" becomes DE111111111
  • Non-magic numbers return a generic valid result, so any integration test with valid-format VAT numbers will succeed