Saf-t PT Suportado

InvoiceXpress API

top-clients.get

Returns your 5 top clients for which you have invoiced more.

You call this method by submitting a HTTP GET request to the following URL :

https://screen-name.invoicexpress.net/api/charts/top-clients.xml

Parameters

Parameters are the data you pass with the call.

api_key

Your secret identifier. Instructions here on how to obtain the API KEY
Rules: Required

Return Values

This is the result that is passed back to you.

Success

<?xml version="1.0" encoding="UTF-8"?>
<top-clients>
  <currency>&#8364;</currency>
  <client>
    <id>1</id>
    <name>Chuck Norris</name>
    <balance>220321.30</balance>
    <fiscal_id>100200300</fiscal_id>
  </client>
  <client>
    <id>2</id>
    <name>Bruce</name>
    <balance>5000.00</balance>
    <fiscal_id>00100100</fiscal_id>
  </client>
  <client>
    <id>3</id>
    <name>Ni Hao</name>
    <balance>4050.00</balance>
    <fiscal_id>123456</fiscal_id>
  </client>
  <client>
    <id>4</id>
    <name>Chewbacca</name>
    <balance>1000.00</balance>
    <fiscal_id>1234</fiscal_id>
  </client>
  <client>
    <id>5</id>
    <name>Appllex</name>
    <balance>660.00</balance>
    <fiscal_id>100200300</fiscal_id>
  </client>
  <client>
    <name>Others</name>
    <balance>1175</balance>
  </client>
</top-clients>

Error

HTTP: 401 Access denied
The API Key parameter is missing or incorrect.