Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Hi
CMS Version - 10.10.3
Commerce Version - 11.2.4
We are using the Episerver Service Api to fetch the customers data using the following Api call:
var client = new HttpClient() { BaseAddress = new Uri(ConfigurationManager.AppSettings["integrationUrl"]) }; client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.AccessToken); var result = client.GetAsync("/episerverapi/commerce/customers/contact").Result.Content.ReadAsStringAsync().Result
and we are getting the following:
"PrimaryKeyId": "de34525b-fff5-46ce-ba40-0cb05e54df22", "Addresses": [], "FirstName": "Order", "LastName": "Manager", "Email": "manager@unknowdomain.domain", "RegistrationSource": null
All of the property of CustomerContact class are not coming in the response. Such as "DateOfBirth", "Gender" etc..
But value of these fields are saved in DB table.
Please help me to get these values using the Service Api call.