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

CustomerInfo

Customer info. These data points are used during SCA/3DS and is required for some schemes. These data may also be sent to the specific payment provider, if required to complete the payment such as Klarna. It is recommended to send all the info that is available to improve the approval rate.

firstNamestring
Nullable

The first name of the paying customer.

Length:
1 <= length
Example:
"Peter"
lastNamestring
Nullable

The last name of the paying customer.

Length:
1 <= length
Example:
"Nielsen"
birthdatestring
Nullable

The date of birth of the cardholder in YYYY-MM-DD format.

Format:
date
Example:
"2000-07-25"
emailstring
Nullable

The email of the paying customer.

Length:
1 <= length
Example:
"email@example.com"
phoneNumberstring
Nullable

E.164 phone number format with a single space between country code and local number. No additional spaces allowed.

Format: "+[countryCode] [number]".

Match:
^\+\d{1,3} \d+$
Example:
"+45 12345678"

The shipping address of the purchase. If no wares are shipped, leave this empty. If billing and shipping address is the same, then fill both properties with identical information.

The billing address of the customer. Often the personal address of the customer or the business address of paying company. If billing and shipping address is the same, then fill both properties with identical information.

CustomerInfo
{  "firstName": "Peter",  "lastName": "Nielsen",  "birthdate": "2000-07-25",  "email": "email@example.com",  "phoneNumber": "+45 12345678",  "shippingAddress": {    "countryCode": "DK",    "postalCode": "1400",    "city": "København",    "line1": "Torvegade 45"  },  "billingAddress": {    "countryCode": "DK",    "postalCode": "1400",    "city": "København",    "line1": "Torvegade 45"  }}