The API can be used to fetch an accounts invoices. After getting an authentication token you will be able to use the requests below to fetch a list of all invoices or to get a specific invoice.


Sample Requests
  • GET - Fetch account invoices:

In order to retrieve all the invoices for an account use the request below. This will return a basic summary of invoices.

curl -v -X GET -H "X-Auth-Token: {AUTH_TOKEN}" http://server:8000/v1/accounts/{ACCOUNT_ID}/invoices
  • GET - Fetch an invoice:

To get the details for a specific invoice use the request below. Substitute INVOICE_ID for the specific invoice you are interested in. This will return all the lines of the specified invoice.

curl -v -X GET -H "X-Auth-Token: {AUTH_TOKEN}" http://server:8000/v1/accounts/{ACCOUNT_ID}/invoices/{INVOICE_ID}