example-data.com

food-orders / #109

userId
Jermain Kshlerin @jermain_kshlerin51
restaurantId
Cummings and Sons · Rodriguezville · ★ 3.5
items
[
  {
    "menuItemId": 551,
    "quantity": 1,
    "unitPrice": 57.36,
    "lineTotal": 57.36
  },
  {
    "menuItemId": 539,
    "quantity": 4,
    "unitPrice": 9.32,
    "lineTotal": 37.28
  },
  {
    "menuItemId": 552,
    "quantity": 1,
    "unitPrice": 27.42,
    "lineTotal": 27.42
  }
]
subtotal
122.06
deliveryFee
5.59
tip
6.17
total
133.82
currency
USD
status
preparing
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/109"
)
food_order = res.json()
{
  "id": 109,
  "userId": 104,
  "restaurantId": 37,
  "items": [
    {
      "menuItemId": 551,
      "quantity": 1,
      "unitPrice": 57.36,
      "lineTotal": 57.36
    },
    {
      "menuItemId": 539,
      "quantity": 4,
      "unitPrice": 9.32,
      "lineTotal": 37.28
    },
    {
      "menuItemId": 552,
      "quantity": 1,
      "unitPrice": 27.42,
      "lineTotal": 27.42
    }
  ],
  "subtotal": 122.06,
  "deliveryFee": 5.59,
  "tip": 6.17,
  "total": 133.82,
  "currency": "USD",
  "status": "preparing",
  "placedAt": "2025-09-27T12:46:03.073Z",
  "deliveredAt": null
}
Draftbit