Overview
TheCreateOrderResponse model is returned when an order is successfully processed. It confirms the order details and indicates how many preparation tasks were created in the kitchen.
Fields
The table number for which the order was created. This matches the table number from the request.
The number of kitchen tasks that were created from this order. Each task represents work assigned to a specific kitchen station.
Tasks are automatically distributed to appropriate stations based on product types:
- DRINK products → BAR station
- HOT_DISH products → HOT_KITCHEN station
- COLD_DISH products → COLD_KITCHEN station
A success message confirming the order was processed. Typically returns
"Order processed successfully".Example
Usage Context
This response is returned with HTTP status201 Created when you successfully POST to the /api/orders endpoint.
Example Request/Response Flow
Request:Related Models
- CreateOrderRequest - Request model for creating orders
- TaskResponse - Details of individual tasks created