Get contact data by nick name
The following example shows how to get contact data by nick name.
Request
GET /wcs/resources/store/10101/person/@self/contact/Mary HTTPS/1.1
Host: testserver.mycompany.com
Content-Type: application/json
Response
HTTPS/1.1 200 OK
Content-Type: application/json
{
"addressId": "20904",
"addressLine": [
"100 main st.",
"Suite 100",
""
],
"addressType": "ShippingAndBilling",
"bestCallingTime": "",
"city": "RTP",
"country": "United States",
"email1": "abc@xyz.com",
"email2": "user1@abc.com",
"firstName": "Mary",
"lastName": "Smith",
"nickName": "Mary",
"phone1": "9191234567",
"phone1Type": "",
"primary": "false",
"resourceId": "https:\/\/testserver.mycompany.com\/wcs\/resources\/store\/10101\/person\/@self\/contact\/Mary",
"resourceName": "person",
"state": "North Carolina",
"zipCode": "12345"
}