Address Validation

The Print.one API has support for address validation whenever you try to make a request. There is a general address validation which is done for all countries, but also address validation for some specific countries. You will find details on all of these validations below.

Default Address Validation

Default validation is done for every country, except when stated otherwise.

By default, we check for each order whether the recipient has a house number or not. We also check whether the postal code is not empty.

Correct example:

Example of a correct address
1{
2
3 "name": "John Doe",
4
5 "address": "Kerkstraat 1",
6
7 "addressLine2": "Financial Dpt.",
8
9 "postalCode": "1234 AA",
10
11 "city": "Amsterdam",
12
13 "country": "Netherlands"
14
15}

Wrong example:

Example of a wrong address
1{
2
3 "name": "John Doe",
4
5 "address": "Kerkstraat", <--- Notice the housenumber missing
6
7 "addressLine2": "Financial Dpt.",
8
9 "postalCode": "", <--- Notice the empty postal code
10
11 "city": "Amsterdam",
12
13 "country": "Netherlands"
14
15}


The Netherlands

For the Netherlands, we check whether the postal code has the correct format. Dutch postal codes consist of four numbers followed by two letters. The spacing between the number and letter parts does not matter. The letter part can be in uppercase or lowercase—it doesn't affect the validation process. We will ensure the correct formatting.

Correct examples:

  • 1234 AA

  • 1234AA

  • 1234 AA

  • 1234aa

  • 1234Aa

Sources:


Germany

For Germany, we check if the postal code has the correct format. In Germany, postal codes consist of 6 digits, ranging from 01000 to 99999.

When reading spreadsheets, be aware that postal codes in Germany can start with a 0. Spreadsheet software like Excel may sometimes remove this zero if the cell is formatted as a number.

Correct examples:

  • 01000

  • 99999

  • 12345

Sources:


Belgium

For Belgium, we check if the postal code has the correct format. Postal codes in Belgium are just numbers, ranging from 1000 to 9992.

Correct examples:

  • 1000

  • 9992

  • 1234

Sources: