GET
/
users
/
:id
/
communication_settings
curl --request GET \
  --url https://api.thanx.com/users/:id/communication_settings \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "merchant_id": "<string>"
}'
{
  "communication_setting": {
    "id": "weori234098",
    "merchant_id": "owierywtwt",
    "user_id": "woeruijsfwer",
    "reward_progress": {
      "email": true
    },
    "reward_offer": {
      "notification": true,
      "email": true
    },
    "marketing_general": {
      "email": true
    }
  }
}

Scopes: users.read, communication_settings.read

Parameters

merchant_id
string
required

Merchant ID

Response

id
string

The ID of the settings record

merchant_id
string

The ID of the merchant

user_id
string

The ID of the user

reward_progress
hash

Settings for when a user earns loyalty progress

reward_offer
hash

Settings for when a merchant sends an offer

marketing_general
hash

Settings for when a merchant sends general marketing