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
Name | Data Type | Default Value | Description |
---|---|---|---|
CustomerToken | String | An empty string | Customer ID formatted as a string. |
Ssn | String | None. Must be specified. | Customer personal number. |
CountryCode | String | None. Must be specified. | Coutry code of current ssn, for example “swe” or “fin”. |
IsBusiness | Boolean | false | Extension for companies. |
Example requests
{
"CustomerToken": "",
"Ssn": "12345612345",
"CountryCode": "swe",
"IsBusiness": false
}
{
"CustomerToken": "",
"Ssn": "1234561-2345",
"CountryCode": "fin",
"IsBusiness": true
}
Output parameters
Name | Data Type | Description |
---|---|---|
CustomerType | Enumeration | |
FirstName | String | Customer’s first name. This is used also as a first name of the person on the invoicing address. |
LastName | String | Customer’s last name. This is used also as a last name of the person on the invoicing address. |
Address1 | String | The line of the invoicing address that appears below customer’s name. Usually contains a street name and an ordinal number of the building. |
Address2 | String | The second line of the invoicing address that appears below customer’s name. Usually contains a street name and an ordinal number of the building. |
ZipCode | String | The ZIP of the invoicing address. |
City | String | The city of the invoicing address. |
Country | String | The city of the invoicing address. |
Ssn | String | Customer personal code. |
CustomerToken | String | The 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"
}