Skip to content

Commit 223bc9c

Browse files
committed
WhatsApp update
1 parent 34d9fa6 commit 223bc9c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/engage/user-subscriptions/set-user-subscriptions.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ When you update user subscriptions with Segment's Public API, however, you'll ge
6565

6666
For Segment to process the subscription status request, your Identify call payload must include at least one object that contains an email address or phone number, its subscription type, and its subscription status. Engage accepts both uppercase and lowercase subscription statuses in Identify calls.
6767

68-
The following example payload shows an Identify call with a `context` object, which you'll add to the Identify call to update user subscriptions. The `context` object contains a `messaging_subscriptions` array with two objects that update both SMS and email subscription statuses:
68+
The following example payload shows an Identify call with a `context` object, which you'll add to the Identify call to update user subscriptions. The `context` object contains a `messaging_subscriptions` array with three objects that update SMS, WhatsApp, and email subscription statuses:
6969

7070
```json
7171
{
@@ -77,6 +77,11 @@ The following example payload shows an Identify call with a `context` object, wh
7777
"type": "SMS",
7878
"status": "SUBSCRIBED" | "UNSUBSCRIBED" | "DID_NOT_SUBSCRIBE"
7979
},
80+
{
81+
"key": "(123) 555-5555",
82+
"type": "WhatsApp",
83+
"status": "SUBSCRIBED" | "UNSUBSCRIBED" | "DID_NOT_SUBSCRIBE"
84+
},
8085
{
8186
8287
"type": "EMAIL",
@@ -101,3 +106,6 @@ The following example payload shows an Identify call with a `context` object, wh
101106
```
102107

103108
For successful requests, Segment instantly updates subscription states in your workspace. You can then display successful updates or error messages with users in your notification center.
109+
110+
> success ""
111+
> While SMS and WhatsApp share the same number, you must add a separate subscription state for both of them.

0 commit comments

Comments
 (0)