example-data.com

food-orders / #240

userId
Karlee MacGyver @karlee_macgyver
restaurantId
Ferry LLC · South Gilbertoton · ★ 3.8
items
[
  {
    "menuItemId": 847,
    "quantity": 3,
    "unitPrice": 54.13,
    "lineTotal": 162.39
  },
  {
    "menuItemId": 853,
    "quantity": 2,
    "unitPrice": 25.25,
    "lineTotal": 50.5
  },
  {
    "menuItemId": 850,
    "quantity": 1,
    "unitPrice": 3.23,
    "lineTotal": 3.23
  }
]
subtotal
216.12
deliveryFee
0.94
tip
3.26
total
220.32
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/240"
)
food_order = res.json()
{
  "id": 240,
  "userId": 228,
  "restaurantId": 57,
  "items": [
    {
      "menuItemId": 847,
      "quantity": 3,
      "unitPrice": 54.13,
      "lineTotal": 162.39
    },
    {
      "menuItemId": 853,
      "quantity": 2,
      "unitPrice": 25.25,
      "lineTotal": 50.5
    },
    {
      "menuItemId": 850,
      "quantity": 1,
      "unitPrice": 3.23,
      "lineTotal": 3.23
    }
  ],
  "subtotal": 216.12,
  "deliveryFee": 0.94,
  "tip": 3.26,
  "total": 220.32,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2025-09-11T08:31:30.223Z",
  "deliveredAt": "2025-09-11T10:00:08.183Z"
}
Draftbit