PATCH
/
communication_settings
/
:id
curl https://api.thanxsandbox.com/communication_settings/woerihfslkwer \
  -X PATCH \
  $AUTH_HEADERS \
  -d '{
    "communication_setting": {
      "reward_earned": {
        "notification": false,
        "email": false
      },
      "feedback_available": {
        "notification": true
      },
      "marketing_general": {
        "email": true,
        "sms": false
      }
    }
  }'
{
  "communication_setting": [
    {
      "id": "weoruoisdhf",
      "merchant_id": "owierywtwt",
      "user_id": "woerushfwe",
      "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
      }
    }
  ]
}
Please review proper request headers here.

Parameters

id
string
The ID of the settings record
reward_earned
hash
Settings for when a user earns a loyalty reward
reward_unused
hash
Settings for when a user has an unused reward
reward_progress
hash
Settings for when a user earns loyalty progress
reward_offer
hash
Settings for when a merchant sends an offer
feedback_available
hash
Settings for when a user has the opportunity to leave feedback for a purchase
marketing_general
hash
Settings for when a merchant sends general marketing

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_earned
hash
Settings for when a user earns a loyalty reward
reward_unused
hash
Settings for when a user has an unused reward
reward_progress
hash
Settings for when a user earns loyalty progress
reward_offer
hash
Settings for when a merchant sends an offer
feedback_available
hash
Settings for when a user has the opportunity to leave feedback for a purchase
marketing_general
hash
Settings for when a merchant sends general marketing
curl https://api.thanxsandbox.com/communication_settings/woerihfslkwer \
  -X PATCH \
  $AUTH_HEADERS \
  -d '{
    "communication_setting": {
      "reward_earned": {
        "notification": false,
        "email": false
      },
      "feedback_available": {
        "notification": true
      },
      "marketing_general": {
        "email": true,
        "sms": false
      }
    }
  }'
{
  "communication_setting": [
    {
      "id": "weoruoisdhf",
      "merchant_id": "owierywtwt",
      "user_id": "woerushfwe",
      "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
      }
    }
  ]
}