Json Content-type

Valdit APIs exclusively use JSON1 as the Content-type both for requests and responses. JSON (JavaScript Object Notation) is a lightweight data-interchange format. JSON is a text format that is easy for humans to read and easy for machines to parse and generate.

JSON is completely language independent. Libraries that add JSON support are freely available for all commonly used programming languages, including PHP, C#, Java, JavaScript, Perl, Python, C, C++ and many others. It is strongly recommended to make use of such a library and not write your own custom code for generating or parsing JSON.

Below is an example of representation of a EU VAT number using JSON:

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

  1. See http://www.json.org or https://tools.ietf.org/html/rfc4627 for more information on JSON. ↩︎