Feature Pack 4Feature Pack 5Feature Pack 6

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: wcstestserver.raleigh.ibm.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:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/10101\/person\/@self\/contact\/Mary",
	"resourceName": "person",
	"state": "North Carolina",
	"zipCode": "12345"
}