Http/1.1 Requests

Requests to Valdit APIs must fully comply with the HTTP/1.1 standard1 . Most notably, the request must include a Host header as this is mandatory in HTTP/1.1. Whenever parameters are used in the URL they must be URL encoded.

If included, the body of a message must contain valid JSON data and a valid Content-Type header must be included. While the examples in this document are formatted for readability, it is acceptable to send JSON without whitespace:

POST https://developer.valdit.com/api/v1/vatnumberchecks HTTP/1.1
Host: developer.valdit.com
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUz.......................
Content-Type: application/json

{"vatCountryCode":"BE","vatNumber":"0420834005"}

  1. See https://tools.ietf.org/html/rfc2616 for the official documentation on HTTP/1.1 ↩︎