Update balance notification settings

PUT

/notification/balance

Body Parameters

alert_trigger 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 Email you want receive notification with
phone_number Number you want receive notification with

Examples


PUT /notification/balance HTTP/1.1
Host: api.smsup.ch
Authorization: Bearer your.token
Accept: application/json

{
  "notification":{
  "alert_trigger" : "500",
    "alert_email": "1",
    "alert_gsm": "1",
    "email" : "ano@nyme.com",
    "phone_number" : "41781234567"
  }
}
          
        

PUT /notification/balance HTTP/1.1
Host: api.smsup.ch
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>ano@nyme.com</email>
    <phone_number>41781234567</phone_number>
  </notification>
        
      

Result Format


{
  "status": 1,
  "message": "OK",
  "notification": {
      "alert_trigger": "500",
      "alert_email": "1",
      "alert_gsm": "1",
      "email": "ano@nyme.com",
      "phone_number": "41781234567"
  }
}
          
        

<?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>ano@nyme.com</email>
    <phone_number>41781234567</phone_number>
  </notification>