example-data.com

food-orders / #88

userId
Margaretta Barrows @margaretta_barrows41
restaurantId
Welch LLC · North Brando · ★ 4.0
items
[
  {
    "menuItemId": 1374,
    "quantity": 2,
    "unitPrice": 73.71,
    "lineTotal": 147.42
  },
  {
    "menuItemId": 1380,
    "quantity": 3,
    "unitPrice": 44.9,
    "lineTotal": 134.7
  }
]
subtotal
282.12
deliveryFee
0.23
tip
3.82
total
286.17
currency
USD
status
cancelled
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/88"
)
food_order = res.json()
{
  "id": 88,
  "userId": 39,
  "restaurantId": 95,
  "items": [
    {
      "menuItemId": 1374,
      "quantity": 2,
      "unitPrice": 73.71,
      "lineTotal": 147.42
    },
    {
      "menuItemId": 1380,
      "quantity": 3,
      "unitPrice": 44.9,
      "lineTotal": 134.7
    }
  ],
  "subtotal": 282.12,
  "deliveryFee": 0.23,
  "tip": 3.82,
  "total": 286.17,
  "currency": "USD",
  "status": "cancelled",
  "placedAt": "2025-04-07T04:01:31.276Z",
  "deliveredAt": null
}
Draftbit