Update insured’s marketing email notifications
API Refs
URI Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| userId | number | insure id | yes |
Request body
| Name | Type | Description | Required |
|---|---|---|---|
| isAllowed | boolean | Enable or Disable notifications | yes |
Example
- Get insured information Request with userId = 1;
- 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 } } - Update insured’s marketing email notifications Request with userId = 1:
{ "isAllowed": true } - Get insured information Request with userId = 1;
- 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": true, // changed "paymentSMSAllowed": false } }
Description
Records whether the insured has opted in to marketing emails about new features (isAllowed: true) or not (isAllowed: false).
This setting does not control payment notification emails.
Updated 4 days ago
Did this page help you?