Console
Create an order, then try the transitions in and out of order to see the 409s for yourself.
Current order
none yet
Log
All orders (shared — visible to every visitor, click one to resume it)
API reference
POST /api/scenarios/pipeline/orders
→ { order: { id, status: "pending" } } (201)
GET /api/scenarios/pipeline/orders/:id
→ current order state, or 404
POST /api/scenarios/pipeline/orders/:id/confirm-payment
pending → paid, or 409 if not currently pending
POST /api/scenarios/pipeline/orders/:id/ship
paid → shipped (adds a trackingNumber), or 409 if not currently paid
curl -X POST https://playground.krishanchawla.com/api/scenarios/pipeline/orders
curl -X POST https://playground.krishanchawla.com/api/scenarios/pipeline/orders/<id>/confirm-payment
curl -X POST https://playground.krishanchawla.com/api/scenarios/pipeline/orders/<id>/ship