Invoice lines (Factuurregels) ============================== Current version: 1.0.0 Read ---- .. http:get:: /api2/factuurregels Get a list of invoice lines for a specified date range **Example request**: .. sourcecode:: http GET /api2/factuurregels?begin=2014-09-23&eind=2014-09-24 HTTP/1.1 Host: demo.recras.nl Accept: application/json **Example response**: .. sourcecode:: http HTTP/1.1 200 OK Content-Type: application/json [ { "id": 46, "factuur_id": 123, // (invoice_id) "naam": "Klimmen en barbecue", // (name) "kortingomschrijving": "", // (discount_description) "aantal": 15, // (quantity) "bedrag": 25.50, // (amount) "btw_percentage": 6, // (vat_percentage) "product_id": 2, "boekingsregel_id": 134, // (booking_line_id) "kortingsfactor": 1.0, // (discount_factor) "totaal_inc_btw": 382.50, // (total_including_vat) "totaal_exc_btw": 360.85, // (total_excluding_vat) "Factuur": { // (Invoice) "id": 123, "klant_id": 47, // (customer_id) "datum": "2014-09-23", // (date) "status": "verzonden", // (status) "factuur_nummer": "2014-123", // (invoice_number) "bedrijf_id": 1 // (company_id) } } ] :query ISO8601-date begin: **Required** Start date for the date range filter :query ISO8601-date eind: **Required** End date for the date range filter (`eind` means end) :query string referentiedatum: **Optional**, *default* ``factuur`` (invoice). The reference date for filtering, possible values are ``factuur`` (invoice date, default) or ``booking`` (booking date) (`referentiedatum` means reference_date) :query int product_id: **Optional** Filter by product ID. Use ``0`` to filter for lines with no product (``product_id = null``). Multiple values are possible with a comma-separated list (e.g., ``0,1`` for null or product ID 1) :query float btw_percentage: **Optional** Filter by VAT percentage (`btw_percentage`). Multiple values are possible with a comma-separated list (e.g., ``6,21``) :query int Factuur.bedrijf_id: **Optional** Filter by company ID (`bedrijf_id`) of the invoice. Multiple values are possible with a comma-separated list. Empty value returns lines from all companies :query string Factuur.context: **Optional** Filter by invoice context. Possible values are ``invoice``, ``online_booking``, ``pos`` :query string embed: **Optional** Embed linked resources. Possible values: ``Product``, ``Boeking`` (Booking) :reqheader Authorization: mandatory Basic authentication :statuscode 200: no error :statuscode 406: Missing required parameters (begin and eind) Changelog --------- 1.0.0 - Initial version