Lists

The list object is a collection of invoices.


GET /invoices/

Responds with a list of invoices, like usual we provide next, prev, count and the results.

Possible url parameters are:

  • page: <int>

Example:

{
    "count": 10,
    "next": null,
    "previous": null,
    "results": [
        {
            "id": 29,
            "url": "http://api.getanewsletter.com/v3/invoices/29/",
            "invoice_number": 1,
            "due_date": "2014-06-20T10:57:29Z",
            "total_amount": "1185.00",
            "download_url": "http://api.getanewsletter.com/v3/invoices/29/download/",
            "payment": "Not Paid",
            "note": null,
            "balance": "1185.00",
            "currency": "SEK"
        },
        ...
    ]
}

GET /invoices/<id>/

Responds with an invoice.

Example:

GET  '/invoices/29/
{
    "id": 29,
    "url": "http://api.getanewsletter.com/v3/invoices/29/",
    "invoice_number": 1,
    "due_date": "2014-06-20T10:57:29Z",
    "total_amount": "1185.00",
    "download_url": "http://api.getanewsletter.com/v3/invoices/29/download/",
    "payment": "Not Paid",
    "note": null,
    "balance": "1185.00",
    "currency": "SEK"
}