example-data.com

food-orders / #197

userId
Hortense Cruickshank @hortense.cruickshank65
restaurantId
Walsh LLC · Predovicville · ★ 4.8
items
[
  {
    "menuItemId": 1444,
    "quantity": 1,
    "unitPrice": 60.6,
    "lineTotal": 60.6
  },
  {
    "menuItemId": 1448,
    "quantity": 3,
    "unitPrice": 50.38,
    "lineTotal": 151.14
  },
  {
    "menuItemId": 1450,
    "quantity": 1,
    "unitPrice": 40.3,
    "lineTotal": 40.3
  }
]
subtotal
252.04
deliveryFee
6.19
tip
2.78
total
261.01
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/197"
)
food_order = res.json()
{
  "id": 197,
  "userId": 83,
  "restaurantId": 100,
  "items": [
    {
      "menuItemId": 1444,
      "quantity": 1,
      "unitPrice": 60.6,
      "lineTotal": 60.6
    },
    {
      "menuItemId": 1448,
      "quantity": 3,
      "unitPrice": 50.38,
      "lineTotal": 151.14
    },
    {
      "menuItemId": 1450,
      "quantity": 1,
      "unitPrice": 40.3,
      "lineTotal": 40.3
    }
  ],
  "subtotal": 252.04,
  "deliveryFee": 6.19,
  "tip": 2.78,
  "total": 261.01,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2025-05-17T10:22:56.586Z",
  "deliveredAt": "2025-05-17T12:46:38.053Z"
}
Draftbit