example-data.com

food-orders / #111

userId
Rupert Lebsack @rupert.lebsack
restaurantId
Macejkovic - Lehner · Petertown · ★ 4.3
items
[
  {
    "menuItemId": 729,
    "quantity": 2,
    "unitPrice": 25.05,
    "lineTotal": 50.1
  },
  {
    "menuItemId": 728,
    "quantity": 3,
    "unitPrice": 23.09,
    "lineTotal": 69.27
  },
  {
    "menuItemId": 732,
    "quantity": 1,
    "unitPrice": 58.7,
    "lineTotal": 58.7
  },
  {
    "menuItemId": 730,
    "quantity": 3,
    "unitPrice": 58.77,
    "lineTotal": 176.31
  },
  {
    "menuItemId": 731,
    "quantity": 4,
    "unitPrice": 7.94,
    "lineTotal": 31.76
  }
]
subtotal
386.14
deliveryFee
5.57
tip
5.73
total
397.44
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/111"
)
food_order = res.json()
{
  "id": 111,
  "userId": 249,
  "restaurantId": 48,
  "items": [
    {
      "menuItemId": 729,
      "quantity": 2,
      "unitPrice": 25.05,
      "lineTotal": 50.1
    },
    {
      "menuItemId": 728,
      "quantity": 3,
      "unitPrice": 23.09,
      "lineTotal": 69.27
    },
    {
      "menuItemId": 732,
      "quantity": 1,
      "unitPrice": 58.7,
      "lineTotal": 58.7
    },
    {
      "menuItemId": 730,
      "quantity": 3,
      "unitPrice": 58.77,
      "lineTotal": 176.31
    },
    {
      "menuItemId": 731,
      "quantity": 4,
      "unitPrice": 7.94,
      "lineTotal": 31.76
    }
  ],
  "subtotal": 386.14,
  "deliveryFee": 5.57,
  "tip": 5.73,
  "total": 397.44,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2025-10-25T06:11:04.342Z",
  "deliveredAt": "2025-10-25T07:21:34.253Z"
}
Draftbit