Feature Pack 5Feature Pack 6Feature Pack 4

Get user account

The following example shows how to get user account.

Request


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

Response


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

{
	"accountStatus": "Enabled",
	"addressId": "20903",
	"addressLine": [
		"111 main st.",
		"Suite 111",
		""
	],
	"addressType": "ShippingAndBilling",
	"bestCallingTime": "Evening",
	"businessTitle": "Br.",
	"challengeQuestion": "",
	"checkoutProfileUrl": "https:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/10101\/person\/@self\/checkoutProfile",
	"city": "RTP",
	"contactUrl": "https:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/10101\/person\/@self\/contact",
	"contextAttribute": [
		{
			"attributeName": "JobFunction",
			"attributeValue": [
				{
					"storeId": "10101",
					"value": [
						"pcd4",
						"pcd3"
					]
				}
			]
		}
	],
	"country": "United States",
	"distinguishedName": "uid=jsmith2,o=default organization,o=root organization",
	"email1": "u1@m.com",
	"email2": "abc@123.com",
	"fax1": "919111222",
	"firstName": "John",
	"gender": "Male",
	"lastName": "Smith",
	"lastUpdate": "2011-11-22T19:26:19.518Z",
	"logonId": "jsmith2",
	"mobilePhone1": "919-111-1111",
	"mobilePhone1Country": "United States",
	"nickName": "jsmith2",
	"organizationDistinguishedName": "o=default organization,o=root organization",
	"organizationName": "orgName1",
	"organizationUnitName": "orgUnitName1",
	"orgizationId": "-2000",
	"passwordExpired": "false",
	"personTitle": "Miss",
	"phone1": "919-111-1111",
	"phone1Type": "",
	"phone2": "919-222-2222",
	"phone2Type": "",
	"preferredCurrency": "USD",
	"preferredLanguage": "en_US",
	"primary": "true",
	"receiveEmailPreference": [
		{
			"storeID": "10101",
			"value": "true"
		}
	],
	"receiveSMSPreference": [
		{
			"storeID": "10101",
			"value": "true"
		}
	],
	"registrationApprovalStatus": "Approved",
	"registrationDateTime": "2011-11-22T18:52:29.446Z",
	"registrationStatus": "RegisteredPerson",
	"resourceId": "https:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/10101\/person\/@self",
	"resourceName": "person",
	"state": "North Carolina",
	"userId": "9004",
	"zipCode": "27560"
}