Scopes: users.write
, communication_settings.write
Parameters
Settings for when a user earns loyalty progress
Settings for when a merchant sends an offer
Settings for when a merchant sends general marketing
Response
The ID of the settings record
The handle of the merchant
Settings for when a user earns loyalty progress
Settings for when a merchant sends an offer
Settings for when a merchant sends general marketing
curl https://api.thanxsandbox.com/users/woerihfslkwer/communication_settings?merchant_id=owierywtwt \
-X PATCH \
-H 'X-ClientId: {client_id}' \
-H 'Accept-Version: v4.0' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {access_token}' \
-d '{
"communication_setting": {
"reward_progress": {
"email": false
},
"reward_offer": {
"notification": false,
"email": false
},
"marketing_general": {
"email": false
}
}
}'
{
"communication_setting": {
"id": "weoruoisdhf",
"merchant_id": "owierywtwt",
"merchant_handle": "example-merchant",
"user_id": "woerushfwe",
"reward_progress": {
"email": true
},
"reward_offer": {
"notification": true,
"email": true
},
"marketing_general": {
"email": true
}
}
}