POST
/orders/{orderId}/items
Add Order Item
Add a new item to an existing order. Only allowed while order is in Pending status.
Path Parameters
See schema: OrderIdPathParam
Request Body
Item to add
Content Types: application/json
Schema: AddOrderItemRequest
Responses
| Status | Description | Schema |
|---|---|---|
| 201 | Item added to order | OrderItem |
| 400 | Cannot modify order in current status | ErrorResponse |
| 404 | Order or product not found | ErrorResponse |
| 409 | Insufficient stock | ErrorResponse |