Update balance notification settings
This method allows you to update your notification configuration.
PUT
/notification/balance
Body Parameters
alert_trigger
required
|
The trigger that when reached sends notifications. |
alert_email | Activate or deactivate option for email(1 for true and 0 for false ) |
alert_gsm | Activate or deactivate option for gsm(1 for true and 0 for false ) |
Email you want receive notification with | |
phone_number | Number you want receive notification with |
Examples
PUT /notification/balance HTTP/1.1
Host: api.smsfactor.com
Authorization: Bearer your.token
Accept: application/json
{
"notification":{
"alert_trigger" : "500",
"alert_email": "1",
"alert_gsm": "1",
"email" : "[email protected]",
"phone_number" : "33612345678"
}
}
PUT /notification/balance HTTP/1.1
Host: api.smsfactor.com
Authorization: Bearer your.token
Accept: application/xml
<?xml version="1.0" encoding="UTF-8"?>
<notification>
<alert_trigger>500</alert_trigger>
<alert_email>1</alert_email>
<alert_gsm>1</alert_gsm>
<email>[email protected]</email>
<phone_number>33612345678</phone_number>
</notification>
Result Format
{
"status": 1,
"message": "OK",
"notification": {
"alert_trigger": "500",
"alert_email": "1",
"alert_gsm": "1",
"email": "[email protected]",
"phone_number": "33612345678"
}
}
<?xml version="1.0" encoding="UTF-8"?>
<response>
<status>1</status>
<message>OK</message>
<notification>
<alert_trigger>500</alert_trigger>
<alert_email>1</alert_email>
<alert_gsm>1</alert_gsm>
<email>[email protected]</email>
<phone_number>33612345678</phone_number>
</notification>