example-data.com

food-orders / #193

userId
Tillman Breitenberg @tillman_breitenberg54
restaurantId
Bartoletti LLC · Shannychester · ★ 3.3
items
[
  {
    "menuItemId": 752,
    "quantity": 3,
    "unitPrice": 34.93,
    "lineTotal": 104.79
  },
  {
    "menuItemId": 743,
    "quantity": 4,
    "unitPrice": 5.59,
    "lineTotal": 22.36
  }
]
subtotal
127.15
deliveryFee
0.27
tip
8.36
total
135.78
currency
USD
status
cancelled
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/193"
)
food_order = res.json()
{
  "id": 193,
  "userId": 145,
  "restaurantId": 49,
  "items": [
    {
      "menuItemId": 752,
      "quantity": 3,
      "unitPrice": 34.93,
      "lineTotal": 104.79
    },
    {
      "menuItemId": 743,
      "quantity": 4,
      "unitPrice": 5.59,
      "lineTotal": 22.36
    }
  ],
  "subtotal": 127.15,
  "deliveryFee": 0.27,
  "tip": 8.36,
  "total": 135.78,
  "currency": "USD",
  "status": "cancelled",
  "placedAt": "2025-02-26T03:51:15.964Z",
  "deliveredAt": null
}
Draftbit