Purchase Orders
Alle operaties rond Purchase Orders.
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 |
|---|---|---|---|---|
| Purchase Order | purchase_order |
33 | — | purchase_order_* |
Endpoints
| Methode | Pad | Operatie | Beschrijving |
|---|---|---|---|
POST |
/v1/purchase_orders |
Create purchase_order | Create a new purchase_order in the active tenant. |
DELETE |
/v1/purchase_orders/{id} |
Delete purchase_order | Soft delete entity. |
GET |
/v1/purchase_orders/{id} |
Get purchase_order by id | Fetch a single purchase_order. |
GET |
/v1/purchase_orders/{id}/linked |
Get linked entities | CodeMeta OS API endpoint. |
GET |
/v1/purchase_orders/{id}/timeline |
Get timeline | CodeMeta OS API endpoint. |
GET |
/v1/purchase_orders/{id}/transitions |
List transitions | CodeMeta OS API endpoint. |
GET |
/v1/purchase_orders |
List purchase_orders | List purchase_orders for the active tenant. |
PATCH |
/v1/purchase_orders/{id} |
Patch purchase_order | JSON Merge Patch update. |
POST |
/v1/purchase_orders/bulk |
Bulk operation | CodeMeta OS API endpoint. |
POST |
/v1/purchase_orders/{id}/cancel |
POST /v1/purchase_orders/{id}/cancel | Bestellung stornieren. |
POST |
/v1/purchase_orders/{id}/confirm |
POST /v1/purchase_orders/{id}/confirm | Bestellung freigeben (DRAFT → ORDERED). |
POST |
/v1/purchase_orders/{id}/receive |
POST /v1/purchase_orders/{id}/receive | Wareneingang buchen (partiell oder vollständig). |
POST |
/v1/purchase_orders/{id}/transition |
POST /v1/purchase_orders/{id}/transition | CodeMeta OS API endpoint. |
POST |
/v1/purchase_orders/{id}/transitions/{transitionKey} |
Execute transition | CodeMeta OS API endpoint. |
PUT |
/v1/purchase_orders/{id} |
Replace purchase_order | Full replace with optimistic locking. |