Get credits

This method allows you to get your credits amount.

GET

/credits

Examples


GET /credits HTTP/1.1
Host: api.smsfactor.com
Accept: application/json
Authorization: Bearer your.token
      
    

Result Format


{
    "status": 1,
    "message": "OK"
    "credits": "44690",
    "postpaid": "0",
    "postpaid_limit": false,
    "unlimited": false,         //if subaccount
}
          
        

<?xml version="1.0" encoding="UTF-8"?>
<response>
    <credits>44690</credits>
    <message>OK</message>
    <status>1</status>
    <postpaid>0</postpaid>
    <postpaid_limit>false</postpaid_limit>
    <unlimited>false</unlimited>
</response>