example-data.com

food-orders / #84

userId
Maria Senger @maria.senger
restaurantId
Trantow - Jerde · Zaneberg · ★ 2.7
items
[
  {
    "menuItemId": 431,
    "quantity": 4,
    "unitPrice": 30.67,
    "lineTotal": 122.68
  },
  {
    "menuItemId": 434,
    "quantity": 1,
    "unitPrice": 12.59,
    "lineTotal": 12.59
  },
  {
    "menuItemId": 441,
    "quantity": 1,
    "unitPrice": 21.04,
    "lineTotal": 21.04
  },
  {
    "menuItemId": 435,
    "quantity": 3,
    "unitPrice": 75.39,
    "lineTotal": 226.17
  }
]
subtotal
382.48
deliveryFee
6.97
tip
9.93
total
399.38
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/84"
)
food_order = res.json()
{
  "id": 84,
  "userId": 120,
  "restaurantId": 29,
  "items": [
    {
      "menuItemId": 431,
      "quantity": 4,
      "unitPrice": 30.67,
      "lineTotal": 122.68
    },
    {
      "menuItemId": 434,
      "quantity": 1,
      "unitPrice": 12.59,
      "lineTotal": 12.59
    },
    {
      "menuItemId": 441,
      "quantity": 1,
      "unitPrice": 21.04,
      "lineTotal": 21.04
    },
    {
      "menuItemId": 435,
      "quantity": 3,
      "unitPrice": 75.39,
      "lineTotal": 226.17
    }
  ],
  "subtotal": 382.48,
  "deliveryFee": 6.97,
  "tip": 9.93,
  "total": 399.38,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2025-07-03T17:45:25.942Z",
  "deliveredAt": "2025-07-03T21:32:29.314Z"
}
Draftbit