example-data.com

food-orders / #234

userId
Hermina West @hermina.west3
restaurantId
Goldner - Labadie · Kylechester · ★ 3.3
items
[
  {
    "menuItemId": 980,
    "quantity": 3,
    "unitPrice": 41.86,
    "lineTotal": 125.58
  },
  {
    "menuItemId": 988,
    "quantity": 1,
    "unitPrice": 15.45,
    "lineTotal": 15.45
  },
  {
    "menuItemId": 982,
    "quantity": 3,
    "unitPrice": 11.06,
    "lineTotal": 33.18
  },
  {
    "menuItemId": 983,
    "quantity": 3,
    "unitPrice": 20.92,
    "lineTotal": 62.76
  }
]
subtotal
236.97
deliveryFee
4.46
tip
6.85
total
248.28
currency
USD
status
preparing
placedAt
deliveredAt

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/food-orders/234" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/food-orders/234"
);
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/234"
);
const foodOrder = (await res.json()) as FoodOrder;
import requests

res = requests.get(
    "https://example-data.com/api/v1/food-orders/234"
)
food_order = res.json()
{
  "id": 234,
  "userId": 51,
  "restaurantId": 65,
  "items": [
    {
      "menuItemId": 980,
      "quantity": 3,
      "unitPrice": 41.86,
      "lineTotal": 125.58
    },
    {
      "menuItemId": 988,
      "quantity": 1,
      "unitPrice": 15.45,
      "lineTotal": 15.45
    },
    {
      "menuItemId": 982,
      "quantity": 3,
      "unitPrice": 11.06,
      "lineTotal": 33.18
    },
    {
      "menuItemId": 983,
      "quantity": 3,
      "unitPrice": 20.92,
      "lineTotal": 62.76
    }
  ],
  "subtotal": 236.97,
  "deliveryFee": 4.46,
  "tip": 6.85,
  "total": 248.28,
  "currency": "USD",
  "status": "preparing",
  "placedAt": "2025-03-21T12:06:32.112Z",
  "deliveredAt": null
}
Draftbit