Browse Documentation
GET Get invoice

List All Invoices

GET /invoices

Get a list of all invoices

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer token" \
-XGET \
https://dev.accounteer.com/api/v0.1/invoices/

Response

After sending the above request, a JSON response will be returned like below if authorizer has created one or more invoices.

[{
    "id": "b2871c53d407f93b49a575cdd30fc896a2d3c595",
    "organization_id": "daa71f0644647c0d82dd2d03d0b29779644b1a48",
    "document_number": "INV-00001",
    "client_id": "1615c6926a25a72b31ee320d0889e82f6395511c",
    "template_id": "6510e39e71217f262c39b3525831f2a5405fc5e8",
    "total_amount": 2210,
    "total_base_amount": 1826.45,
    "total_tax_amount": 383.55,
    "amount_due": 0,
    "currency": "EUR",
    "date_issued": "2017-07-14",
    "date_due": "2017-08-13",
    "date_created": "2017-07-14",
    "date_updated": "2017-07-14",
    "status": "approved",
    "reference": null,
    "url":"https://app.accounteer.com/invoice/view/b2871c53d407f93b49a575cdd30fc896a2d3c595",
    "url_download":"https://app.accounteer.com/invoice/download/b2871c53d407f93b49a575cdd30fc896a2d3c595",
    "items": [{
        "id": "94e4451ad23909020c28b26ca3a13cb8",
        "title": "gggg",
        "description": null,
        "quantity": 4,
        "item_base_amount": 206.61,
        "tax_id": "fd62ee6c1d65e4729da41f85cdd328dfc816d161",
        "tax_name": "VAT 21%",
        "tax_percentage": 21,
        "line_base_amount": 826.45,
        "line_tax_amount": 173.55,
        "line_total_amount": 1000,
        "tax_included": true,
        "price": 250,
        "gl_account": {
            "id": "c31dc0341fb9b1038b3a28f5db013415085f0258",
            "code": "700000",
            "title": "Sales",
            "description": null
        }
    }, {
        "id": "8698ff92115213ab187d31d4ee5da8ea",
        "title": "item",
        "description": null,
        "quantity": 2,
        "item_base_amount": 500,
        "tax_id": "fd62ee6c1d65e4729da41f85cdd328dfc816d161",
        "tax_name": "VAT 21%",
        "tax_percentage": 21,
        "line_base_amount": 1000,
        "line_tax_amount": 210,
        "line_total_amount": 1210,
        "tax_included": false,
        "price": 500,
        "gl_account": {
            "id": "ca6b847bb76355c0d31a615dd04741dd2cf2d596",
            "code": "499000",
            "title": "Suspense account",
            "description": null
         }
    }],
    "attachments": [{
        "id": "ebc7d9dd3ca80eceadb524e6e2d978bc31b53340",
        "file_url": "https://f.accounteer.com/ebc7d9dd3ca80eceadb524e6e2d978bc31b53340/daa71f0644647c0d82dd2d03d0b29779644b1a48/Receipt.pdf",
        "file_name": "Receipt.pdf",
        "file_size": 15253,
        "file_type": "application/pdf",
        "date_created": "2017-07-25"
    }]
    }, {
    "id": "25230e4579efd7942370528a88fd0d5459a139a5",
    "organization_id": "daa71f0644647c0d82dd2d03d0b29779644b1a48",
    "document_number": "INV-00002",
    "client_id": "fbdb54ca8cd91c4d62b7657fef883ec3c4c8456f",
    "template_id": "6510e39e71217f262c39b3525831f2a5405fc5e8",
    "total_amount": 140.36,
    "total_base_amount": 116,
    "total_tax_amount": 24.36,
    "amount_due": 0,
    "currency": "EUR",
    "date_issued": "2017-07-14",
    "date_due": "2017-08-13",
    "date_created": "2017-07-14",
    "date_updated": "2017-07-14",
    "status": "approved",
    "reference": null,
    "url":"https://app.accounteer.com/invoice/view/25230e4579efd7942370528a88fd0d5459a139a5",
    "url_download":"https://app.accounteer.com/invoice/download/25230e4579efd7942370528a88fd0d5459a139a5",
    "items": [{
       "id": "7dd0240cd412efde8bc165e864d3644f",
       "title": "fff",
        "description": null,
        "quantity": 58,
        "item_base_amount": 2,
        "tax_id": "fd62ee6c1d65e4729da41f85cdd328dfc816d161",
        "tax_name": "VAT 21%",
        "tax_percentage": 21,
        "line_base_amount": 116,
        "line_tax_amount": 24.36,
        "line_total_amount": 140.36,
        "tax_included": false,
        "price": 2,
        "gl_account": {
            "id": "c31dc0341fb9b1038b3a28f5db013415085f0258",
            "code": "700000",
            "title": "Sales",
            "description": null
        }
    }],
    "attachments": []
}]


Get Invoice

GET /invoices/:id

Get the details of one specific invoice

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer token" \
-XGET \
https://dev.accounteer.com/api/v0.1/invoices/b2871c53d407f93b49a575cdd30fc896a2d3c595

Response

{
    "id": "b2871c53d407f93b49a575cdd30fc896a2d3c595",
    "organization_id": "daa71f0644647c0d82dd2d03d0b29779644b1a48",
    "document_number": "INV-00001",
    "client_id": "1615c6926a25a72b31ee320d0889e82f6395511c",
    "template_id": "6510e39e71217f262c39b3525831f2a5405fc5e8",
    "total_amount": 2210,
    "total_base_amount": 1826.45,
    "total_tax_amount": 383.55,
    "amount_due": 0,
    "currency": "EUR",
    "date_issued": "2017-07-14",
    "date_due": "2017-08-13",
    "date_created": "2017-07-14",
    "date_updated": "2017-07-14",
    "status": "approved",
    "reference": null,
    "url":"https://app.accounteer.com/invoice/view/b2871c53d407f93b49a575cdd30fc896a2d3c595",
    "url_download":"https://app.accounteer.com/invoice/download/b2871c53d407f93b49a575cdd30fc896a2d3c595",
    "items": [{
        "id": "94e4451ad23909020c28b26ca3a13cb8",
        "title": "gggg",
        "description": null,
        "quantity": 4,
        "item_base_amount": 206.61,
        "tax_id": "fd62ee6c1d65e4729da41f85cdd328dfc816d161",
        "tax_name": "VAT 21%",
        "tax_percentage": 21,
        "line_base_amount": 826.45,
        "line_tax_amount": 173.55,
        "line_total_amount": 1000,
        "tax_included": true,
        "price": 250,
        "gl_account": {
            "id": "c31dc0341fb9b1038b3a28f5db013415085f0258",
            "code": "700000",
            "title": "Sales",
            "description": null
        }
    }, {
        "id": "8698ff92115213ab187d31d4ee5da8ea",
        "title": "item",
        "description": null,
        "quantity": 2,
        "item_base_amount": 500,
        "tax_id": "fd62ee6c1d65e4729da41f85cdd328dfc816d161",
        "tax_name": "VAT 21%",
        "tax_percentage": 21,
        "line_base_amount": 1000,
        "line_tax_amount": 210,
        "line_total_amount": 1210,
        "tax_included": false,
        "price": 500,
        "gl_account": {
            "id": "ca6b847bb76355c0d31a615dd04741dd2cf2d596",
            "code": "499000",
            "title": "Suspense account",
            "description": null
         }
    }],
    "attachments": [{
        "id": "ebc7d9dd3ca80eceadb524e6e2d978bc31b53340",
        "file_url": "https://f.accounteer.com/ebc7d9dd3ca80eceadb524e6e2d978bc31b53340/daa71f0644647c0d82dd2d03d0b29779644b1a48/Receipt.pdf",
        "file_name": "Receipt.pdf",
        "file_size": 15253,
        "file_type": "application/pdf",
        "date_created": "2017-07-25"
    }]
    }

If the invoice id passed as a parameter is invalid the user get the below response

{
  "status": 404,
  "error": "Invoice not found"
}