Credit Remaining

To get credit remaining you must send an empty post request to the following URL template.

http://trackservice.trackroad.com/rest/credit/key

You must login to get a key.

ABSTRACT SAMPLE

XML

To receive response in XML format you must specify content type text/xml or application/xml. For example:

...
httpWReq.Method = "POST";
httpWReq.ContentType = "text/xml; charset=utf-8";
httpWReq.ContentLength = data.Length;
...

XML request

Send empty POST request to get response.

XML response

<CreditResult xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Errors />
  <Status>None</Status>
  <Credit>10</Credit>
</CreditResult>

JSON

To receive response in JSON format you must specify content type text/json or application/json. For example:

...
httpWReq.Method = "POST";
httpWReq.ContentType = "text/json; charset=utf-8";
httpWReq.ContentLength = data.Length;
...

JSON request

Send empty POST request to get response.

JSON Response

{
   "Credit":10,
   "Errors":[

   ],
   "Status":0
}