example-data.com

food-orders / #62

userId
Ludwig Stiedemann @ludwig_stiedemann
restaurantId
Leffler, Dibbert and Yost · Boehmcester · ★ 4.5
items
[
  {
    "menuItemId": 1270,
    "quantity": 2,
    "unitPrice": 54.58,
    "lineTotal": 109.16
  },
  {
    "menuItemId": 1269,
    "quantity": 2,
    "unitPrice": 17.56,
    "lineTotal": 35.12
  },
  {
    "menuItemId": 1272,
    "quantity": 4,
    "unitPrice": 37.98,
    "lineTotal": 151.92
  },
  {
    "menuItemId": 1275,
    "quantity": 3,
    "unitPrice": 71.32,
    "lineTotal": 213.96
  },
  {
    "menuItemId": 1278,
    "quantity": 1,
    "unitPrice": 5.66,
    "lineTotal": 5.66
  }
]
subtotal
515.82
deliveryFee
4.82
tip
3.51
total
524.15
currency
USD
status
preparing
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/62"
)
food_order = res.json()
{
  "id": 62,
  "userId": 132,
  "restaurantId": 88,
  "items": [
    {
      "menuItemId": 1270,
      "quantity": 2,
      "unitPrice": 54.58,
      "lineTotal": 109.16
    },
    {
      "menuItemId": 1269,
      "quantity": 2,
      "unitPrice": 17.56,
      "lineTotal": 35.12
    },
    {
      "menuItemId": 1272,
      "quantity": 4,
      "unitPrice": 37.98,
      "lineTotal": 151.92
    },
    {
      "menuItemId": 1275,
      "quantity": 3,
      "unitPrice": 71.32,
      "lineTotal": 213.96
    },
    {
      "menuItemId": 1278,
      "quantity": 1,
      "unitPrice": 5.66,
      "lineTotal": 5.66
    }
  ],
  "subtotal": 515.82,
  "deliveryFee": 4.82,
  "tip": 3.51,
  "total": 524.15,
  "currency": "USD",
  "status": "preparing",
  "placedAt": "2025-04-13T17:44:08.957Z",
  "deliveredAt": null
}
Draftbit