example-data.com

food-orders / #156

userId
Rickie Sporer @rickie.sporer50
restaurantId
Price LLC · Aspen Hill · ★ 2.9
items
[
  {
    "menuItemId": 1232,
    "quantity": 2,
    "unitPrice": 4.21,
    "lineTotal": 8.42
  },
  {
    "menuItemId": 1233,
    "quantity": 1,
    "unitPrice": 53.6,
    "lineTotal": 53.6
  }
]
subtotal
62.02
deliveryFee
6.39
tip
11.26
total
79.67
currency
USD
status
out_for_delivery
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/156"
)
food_order = res.json()
{
  "id": 156,
  "userId": 149,
  "restaurantId": 84,
  "items": [
    {
      "menuItemId": 1232,
      "quantity": 2,
      "unitPrice": 4.21,
      "lineTotal": 8.42
    },
    {
      "menuItemId": 1233,
      "quantity": 1,
      "unitPrice": 53.6,
      "lineTotal": 53.6
    }
  ],
  "subtotal": 62.02,
  "deliveryFee": 6.39,
  "tip": 11.26,
  "total": 79.67,
  "currency": "USD",
  "status": "out_for_delivery",
  "placedAt": "2026-04-06T00:56:18.083Z",
  "deliveredAt": null
}
Draftbit