example-data.com

food-orders / #92

userId
Glenna Keebler @glenna_keebler
restaurantId
King - Aufderhar · Barnstable Town · ★ 4.8
items
[
  {
    "menuItemId": 916,
    "quantity": 4,
    "unitPrice": 50.16,
    "lineTotal": 200.64
  },
  {
    "menuItemId": 912,
    "quantity": 4,
    "unitPrice": 44.74,
    "lineTotal": 178.96
  },
  {
    "menuItemId": 919,
    "quantity": 1,
    "unitPrice": 78.22,
    "lineTotal": 78.22
  },
  {
    "menuItemId": 910,
    "quantity": 4,
    "unitPrice": 11.41,
    "lineTotal": 45.64
  },
  {
    "menuItemId": 920,
    "quantity": 2,
    "unitPrice": 25.58,
    "lineTotal": 51.16
  }
]
subtotal
554.62
deliveryFee
2.2
tip
9.76
total
566.58
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/92"
)
food_order = res.json()
{
  "id": 92,
  "userId": 134,
  "restaurantId": 60,
  "items": [
    {
      "menuItemId": 916,
      "quantity": 4,
      "unitPrice": 50.16,
      "lineTotal": 200.64
    },
    {
      "menuItemId": 912,
      "quantity": 4,
      "unitPrice": 44.74,
      "lineTotal": 178.96
    },
    {
      "menuItemId": 919,
      "quantity": 1,
      "unitPrice": 78.22,
      "lineTotal": 78.22
    },
    {
      "menuItemId": 910,
      "quantity": 4,
      "unitPrice": 11.41,
      "lineTotal": 45.64
    },
    {
      "menuItemId": 920,
      "quantity": 2,
      "unitPrice": 25.58,
      "lineTotal": 51.16
    }
  ],
  "subtotal": 554.62,
  "deliveryFee": 2.2,
  "tip": 9.76,
  "total": 566.58,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-02-02T23:10:36.530Z",
  "deliveredAt": "2026-02-03T00:34:21.460Z"
}
Draftbit