Menu
Update Subscriptions
Update shopper subscription preferences
POST
/organizations/{organizationId}/subscriptions/actions/bulkUse it in a workflow
- Add a step and choose the Salesforce Commerce Cloud connector.
- Pick the Update Subscriptions action (under Shopper Consents).
- Fill in the fields below, then reference the result from later steps as
{{updateSubscriptions.response.data}}.
Request
Path parameters
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"subscriptions": [
{
"subscriptionId": "weekly-newsletter",
"channel": "email",
"contactPointValue": "john.doe@example.com",
"status": "opt_in"
},
{
"subscriptionId": "sms-alerts",
"channel": "sms",
"contactPointValue": "+1 555 123 4567",
"status": "opt_out"
}
]
}
Response
Returns 200 with an object. Read it in later steps with {{updateSubscriptions.response.data.<field>}}.
{
"results": [
{
"subscriptionId": "weekly-newsletter",
"channel": "email",
"contactPointValue": "jack.sparrow@salesforce.com",
"status": "opt_in",
"success": true,
"error": {
"code": "INVALID_CONTACT_POINT",
"message": "Invalid email address format",
"details": {
"field": "contactPointValue",
"provided": "invalid-email"
}
}
}
]
}
Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.
Was this page helpful?