example-data.com

food-orders / #29

userId
Jadon Nicolas @jadon.nicolas
restaurantId
Hartmann, Dach and Kub · Gusikowskifield · ★ 4.2
items
[
  {
    "menuItemId": 557,
    "quantity": 4,
    "unitPrice": 38.71,
    "lineTotal": 154.84
  }
]
subtotal
154.84
deliveryFee
4.92
tip
4.27
total
164.03
currency
USD
status
out_for_delivery
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/29"
)
food_order = res.json()
{
  "id": 29,
  "userId": 213,
  "restaurantId": 38,
  "items": [
    {
      "menuItemId": 557,
      "quantity": 4,
      "unitPrice": 38.71,
      "lineTotal": 154.84
    }
  ],
  "subtotal": 154.84,
  "deliveryFee": 4.92,
  "tip": 4.27,
  "total": 164.03,
  "currency": "USD",
  "status": "out_for_delivery",
  "placedAt": "2025-09-29T15:42:01.506Z",
  "deliveredAt": null
}
Draftbit