Description
Invoices represent supply documents (electricity, heat, fuels, waste, etc.). They can be created manually or uploaded with automatic scanning.Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /api/v1/invoices | List invoices |
| GET | /api/v1/invoices/{id} | Get invoice |
| POST | /api/v1/invoices | Create or update invoice |
| POST | /api/v1/invoices/upload-invoice | Upload and scan invoice |
| DELETE | /api/v1/invoices/{id} | Delete invoice |
| GET | /api/v1/invoices/dashboard | Invoice dashboard |
Invoice types
heat,fuel,electricity,generated-energyprocess-emissions,water,wastes,wastes-expenses,others,waste-water
Upload with scanning
POST /api/v1/invoices/upload-invoice lets you send a file and the AI extracts the data. Requires companyId and file in multipart/form-data.
Required fields (manual creation)
id,type,companyId,totalCost,currencystartDate,endDate- For
type=waste:wasteType,wasteDisposalMethod

