Checkout 2.0
SearchCustomerDetails
POST /CheckOut2Api/Commerce/SearchCustomerDetails

The method allows partner to load personal data about known customer. Known customer is a customer who has at least one purchase in checkout. CustomerToken is a key associated with customer details.

Input Parameters

NameData TypeDefault ValueDescription
CustomerTokenStringAn empty stringCustomer ID formatted as a string.
SsnStringNone. Must be specified.Customer personal number.
CountryCodeStringNone. Must be specified.Coutry code of current ssn, for example “swe” or “fin”.
IsBusinessBooleanfalseExtension for companies.

Example requests

{
  "CustomerToken": "",
  "Ssn": "12345612345",
  "CountryCode": "swe",
  "IsBusiness": false
}
{
  "CustomerToken": "",
  "Ssn": "1234561-2345",
  "CountryCode": "fin",
  "IsBusiness": true
}

Output parameters

NameData TypeDescription
CustomerTypeEnumeration
FirstNameStringCustomer’s first name. This is used also as a first name of the person on the invoicing address.
LastNameStringCustomer’s last name. This is used also as a last name of the person on the invoicing address.
Address1StringThe line of the invoicing address that appears below customer’s name. Usually contains a street name and an ordinal number of the building.
Address2StringThe second line of the invoicing address that appears below customer’s name. Usually contains a street name and an ordinal number of the building.
ZipCodeStringThe ZIP of the invoicing address.
CityStringThe city of the invoicing address.
CountryStringThe city of the invoicing address.
SsnStringCustomer personal code.
CustomerTokenStringThe key associated with customer details.

Return Value

{
  "CustomerType": 0,
  "FirstName": "Name",
  "LastName": "Lastname",
  "Address1": "Address1",
  "Address2": null,
  "ZipCode": "12345",
  "City": "Big City",
  "Country": "SWE",
  "Ssn": "12345612345",
  "CustomerToken": "2a87de8cc5229aeffc047a8e9e42284f"
}