example-data.com

food-orders / #137

userId
Maymie Boehm @maymie.boehm90
restaurantId
Gerhold - Dietrich · North Joshua · ★ 4.9
items
[
  {
    "menuItemId": 959,
    "quantity": 2,
    "unitPrice": 73.65,
    "lineTotal": 147.3
  },
  {
    "menuItemId": 944,
    "quantity": 1,
    "unitPrice": 8.56,
    "lineTotal": 8.56
  },
  {
    "menuItemId": 948,
    "quantity": 3,
    "unitPrice": 63.65,
    "lineTotal": 190.95
  }
]
subtotal
346.81
deliveryFee
7.76
tip
3.1
total
357.67
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/137"
)
food_order = res.json()
{
  "id": 137,
  "userId": 48,
  "restaurantId": 63,
  "items": [
    {
      "menuItemId": 959,
      "quantity": 2,
      "unitPrice": 73.65,
      "lineTotal": 147.3
    },
    {
      "menuItemId": 944,
      "quantity": 1,
      "unitPrice": 8.56,
      "lineTotal": 8.56
    },
    {
      "menuItemId": 948,
      "quantity": 3,
      "unitPrice": 63.65,
      "lineTotal": 190.95
    }
  ],
  "subtotal": 346.81,
  "deliveryFee": 7.76,
  "tip": 3.1,
  "total": 357.67,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-02-04T04:52:20.210Z",
  "deliveredAt": "2026-02-04T08:24:07.856Z"
}
Draftbit