example-data.com

food-orders / #162

userId
Maximus Bosco @maximus_bosco
restaurantId
Lehner - Smith · Larkinfurt · ★ 3.0
items
[
  {
    "menuItemId": 1354,
    "quantity": 4,
    "unitPrice": 44.06,
    "lineTotal": 176.24
  },
  {
    "menuItemId": 1352,
    "quantity": 2,
    "unitPrice": 70.62,
    "lineTotal": 141.24
  },
  {
    "menuItemId": 1347,
    "quantity": 2,
    "unitPrice": 59.9,
    "lineTotal": 119.8
  },
  {
    "menuItemId": 1353,
    "quantity": 1,
    "unitPrice": 5.73,
    "lineTotal": 5.73
  },
  {
    "menuItemId": 1361,
    "quantity": 3,
    "unitPrice": 61.25,
    "lineTotal": 183.75
  }
]
subtotal
626.76
deliveryFee
3.57
tip
2.94
total
633.27
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/food-orders/162" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/food-orders/162"
);
const foodOrder = await res.json();
import type { FoodOrder } from "https://example-data.com/types/food-orders.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/food-orders/162"
);
const foodOrder = (await res.json()) as FoodOrder;
import requests

res = requests.get(
    "https://example-data.com/api/v1/food-orders/162"
)
food_order = res.json()
{
  "id": 162,
  "userId": 128,
  "restaurantId": 93,
  "items": [
    {
      "menuItemId": 1354,
      "quantity": 4,
      "unitPrice": 44.06,
      "lineTotal": 176.24
    },
    {
      "menuItemId": 1352,
      "quantity": 2,
      "unitPrice": 70.62,
      "lineTotal": 141.24
    },
    {
      "menuItemId": 1347,
      "quantity": 2,
      "unitPrice": 59.9,
      "lineTotal": 119.8
    },
    {
      "menuItemId": 1353,
      "quantity": 1,
      "unitPrice": 5.73,
      "lineTotal": 5.73
    },
    {
      "menuItemId": 1361,
      "quantity": 3,
      "unitPrice": 61.25,
      "lineTotal": 183.75
    }
  ],
  "subtotal": 626.76,
  "deliveryFee": 3.57,
  "tip": 2.94,
  "total": 633.27,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-04-04T08:11:54.697Z",
  "deliveredAt": "2026-04-04T11:51:13.140Z"
}
Draftbit