ZIP code/postal code mask

You can use the ZIP code mask or postal code mask to define the number of positions and the type of characters of the ZIP codes or postal codes in the country.

For each position of the code, you can define the type of character as follows:

  • Z = alphabetic character, upper case or lower case (a - z, A - Z), or any of the following characters: [ \ + - ] _ '
  • 9 = numeric character (0 - 9)
  • X = alphanumeric character (a - z, A - Z, 0 - 9)
  • 0 = numeric character or space (0 - 9, <space>)
  • space = <space>

For example, for postal codes such as 6715 GV, you must enter the following mask: 9999 ZZ. For postal codes such as 671F 20, the mask can be: 999Z 99 or 99XX 99.

You define the mask in the Countries (tcmcs0110s000) session.

LN checks the ZIP code against the mask if you enter a ZIP code or postal code in one of these sessions:

  • Addresses (tccom4130s000)
  • ZIP Codes/Postal Codes (tccom4136s000)

In addition to the ZIP code check, LN checks that the ZIP code length is at least equal to the ZIP Code Base defined for the country in the Countries (tcmcs0110s000) session.


LN checks the ZIP code against the mask only if the ZIP code contains the following characters: ABCDEFGHIJKLMNOPQRSTUVWXYZ[\+- ]_' abcdefghijklmnopqrstuvwxyz 0123456789. If the ZIP code contains other characters, such as ë or ï, the code cannot be checked and is automatically approved.

Related topics