Browse Documentation
GET Get offer

List All Offers

GET /offers

Get a list of all offers

Request

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

Response

[{
    "id": "c298256b5ac286862db09c620bf2543d3ab77a1f",
    "organization_id": "daa71f0644647c0d82dd2d03d0b29779644b1a48",
    "document_number": "OFF-00001",
    "client_id": "fbdb54ca8cd91c4d62b7657fef883ec3c4c8456f",
    "template_id": "6510e39e71217f262c39b3525831f2a5405fc5e8",
    "total_amount": 350.9,
    "total_base_amount": 290,
    "total_tax_amount": 60.9,
    "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": "",
    "url":"https://app.accounteer.com/offer/view/c298256b5ac286862db09c620bf2543d3ab77a1f",
    "url_download":"https://app.accounteer.com/offer/download/c298256b5ac286862db09c620bf2543d3ab77a1f",
    "items": [{
        "id": "36d7534290610d9b7e9abed244dd2f28",
        "title": "item 01",
        "description": "",
        "quantity": "5.00",
        "item_base_amount": "58.00",
        "tax_id": "fd62ee6c1d65e4729da41f85cdd328dfc816d161",
        "tax_name": "VAT 21%",
        "tax_percentage": 21,
        "line_base_amount": 290,
        "line_tax_amount": 60.9,
        "line_total_amount": 350.9,
        "tax_included": false
    }]
    }, {
    "id": "88909796884c645532c4fb508bdc55f7da1e3f78",
    "organization_id": "daa71f0644647c0d82dd2d03d0b29779644b1a48",
    "document_number": "OFF-00002",
    "client_id": "263eddd893ac454c56a4ec1bd3e4eeb34d68c842",
    "template_id": "6510e39e71217f262c39b3525831f2a5405fc5e8",
    "total_amount": 1914,
    "total_base_amount": 1581.82,
    "total_tax_amount": 332.18,
    "currency": "EUR",
    "date_issued": "2017-07-15",
    "date_due": "2017-08-14",
    "date_created": "2017-07-15",
    "date_updated": "2017-07-17",
    "status": "approved",
    "reference": "",
    "url":"https://app.accounteer.com/offer/view/88909796884c645532c4fb508bdc55f7da1e3f78",
    "url_download":"https://app.accounteer.com/offer/download/88909796884c645532c4fb508bdc55f7da1e3f78",
    "items": [{
        "id": "cd63a3eec3319fd9c84c942a08316e00",
        "title": "item 01",
        "description": null,
        "quantity": "1.00",
        "item_base_amount": "200.00",
        "tax_id": "fd62ee6c1d65e4729da41f85cdd328dfc816d161",
        "tax_name": "VAT 21%",
         "tax_percentage": 21,
        "line_base_amount": 200,
        "line_tax_amount": 42,
        "line_total_amount": 242,
        "tax_included": false
    }, {
        "id": "8c3039bd5842dca3d944faab91447818",
        "title": "item 02",
        "description": null,
        "quantity": "3.00",
        "item_base_amount": "366.94",
        "tax_id": "fd62ee6c1d65e4729da41f85cdd328dfc816d161",
        "tax_name": "VAT 21%",
        "tax_percentage": 21,
        "line_base_amount": 1100.83,
        "line_tax_amount": 231.17,
        "line_total_amount": 1332,
        "tax_included": true
    }, {
        "id": "ff1418e8cc993fe8abcfe3ce2003e5c5",
        "title": "item 03",
        "description": "",
        "quantity": "5.00",
        "item_base_amount": "56.20",
        "tax_id": "fd62ee6c1d65e4729da41f85cdd328dfc816d161",
        "tax_name": "VAT 21%",
        "tax_percentage": 21,
        "line_base_amount": 280.99,
        "line_tax_amount": 59.01,
        "line_total_amount": 340,
        "tax_included": true
    }]
}]


Get Offer

GET /offers/:id

Get one specific offer

Request

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

Response

{
    "id": "c298256b5ac286862db09c620bf2543d3ab77a1f",
    "organization_id": "daa71f0644647c0d82dd2d03d0b29779644b1a48",
    "document_number": "OFF-00001",
    "client_id": "fbdb54ca8cd91c4d62b7657fef883ec3c4c8456f",
    "template_id": "6510e39e71217f262c39b3525831f2a5405fc5e8",
    "total_amount": 350.9,
    "total_base_amount": 290,
    "total_tax_amount": 60.9,
    "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": "",
    "url":"https://app.accounteer.com/offer/view/c298256b5ac286862db09c620bf2543d3ab77a1f",
    "url_download":"https://app.accounteer.com/offer/download/c298256b5ac286862db09c620bf2543d3ab77a1f",
    "items": [{
        "id": "36d7534290610d9b7e9abed244dd2f28",
        "title": "item 01",
        "description": "",
        "quantity": "5.00",
        "item_base_amount": "58.00",
        "tax_id": "fd62ee6c1d65e4729da41f85cdd328dfc816d161",
        "tax_name": "VAT 21%",
        "tax_percentage": 21,
        "line_base_amount": 290,
        "line_tax_amount": 60.9,
        "line_total_amount": 350.9,
        "include_tax": false
    }]
}