Purchase Orders
Todas las operaciones de Purchase Orders.
Modelo de datos
Los endpoints de este módulo trabajan sobre la siguiente entidad. La referencia del esquema enumera cada campo con tipo, validación y relaciones:
| Entidad | ID del esquema | Campos | Secuencia | Permisos |
|---|---|---|---|---|
| Purchase Order | purchase_order |
33 | — | purchase_order_* |
Endpoints
| Método | Ruta | Operación | Descripción |
|---|---|---|---|
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. |