latestSwagger 2.02026-08-101561322.2 MB

3e4029d19684

User Settings

Update balance notification settings

<a class="try-sandbox-link" href="https://sandbox.textmagic.com/#/undefined/updateBalanceNotificationSettings" target="_blank">Try in sandbox</a><br>

put/api/v2/user/notification/balance

Request body

lowBalanceNotificationboolean

Should user receive low balance notification.

alertBalancestring required

If balance is below this value, user receive low balance notification.

alertPhonestring

Low balance notification phone number.

alertEmail1string

Low balance notification email 1.

alertEmail2string

Low balance notification email 2.

alertEmail3string

Low balance notification email 3.

Example request

{
  "lowBalanceNotification": true,
  "alertBalance": "50",
  "alertPhone": "15417543010",
  "alertEmail1": "test@test.com",
  "alertEmail2": "test@test.com",
  "alertEmail3": "test@test.com"
}

Response

Request executed with success