Approvisionnement
Transition order status (state machine).
Transition order status (state machine).
MUST V0 stock-achats-sec (2026-07-03) — audit RBAC 2026-06-23 :
« approbation >10k€ contournable via /transition ». Quand un PO est gaté
par le workflow d'approbation (PurchaseOrderApproval pending, R243), la
transition APPROVED/REJECTED :
- est DÉLÉGUÉE à po_approval_service.approve()/reject() si l'appelant a
`commandes:approve` (la décision est enregistrée — le bouton
« Approuver » du frontend passe par cette route) ;
- est refusée en 403 sinon (`commandes:write` ne suffit plus).
Defence-in-depth : `order_service.transition_status` porte le même
garde côté service (409) pour les appels qui ne passent pas par ici.
Permissions requises : commandes:write
post/api/v1/commandes/{order_id}/transition
Request
- Base URL: https://erp.eyeot.fr/api/v1
- URL: https://erp.eyeot.fr/api/v1/api/v1/commandes/{order_id}/transition
- Auth: one of:
- HTTP bearer
- HTTP bearer
Request body
Response
Succès — payload {data, meta} (cf. API-GUIDE §3.1)
Changes
No recorded changes to this operation across all 1 revision of this API.