Retrieve a sub-account

This method allows you to retrieve a specific sub-account

GET

/sub-accounts/:id

Query Parameters

id
required
The sub-account id

Examples


GET /sub-accounts/1010101 HTTP/1.1
Host: api.smsup.ch
Accept: application/json
Authorization: Bearer your.token
      
    

Result Format


{
    "status": 1,
    "message": "OK",
    "sub-account": {
        "client_id": "1010101",
        "email": "S@ch.fr",
        "firstname": "Yoh",
        "lastname": "Asakura",
        "city": "Izumo",
        "phone": "41781234567",
        "address1": "Somewhere",
        "address2": "Elsewere",
        "zip": "36520",
        "country": "",
        "country_code": "FR",
        "lang": "FR",
        "credits": "0",
        "unlimited": "1",
        "description": "Shaman King Company",
        "senderid": "",
        "status": "1",
        "time_zone": "Europe/Paris",
        "current_month_consumption": 556,
        "previous_month_consumption": 1203
    }
}
          
        

<?xml version="1.0" encoding="UTF-8"?>
<response>
    <status>1</status>
    <message>OK</message>
    <sub-account>
      <client_id>1010101</client_id>
      <email>S@ch.fr</email>
      <firstname>Yoh</firstname>
      <lastname>Asakura</lastname>
      <city>Izumo</city>
      <phone>41781234567</phone>
      <address1>null</address1>
      <address2>null</address2>
      <zip>null</zip>
      <country></country>
      <lang>FR</lang>
      <credits>0</credits>
      <unlimited>1</unlimited>
      <description>Shaman King Company</description>
      <senderid></senderid>
      <status>1</status>
    </sub-account>
</response>