example-data.com

food-orders / #201

userId
Kariane Schmitt @kariane.schmitt97
restaurantId
Bergstrom LLC · South Gate · ★ 3.0
items
[
  {
    "menuItemId": 992,
    "quantity": 3,
    "unitPrice": 79.66,
    "lineTotal": 238.98
  },
  {
    "menuItemId": 990,
    "quantity": 2,
    "unitPrice": 18.03,
    "lineTotal": 36.06
  },
  {
    "menuItemId": 996,
    "quantity": 4,
    "unitPrice": 62.11,
    "lineTotal": 248.44
  }
]
subtotal
523.48
deliveryFee
3.92
tip
1.41
total
528.81
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/201"
)
food_order = res.json()
{
  "id": 201,
  "userId": 32,
  "restaurantId": 66,
  "items": [
    {
      "menuItemId": 992,
      "quantity": 3,
      "unitPrice": 79.66,
      "lineTotal": 238.98
    },
    {
      "menuItemId": 990,
      "quantity": 2,
      "unitPrice": 18.03,
      "lineTotal": 36.06
    },
    {
      "menuItemId": 996,
      "quantity": 4,
      "unitPrice": 62.11,
      "lineTotal": 248.44
    }
  ],
  "subtotal": 523.48,
  "deliveryFee": 3.92,
  "tip": 1.41,
  "total": 528.81,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2025-10-10T04:05:40.672Z",
  "deliveredAt": "2025-10-10T07:42:53.403Z"
}
Draftbit