example-data.com

food-orders / #8

userId
Selina Flatley @selina_flatley
restaurantId
D'Amore, Quitzon and Satterfield · Bruenberg · ★ 4.6
items
[
  {
    "menuItemId": 513,
    "quantity": 3,
    "unitPrice": 74.29,
    "lineTotal": 222.87
  },
  {
    "menuItemId": 511,
    "quantity": 4,
    "unitPrice": 75.99,
    "lineTotal": 303.96
  },
  {
    "menuItemId": 510,
    "quantity": 1,
    "unitPrice": 3.06,
    "lineTotal": 3.06
  }
]
subtotal
529.89
deliveryFee
6.53
tip
11.48
total
547.9
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/8"
)
food_order = res.json()
{
  "id": 8,
  "userId": 193,
  "restaurantId": 34,
  "items": [
    {
      "menuItemId": 513,
      "quantity": 3,
      "unitPrice": 74.29,
      "lineTotal": 222.87
    },
    {
      "menuItemId": 511,
      "quantity": 4,
      "unitPrice": 75.99,
      "lineTotal": 303.96
    },
    {
      "menuItemId": 510,
      "quantity": 1,
      "unitPrice": 3.06,
      "lineTotal": 3.06
    }
  ],
  "subtotal": 529.89,
  "deliveryFee": 6.53,
  "tip": 11.48,
  "total": 547.9,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2025-10-12T21:39:59.547Z",
  "deliveredAt": "2025-10-12T23:11:22.334Z"
}
Draftbit