Update insured’s SMS text notifications

📘

API Refs

URI Parameters

NameTypeDescriptionRequired
userIdnumberinsure idyes

Request body

NameTypeDescriptionRequired
isAllowedbooleanEnable or Disable notificationsyes

Example

  1. Get insured information Request with userId = 1;
  2. Get insured information Response:

    {
      "id": 1,
      "email": "[email protected]",
      "firstName": "John",
      "lastName": "Smith",
      "address": [
        {
          "address1": "11 Birch Hill Street",
          "address2": "Apt. 123",
          "city": "Bronx",
          "postalCode": "10023",
          "state": "NY",
          "phone": "123-456-7890",
          "alias": "Home"
        }
      ],
      "preferences": {
        "paymentEmailsAllowed": false,
        "marketingEmailsAllowed": false,
        "paymentSMSAllowed": false
      }
    }
  3. Update insured’s SMS text notifications Request with userId = 1:

    {
      "isAllowed": true
    }
  4. Get insured information Request with userId = 1;
  5. Get insured information Response:

    {
      "id": 1,
      "email": "[email protected]",
      "firstName": "John",
      "lastName": "Smith",
      "address": [
        {
          "address1": "11 Birch Hill Street",
          "address2": "Apt. 123",
          "city": "Bronx",
          "postalCode": "10023",
          "state": "NY",
          "phone": "123-456-7890",
          "alias": "Home"
        }
      ],
      "preferences": {
        "paymentEmailsAllowed": false,
        "marketingEmailsAllowed": false,
        "paymentSMSAllowed": true //changed
      }
    }

Description

Turns text message notifications on (isAllowed: true) or off (isAllowed: false) for this insured. When off, the phone number of the insured gets no texts.

When on, a text is sent only if a phone number is on file and the number has been verified.


Did this page help you?