Feature Pack 5Feature Pack 6Feature Pack 4

Register a user account

The following example shows how to register a user account.

Request


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

{
	"logonId" : "jsmith",
	"logonPassword" : "passw0rd",
	"logonPasswordVerify" : "passw0rd",
    "firstName" : "John",
    "lastName" : "Smith",
    "addressLine": [
      		"100 main st.",
      		"Suite 100",
      		""
      		],
	"city" : "RTP",
	"state" : "North Carolina",
	"country" : "United States",
	"zipCode" : "27560",
    "gender" : "Male",
    "preferredLanguage" : "en_US",
    "bestCallingTime" : "Evening",
    "businessTitle" : "Br.",
    "organizationUnitName" : "orgUnitName1",
    "organizationName" : "orgName1",
    "personTitle" : "Mr.",
    "email1" : "abc@xyz.com",
    "email2" : "user1@abc.com",
    "phone1" : "911",
    "fax1" : "919111222",
    "receiveEmailPreference": [
		{
			"storeID": "10101",
			"value": "true"
		}
	],
	"receiveSMSNotification": "false",
	"receiveSMSPreference": [
		{
			"storeID": "10101",
			"value": "true"
		}
	],
    "profileType" : "Consumer",
    "challengeAnswer":"-"
}

Response


HTTPS/1.1 201 Created
Content-Type: application/json

{
	"WCToken": "5002%2xxxxxxxxxxxxxxxxxx",
	"WCTrustedToken": "5002%2xxxxxxxxxxxxxxxxxx",
	"personalizationID": "1320786893704-1",
	"userId": "9004"
}