Please review proper request headers here .
Parameters
Response
The ID of the settings record
The handle of the merchant
Settings for when a user earns a loyalty reward
Settings for when a user has an unused reward
Settings for when a user earns loyalty progress
Settings for when a merchant sends an offer
Settings for when a user has the opportunity to leave feedback for a purchase
Settings for when a merchant sends general marketing
curl https://api.thanxsandbox.com/communication_settings/woerihfslkwer \
-X PATCH \
-H "Content-Type: application/json" \
-H "Accept-Version: v4.0" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${ token }" \
-H "X-ClientId: ${ client_id }"
-d '{
"communication_settings": {
"reward_earned": {
"notification": false,
"email": false
},
"feedback_available": {
"notification": true
}
}
}'
{
"communication_settings" : [
{
"id" : "weori234098" ,
"merchant_id" : "owierywtwt" ,
"merchant_handle" : "example-merchant" ,
"user_id" : "woeruijsfwer" ,
"reward_earned" : {
"notification" : true ,
"email" : true
},
"reward_unused" : {
"notification" : true ,
"email" : true
},
"reward_progress" : {
"notification" : true ,
"email" : true
},
"reward_offer" : {
"notification" : true ,
"email" : true
},
"feedback_available" : {
"notification" : true
},
"marketing_general" : {
"email" : true ,
"sms" : true
}
}
]
}