{
"success": true,
"message": "Order details retrieved successfully",
"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
}
],
"coupon": null,
"restaurant_location": {
"id": 1,
"restaurant_id": 1,
"name": "Downtown Branch",
"full_address": "123 Main Street, Downtown, New York, NY 10001",
"lat": "40.7831",
"lng": "-73.9712",
"phone": "+1234567891",
"deleted_at": null,
"created_at": "2025-08-29T14:36:09.000000Z",
"updated_at": "2025-08-29T14:36:09.000000Z"
}
}
}