{
"success": true,
"message": "Active Orders retrieved successfully",
"data": {
"current_page": 1,
"data": [
{
"id": 11,
"order_number": "ORD-20250908-000001",
"customer_id": 5,
"restaurant_id": 1,
"restaurant_location_id": 1,
"delivery_address": {
"id": 2,
"customer_id": 5,
"label": "Home Updated",
"first_name": "Ahsan",
"last_name": "Flames",
"phone": "+921234567891",
"address": "B-123 Block J North",
"city": "Karachi",
"state": "Sindh",
"zip": "74600",
"country": "Pakistan",
"lat": "40.7614",
"lng": "-73.9776",
"deleted_at": null,
"created_at": "2025-08-29T11:21:22.000000Z",
"updated_at": "2025-08-29T15:00:22.000000Z",
"formatted_address": "B-123 Block J North, Karachi, Sindh 74600, Pakistan"
},
"subtotal": "31.49",
"tax_amount": "2.52",
"delivery_fee": "5.99",
"service_fee": "0.63",
"discount_amount": "0.00",
"total_amount": "40.63",
"coupon_id": null,
"coupon_code": null,
"coupon_discount": "0.00",
"payment_method": "card",
"payment_status": "unpaid",
"payment_intent_id": "pi_mock_11_1757352459",
"status": "confirmed",
"estimated_delivery_time": "2025-09-10T21:39:13.000000Z",
"confirmed_at": "2025-09-10T21:24:13.000000Z",
"rejected_at": null,
"delivered_at": null,
"cancelled_at": null,
"customer_notes": null,
"restaurant_notes": null,
"delivery_tracking_id": null,
"created_at": "2025-09-08T17:27:39.000000Z",
"updated_at": "2025-09-10T21:24:13.000000Z",
"deleted_at": null,
"customer": {
"id": 5,
"name": "Ahsan",
"email": "Ahsan.flamesware@gmail.com",
"email_verified_at": null,
"avatar": "https://ui-avatars.com/api?name=Ahsan&background=random&size=512",
"phone": "+923132352184",
"phone_verified_at": null,
"forget_password_otp": "0",
"created_at": "2025-08-29T08:52:25.000000Z",
"updated_at": "2025-09-10T20:14:55.000000Z"
},
"items": [
{
"id": 22,
"order_id": 11,
"item_type": "product",
"product_id": 2,
"product_name": "Pepperoni Supreme",
"product_price": "19.99",
"deal_id": null,
"deal_name": null,
"deal_price": null,
"quantity": 1,
"unit_price": "31.49",
"total_price": "31.49",
"selected_variant": {
"id": 5,
"name": "Large (14\")",
"price": "8.00"
},
"selected_addons": [
{
"id": 4,
"name": "Extra Pepperoni",
"price": "3.50"
}
],
"special_instructions": null,
"created_at": "2025-09-08T17:27:39.000000Z",
"updated_at": "2025-09-08T17:27:39.000000Z",
"product": {
"id": 2,
"restaurant_id": 1,
"category_id": 2,
"title": "Pepperoni Supreme",
"slug": "pepperoni-supreme",
"description": "Loaded with pepperoni, mushrooms, and green peppers",
"price": "22.99",
"discount_price": "19.99",
"ingredients": [
"Pizza dough",
"Tomato sauce",
"Mozzarella cheese",
"Pepperoni",
"Mushrooms",
"Green peppers"
],
"image": "https://fullers.flamesware.com/default_images/product.png",
"gallery": [
"1757340974.9188.jfif"
],
"is_vegetarian": false,
"is_vegan": false,
"is_gluten_free": false,
"preparation_time": 30,
"is_available": true,
"is_featured": false,
"sort_order": 2,
"average_rating": "0.00",
"total_reviews": 0,
"total_orders": 0,
"deleted_at": null,
"created_at": "2025-08-29T14:36:20.000000Z",
"updated_at": "2025-09-08T14:16:14.000000Z"
},
"deal": null
}
]
},
{
"id": 9,
"order_number": "ORD-202509-000009",
"customer_id": 3,
"restaurant_id": 1,
"restaurant_location_id": 1,
"delivery_address": {
"address": "3920 Arlo Walks Apt. 490",
"city": "Okeyton",
"state": "Alaska",
"zip": "38415"
},
"subtotal": "52.24",
"tax_amount": "3.66",
"delivery_fee": "6.77",
"service_fee": "4.35",
"discount_amount": "0.00",
"total_amount": "67.02",
"coupon_id": null,
"coupon_code": null,
"coupon_discount": "0.00",
"payment_method": "card",
"payment_status": "unpaid",
"payment_intent_id": null,
"status": "confirmed",
"estimated_delivery_time": null,
"confirmed_at": "2025-09-01T14:57:20.000000Z",
"rejected_at": null,
"delivered_at": null,
"cancelled_at": null,
"customer_notes": null,
"restaurant_notes": null,
"delivery_tracking_id": null,
"created_at": "2025-09-01T14:57:20.000000Z",
"updated_at": "2025-09-01T14:57:20.000000Z",
"deleted_at": null,
"customer": {
"id": 3,
"name": "Syed Azlan Ali",
"email": "azlanali076@gmail.com",
"email_verified_at": null,
"avatar": "https://ui-avatars.com/api?name=Syed Azlan Ali&background=random&size=512",
"phone": "+14295600479",
"phone_verified_at": "2025-08-27 17:12:48",
"forget_password_otp": "0",
"created_at": "2025-08-26T16:23:26.000000Z",
"updated_at": "2025-09-09T14:03:05.000000Z"
},
"items": [
{
"id": 20,
"order_id": 9,
"item_type": "product",
"product_id": 3,
"product_name": "Sample Product 3",
"product_price": "5.43",
"deal_id": null,
"deal_name": null,
"deal_price": null,
"quantity": 3,
"unit_price": "5.43",
"total_price": "16.29",
"selected_variant": null,
"selected_addons": [],
"special_instructions": null,
"created_at": "2025-09-01T14:57:20.000000Z",
"updated_at": "2025-09-01T14:57:20.000000Z",
"product": {
"id": 3,
"restaurant_id": 1,
"category_id": 4,
"title": "Garlic Bread",
"slug": "garlic-bread",
"description": "Fresh baked bread with garlic butter and herbs",
"price": "7.99",
"discount_price": null,
"ingredients": [
"Fresh bread",
"Garlic",
"Butter",
"Parsley",
"Parmesan cheese"
],
"image": "https://fullers.flamesware.com/default_images/product.png",
"gallery": [
"1757341037.8968.jpg"
],
"is_vegetarian": true,
"is_vegan": false,
"is_gluten_free": false,
"preparation_time": 12,
"is_available": true,
"is_featured": false,
"sort_order": 1,
"average_rating": "0.00",
"total_reviews": 0,
"total_orders": 0,
"deleted_at": null,
"created_at": "2025-08-29T14:36:20.000000Z",
"updated_at": "2025-09-08T14:17:17.000000Z"
},
"deal": null
}
]
}
],
"first_page_url": "https://fullers.flamesware.com/api/v1/restaurant/orders/active?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "https://fullers.flamesware.com/api/v1/restaurant/orders/active?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https://fullers.flamesware.com/api/v1/restaurant/orders/active?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "https://fullers.flamesware.com/api/v1/restaurant/orders/active",
"per_page": 20,
"prev_page_url": null,
"to": 2,
"total": 2
}
}