Facturen
Alle operaties rond Facturen.
Datamodel
De endpoints van deze module werken op de volgende entiteit. De schemareferentie toont elk veld met type, validatie en relaties:
| Entiteit | Schema-ID | Velden | Volgnummer | Permissions |
|---|---|---|---|---|
| Invoice | invoice |
51 | — | invoice_* |
Endpoints
| Methode | Pad | Operatie | Beschrijving |
|---|---|---|---|
POST |
/v1/invoices |
Create invoice | Create a new invoice in the active tenant. |
DELETE |
/v1/invoices/{id} |
Delete invoice | Soft delete entity. |
GET |
/v1/invoices/{id} |
Get invoice by id | Fetch a single invoice. |
GET |
/v1/invoices/check-weclapp |
GET /v1/invoices/check-weclapp | Check if weclapp is configured for invoice sync |
GET |
/v1/invoices/{id}/linked |
Get linked entities | CodeMeta OS API endpoint. |
GET |
/v1/invoices/{id}/pdf |
GET /v1/invoices/{id}/pdf | Generate a ZUGFeRD-compliant PDF for an invoice |
GET |
/v1/invoices/{id}/pdf-status |
GET /v1/invoices/{id}/pdf-status | Returns which PDF source would be served for this invoice without streaming the bytes. |
GET |
/v1/invoices/{id}/timeline |
Get timeline | CodeMeta OS API endpoint. |
GET |
/v1/invoices/{id}/transitions |
List transitions | CodeMeta OS API endpoint. |
GET |
/v1/invoices |
List invoices | List invoices for the active tenant. |
PATCH |
/v1/invoices/{id} |
Patch invoice | JSON Merge Patch update. |
POST |
/v1/invoices/bulk |
Bulk operation | CodeMeta OS API endpoint. |
POST |
/v1/invoices/{id}/credit |
POST /v1/invoices/{id}/credit | Create a credit note (Gutschrift) for an invoice |
POST |
/v1/invoices/datev-export |
POST /v1/invoices/datev-export | Build a DATEV EXTF v7.0 export ZIP for the given booking-date range. |
POST |
/v1/invoices/from-sales-order/{orderId} |
POST /v1/invoices/from-sales-order/{orderId} | Create an invoice from a sales order (all or selected items) |
POST |
/v1/invoices/generate |
POST /v1/invoices/generate | Generate an invoice from a performance record (Leistungsnachweis) |
POST |
/v1/invoices/generate-weclapp |
POST /v1/invoices/generate-weclapp | Create invoice via weclapp from a performance record, import PDF |
POST |
/v1/invoices/{id}/post |
POST /v1/invoices/{id}/post | Post (lock) an invoice. |
POST |
/v1/invoices/sync-from-weclapp |
POST /v1/invoices/sync-from-weclapp | Pull all (or modified-since-last-sync) salesInvoices from weclapp into the local invoices collection. |
POST |
/v1/invoices/{id}/transition |
POST /v1/invoices/{id}/transition | CodeMeta OS API endpoint. |
POST |
/v1/invoices/{id}/transitions/{transitionKey} |
Execute transition | CodeMeta OS API endpoint. |
PUT |
/v1/invoices/{id} |
Replace invoice | Full replace with optimistic locking. |