Purchase Orders
Toutes les opérations relatives à Purchase Orders.
Modèle de données
Les endpoints de ce module portent sur l'entité suivante. La référence du schéma décrit chaque champ avec son type, sa validation et ses relations :
| Entité | ID du schéma | Champs | Séquence | Autorisations |
|---|---|---|---|---|
| Purchase Order | purchase_order |
33 | — | purchase_order_* |
Endpoints
| Méthode | Chemin | Opération | Description |
|---|---|---|---|
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. |