📘
Name Type Description Required userId number insure id yes
Name Type Description Required isAllowed boolean Enable or Disable notifications yes
Get insured information Request with userId = 1;
Get insured information Response:
JSON
{
"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 payment email notifications Request with userId = 1:
Get insured information Request with userId = 1;
Get insured information Response:
JSON
{
"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": true, // changed
"marketingEmailsAllowed": false,
"paymentSMSAllowed": false
}
}
If you are not interested in email payment notifications, use this endpoint to disable this option.
True means turning on notifications, in turn, falls turns them off.