Feature Pack 4Feature Pack 5Feature Pack 6

Get contact data in address book

The following example shows how to get contact data in address book.

Request


GET /wcs/resources/store/10101/person/@self/contact HTTPS/1.1
Host: wcstestserver.raleigh.ibm.com
Content-Type: application/json

Response


HTTPS/1.1 200 OK
Content-Type: application/json

{
	"contact": [
		{
			"addressId": "20905",
			"addressLine": [
				"200 ABC st.",
				"Apt. 100",
				""
			],
			"addressType": "Shipping",
			"bestCallingTime": "",
			"city": "RTP",
			"country": "United States",
			"email1": "abc@xyz.com",
			"email2": "user1@abc.com",
			"firstName": "F.",
			"lastName": "Smith",
			"nickName": "Friend1",
			"phone1": "1234567890",
			"phone1Type": "",
			"primary": "false",
			"state": "North Carolina",
			"zipCode": "12345"
		},
		{
			"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",
			"state": "North Carolina",
			"zipCode": "12345"
		}
	],
	"resourceId": "https:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/10101\/person\/@self\/contact",
	"resourceName": "person",
	"userId": "9004"
}