example-data.com

food-orders / #121

userId
Cassidy Boehm @cassidy_boehm22
restaurantId
Weimann, Herzog and Wisoky · Grahamberg · ★ 3.2
items
[
  {
    "menuItemId": 1282,
    "quantity": 4,
    "unitPrice": 13.28,
    "lineTotal": 53.12
  },
  {
    "menuItemId": 1284,
    "quantity": 2,
    "unitPrice": 66.71,
    "lineTotal": 133.42
  }
]
subtotal
186.54
deliveryFee
0.03
tip
4.93
total
191.5
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/121"
)
food_order = res.json()
{
  "id": 121,
  "userId": 204,
  "restaurantId": 89,
  "items": [
    {
      "menuItemId": 1282,
      "quantity": 4,
      "unitPrice": 13.28,
      "lineTotal": 53.12
    },
    {
      "menuItemId": 1284,
      "quantity": 2,
      "unitPrice": 66.71,
      "lineTotal": 133.42
    }
  ],
  "subtotal": 186.54,
  "deliveryFee": 0.03,
  "tip": 4.93,
  "total": 191.5,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2025-01-29T13:50:55.517Z",
  "deliveredAt": "2025-01-29T17:42:02.486Z"
}
Draftbit