Single Invoice Export
Endpoint
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
format | string | csv | Export format: csv or xlsx |
includeLineItems | boolean | true | Include line item details |
Example
Response
Returns the file as a download with appropriate headers:Bulk Export
Export multiple invoices at once.Endpoint
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
format | string | csv | Export format: csv or xlsx |
ids | string | - | Comma-separated invoice IDs |
supplier | string | - | Filter by supplier |
dateFrom | string | - | Invoice date range start |
dateTo | string | - | Invoice date range end |
Example
Export Formats
CSV Format
- One row per invoice (bulk) or per line item (single)
- UTF-8 encoded with BOM for Excel compatibility
- Comma-separated values
Excel Format (XLSX)
Single invoice:- Sheet 1: Invoice details
- Sheet 2: Line items
- Single sheet with one row per invoice
- No line items included
Exported Fields
| Field | CSV Column | Excel Column |
|---|---|---|
| Invoice Number | invoice_number | Invoice Number |
| Invoice Date | invoice_date | Invoice Date |
| Supplier Name | supplier_name | Supplier Name |
| Supplier VAT | supplier_vat | Supplier VAT |
| Net Amount | net_amount | Net Amount |
| VAT Amount | vat_amount | VAT Amount |
| Total Amount | total_amount | Total Amount |
| Currency | currency | Currency |
| VAT Status | vat_status | VAT Status |
Error Responses
| Status | Error | Description |
|---|---|---|
| 400 | No invoices found | No invoices match the criteria |
| 401 | Unauthorized | Invalid/missing auth token |