example-data.com

food-orders / #204

userId
General Morissette @general_morissette47
restaurantId
Leffler, Dibbert and Yost · Boehmcester · ★ 4.5
items
[
  {
    "menuItemId": 1270,
    "quantity": 1,
    "unitPrice": 54.58,
    "lineTotal": 54.58
  },
  {
    "menuItemId": 1277,
    "quantity": 2,
    "unitPrice": 52.02,
    "lineTotal": 104.04
  },
  {
    "menuItemId": 1271,
    "quantity": 4,
    "unitPrice": 48.45,
    "lineTotal": 193.8
  },
  {
    "menuItemId": 1273,
    "quantity": 1,
    "unitPrice": 65.3,
    "lineTotal": 65.3
  },
  {
    "menuItemId": 1274,
    "quantity": 4,
    "unitPrice": 18.12,
    "lineTotal": 72.48
  }
]
subtotal
490.2
deliveryFee
6.73
tip
11.52
total
508.45
currency
USD
status
out_for_delivery
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/204"
)
food_order = res.json()
{
  "id": 204,
  "userId": 184,
  "restaurantId": 88,
  "items": [
    {
      "menuItemId": 1270,
      "quantity": 1,
      "unitPrice": 54.58,
      "lineTotal": 54.58
    },
    {
      "menuItemId": 1277,
      "quantity": 2,
      "unitPrice": 52.02,
      "lineTotal": 104.04
    },
    {
      "menuItemId": 1271,
      "quantity": 4,
      "unitPrice": 48.45,
      "lineTotal": 193.8
    },
    {
      "menuItemId": 1273,
      "quantity": 1,
      "unitPrice": 65.3,
      "lineTotal": 65.3
    },
    {
      "menuItemId": 1274,
      "quantity": 4,
      "unitPrice": 18.12,
      "lineTotal": 72.48
    }
  ],
  "subtotal": 490.2,
  "deliveryFee": 6.73,
  "tip": 11.52,
  "total": 508.45,
  "currency": "USD",
  "status": "out_for_delivery",
  "placedAt": "2025-07-02T05:24:09.777Z",
  "deliveredAt": null
}
Draftbit