Create Order
Creates a new order and automatically generates tasks for each kitchen station based on the products ordered.Request Body
The table number for the order. Cannot be null or empty.
List of products in the order. Each product must include name and type.
Response
The table number from the request
Number of tasks created for this order (one per station with products)
Success message: “Order processed successfully”
Example Request
Example Response
Error Responses
400 Bad Request - Missing Table Number:Get Order Status
Retrieves the current status of an order by its ID.Path Parameters
The unique identifier of the order
Response
The order ID from the request
Current status of the order. Possible values:
PENDING- Order tasks are waiting to startIN_PREPARATION- At least one task is being preparedCOMPLETED- All tasks are completed
Example Request
Example Response
Error Responses
404 Not Found:Order Processing Flow
When an order is created, the system:- Validates the table number and products list
- Groups products by their type (station assignment)
- Creates one task per station that has products
- Returns the number of tasks created
PENDING status and must be started by a kitchen station.
Product Types and Station Mapping
| Product Type | Station | Example Products |
|---|---|---|
DRINK | BAR | Coffee, Tea, Juice, Cocktails |
HOT_DISH | HOT_KITCHEN | Grilled items, Pasta, Steak |
COLD_DISH | COLD_KITCHEN | Salads, Desserts, Cold appetizers |