SMS Api

<back to all web services

GetBalance

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /xml/syncreply/GetBalance HTTP/1.1 
Host: barabut.com 
Content-Type: application/xml
Content-Length: length

<GetBalance xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="SmsApi">
  <Credential>
    <Password>String</Password>
    <Username>String</Username>
  </Credential>
</GetBalance>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetBalanceResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="SmsApi">
  <Response>
    <Balance>
      <Limit>0</Limit>
      <Main>0</Main>
    </Balance>
    <Status>
      <Code>0</Code>
      <Description>String</Description>
    </Status>
  </Response>
</GetBalanceResponse>