curl https://api.thanxsandbox.com/users/woerihfslkwer/communication_settings?merchant_id=owierywtwt \ -X PATCH \ $AUTH_HEADERS \ -d '{ "communication_setting": { "reward_progress": { "email": false }, "reward_offer": { "notification": false, "email": false }, "marketing_general": { "email": false } } }'
{ "communication_setting": { "id": "weoruoisdhf", "merchant_id": "owierywtwt", "user_id": "woerushfwe", "reward_progress": { "email": true }, "reward_offer": { "notification": true, "email": true }, "marketing_general": { "email": true } } }
This endpoint allows the update of a userβs notification / email settings for the specified merchant.
users.write
communication_settings.write
Show reward_progress
Show reward_offer
Show marketing_general