{
"success": true,
"data": {
"orders": [
{
"id": "ORD-1705312200000-001",
"customerName": "John Doe",
"customerEmail": "john@example.com",
"status": "pending",
"items": [
{
"id": "item-1",
"orderId": "ORD-1705312200000-001",
"name": "Burger",
"quantity": 1,
"price": 8.99,
"subtotal": 8.99
}
],
"total": 12.98,
"receipt": {
"id": "receipt-1",
"orderId": "ORD-1705312200000-001",
"receiptNumber": "RCP-1705312260000-001",
"issuedAt": "2024-01-15T10:31:00.000Z",
"totalAmount": 12.98
},
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z"
}
],
"pagination": {
"total": 25,
"page": 1,
"limit": 10,
"offset": 0
}
},
"error": {
"code": "VALIDATION_ERROR",
"message": "Customer name is required",
"details": null
},
"meta": {
"total": 0,
"page": 0,
"limit": 0,
"offset": 0
}
}