Incoming invoices (AP)
Search documents
Retrieve incoming and outgoing invoices with filters.
| Property | Value |
|---|---|
| Endpoint | /invoice/search-documents |
| Method | POST |
| Authorization | Bearer {token} |
Request body
{
"companyId": "uuid",
"documentType": "INCOMING",
"status": "COMPLETED",
"startDate": "2025-01-01",
"endDate": "2025-04-30",
"type": "XRECHNUNG",
"page": 0,
"size": 20
}
| Field | Type | Required | Description |
|---|---|---|---|
companyId | UUID | Yes | Company ID |
documentType | String | No | INCOMING or OUTGOING |
status | String | No | PENDING, PROCESSING, COMPLETED, FAILED |
startDate | Date | No | Filter from |
endDate | Date | No | Filter to |
type | String | No | Invoice type filter |
page | Integer | No | Page (0-based) |
size | Integer | No | Page size (max 200) |
Get document content
| Property | Value |
|---|---|
| Endpoint | /invoice/get-document/:documentId/:documentTypes |
| Method | GET |
| Authorization | Bearer {token} |
Path parameters
| Parameter | Description |
|---|---|
documentId | Document UUID |
documentTypes | Comma-separated: XML, PDF, HTML (e.g. XML,PDF) |
Example
GET /invoice/get-document/550e8400-e29b-41d4-a716-446655440000/XML,PDF