invoices.get
Returns a specific invoice.
You call this method by submitting a HTTP GET request to the following URL :
https://:screen-name.invoicexpress.net/invoices/:invoice-id.xml
Parameters
Parameters are the data you will pass with the call.
api_key
Your secret identifier. You find your API Key under Account Overview in the Account section.
Rules: Required
invoice-id
Requested invoice id.
Rules: Required
Return Values
Success
The requested invoice is passed back in the response.
<?xml version="1.0" encoding="UTF-8"?> <invoice> <id>55</id> <status>draft</status> <sequence_number>draft</sequence_number> <date>19/10/2009</date> <due_date>19/10/2009</due_date> <reference>123456</reference> <observations>Computer Processed</observations> <retention>5.0</retention> <client> <name>Bruce Norris</name> <email>foo@bar.com</email> <address>Badgad</address> <postal_code>120213920139</postal_code> <country>Germany</country> <fiscal_id>12</fiscal_id> <website>www.brucenorris.com</website> <phone>2313423424</phone> <fax>2313423425</fax> <observations>Computer Processed</observations> </client> <currency>Euro</currency> <items type="array"> <item> <id>19</id> <name>Product 1</name> <description>Cleaning product</description> <unit_price>10.0</unit_price> <quantity>1.0</quantity> <unit>unit</unit> <tax> <name></name> <value>0.0</value> </tax> <discount>10.0</discount> </item> <item> <id>20</id> <name>Product 2</name> <description>Product for beauty</description> <unit_price>5.0</unit_price> <quantity>1.0</quantity> <unit>unit</unit> <tax> <id>19</id> <name>IVA20</name> <value>20.0</value> </tax> <discount>0.0</discount> </item> </items> <sum>15.0</sum> <discount>1.0</discount> <before_taxes>14.0</before_taxes> <taxes>1.0</taxes> <total>14.3</total> </invoice>
Error
HTTP: 401 Access denied
The API Key parameter is missing or incorrect.
The API Key parameter is missing or incorrect.
HTTP: 404 Not Found
No invoices matches the supplied :invoice-id.
No invoices matches the supplied :invoice-id.
