example-data.com

food-orders / #9

userId
Aylin Sanford @aylin.sanford
restaurantId
Haley, Denesik and Walker · Port Chloe · ★ 3.3
items
[
  {
    "menuItemId": 1433,
    "quantity": 3,
    "unitPrice": 48.32,
    "lineTotal": 144.96
  },
  {
    "menuItemId": 1432,
    "quantity": 2,
    "unitPrice": 13.28,
    "lineTotal": 26.56
  },
  {
    "menuItemId": 1436,
    "quantity": 3,
    "unitPrice": 34.63,
    "lineTotal": 103.89
  },
  {
    "menuItemId": 1438,
    "quantity": 1,
    "unitPrice": 74.21,
    "lineTotal": 74.21
  }
]
subtotal
349.62
deliveryFee
6.23
tip
7.1
total
362.95
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/9"
)
food_order = res.json()
{
  "id": 9,
  "userId": 173,
  "restaurantId": 99,
  "items": [
    {
      "menuItemId": 1433,
      "quantity": 3,
      "unitPrice": 48.32,
      "lineTotal": 144.96
    },
    {
      "menuItemId": 1432,
      "quantity": 2,
      "unitPrice": 13.28,
      "lineTotal": 26.56
    },
    {
      "menuItemId": 1436,
      "quantity": 3,
      "unitPrice": 34.63,
      "lineTotal": 103.89
    },
    {
      "menuItemId": 1438,
      "quantity": 1,
      "unitPrice": 74.21,
      "lineTotal": 74.21
    }
  ],
  "subtotal": 349.62,
  "deliveryFee": 6.23,
  "tip": 7.1,
  "total": 362.95,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-02-20T03:11:26.341Z",
  "deliveredAt": "2026-02-20T05:56:06.391Z"
}
Draftbit