Menu
Update Shopper Context
Update Shopper Context
PATCH
/organizations/{organizationId}/shopper-context/{usid}Use it in a workflow
- Add a step and choose the Salesforce Commerce Cloud connector.
- Pick the Update Shopper Context action (under Shopper Context).
- Fill in the fields below, then reference the result from later steps as
{{updateShopperContext.response.data}}.
Request
Path parameters
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"effectiveDateTime": "2020-12-20T00:00:00Z",
"sourceCode": "wii1-98",
"customerGroupIds": [
"BigSpenders"
],
"customQualifiers": {
"deviceType": "mobile",
"ipAddress": "189.0.0.0",
"operatingSystem": "Android"
},
"assignmentQualifiers": {
"store": "boston"
},
"clientIp": "12.12.12.1",
"geoLocation": {
"city": "Boston",
"country": "United States of America",
"countryCode": "US",
"latitude": 10.11,
"longitude": 198.34,
"metroCode": "string",
"postalCode": "01730",
"region": "NA",
"regionCode": "12345"
},
"couponCodes": [
"SAVE20"
]
}
Response
Returns 200 with an object. Read it in later steps with {{updateShopperContext.response.data.<field>}}.
{
"effectiveDateTime": "2020-12-20T00:00:00Z",
"sourceCode": "wii1-98",
"customerGroupIds": [
"BigSpenders"
],
"customQualifiers": {
"deviceType": "mobile",
"ipAddress": "189.0.0.0",
"operatingSystem": "Android"
},
"assignmentQualifiers": {
"store": "boston"
},
"clientIp": "12.12.12.1",
"geoLocation": {
"city": "Boston",
"country": "United States of America",
"countryCode": "US",
"latitude": 10.11,
"longitude": 198.34,
"metroCode": "string",
"postalCode": "01730",
"region": "NA",
"regionCode": "12345"
},
"couponCodes": [
"SAVE20"
]
}
Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.
Was this page helpful?