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
JSON
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" : "ano@nyme.com",
"phone_number" : "33612345678"
}
}
Result Format
JSON
{
"status": 1,
"message": "OK",
"notification": {
"alert_trigger": "500",
"alert_email": "1",
"alert_gsm": "1",
"email": "ano@nyme.com",
"phone_number": "33612345678"
}
}