Feature Pack 4Feature Pack 5Feature Pack 6

create a client location

The following example shows how to create a client location.

Request


POST /wcs/resources/lbs/store/10101/clientLocation HTTPS/1.1
Host: myserver.mycompany.com
Content-Type: application/json

{
"programId": "0",
"status": "shopping",
"clientType": "user",
"clientId": "3",
"sourceType": "GPS",
"regionId": "Ontario",
"zoneId": "unknown-zone",
"pointOfInterestId": "10039",
"poiType": "Store",
"latitude": "123.1",
"longitude": "234.1"
 }
 

Response


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

{
	"clientId": "3",
	"clientLocationId": "10501",
	"clientType": "user",
	"creationTime": "2011-11-23T15:57:33Z",
	"latitude": "123.1",
	"longitude": "234.1",
	"modificationTime": "2011-11-23T15:57:33Z",
	"personalizationId": "1321978876424-1",
	"poiType": "Store",
	"pointOfInterestId": "10039",
	"programId": "0",
	"regionId": "Ontario",
	"resourceName": "clientlocation",
	"sourceType": "GPS",
	"status": "shopping",
	"storeId": "10101",
	"zoneId": "unknown-zone"
}