Looking for ePay classic docs? Go to docs.epay.dk
ePay documentationDocsePay documentation

AddressInfo

Standardized representation of a postal address.
The object supports international formats while enforcing consistent field lengths and validation rules.

  • countryCode must follow the ISO 3166-1 alpha-2 standard (e.g., "DK").
  • postalCode and city capture the locality information.
  • line1 is required for meaningful addresses; line2 and line3 are optional extensions and should only be used if the address naturally contains multiple lines, always in order (line1 line2 line3).
  • All fields are nullable, allowing partial addresses where only some information is known.
countryCodestring
Nullable

ISO 3166-1 alpha-2 country code

Length:
2 <= length <= 2
Example:
"DK"
postalCodestring
Nullable

The local postal code of the address

Length:
1 <= length <= 16
Example:
"1400"
citystring
Nullable

The city

Length:
1 <= length <= 50
Example:
"København"
line1string
Nullable

The first address line. Most address only has a singular line.

Length:
1 <= length <= 50
Example:
"Torvegade 45"
line2string
Nullable

Second address line. Only use if address contains multiple lines. Always start with line1.

Length:
1 <= length <= 50
Example:
"2. th."
line3string
Nullable

Third address line. Only use if address contains multiple lines. Always start with line1 and line2.

Length:
1 <= length <= 50
Example:
"Christianshavn"
AddressInfo
{  "countryCode": "DK",  "postalCode": "1400",  "city": "København",  "line1": "Torvegade 45",  "line2": "2. th.",  "line3": "Christianshavn"}