example-data.com

food-orders / #66

userId
Jacynthe Sawayn @jacynthe_sawayn71
restaurantId
Hamill, Flatley and Pfeffer · North Trevacester · ★ 4.3
items
[
  {
    "menuItemId": 768,
    "quantity": 1,
    "unitPrice": 28.03,
    "lineTotal": 28.03
  },
  {
    "menuItemId": 770,
    "quantity": 4,
    "unitPrice": 48.12,
    "lineTotal": 192.48
  },
  {
    "menuItemId": 767,
    "quantity": 4,
    "unitPrice": 20.62,
    "lineTotal": 82.48
  },
  {
    "menuItemId": 775,
    "quantity": 3,
    "unitPrice": 42.25,
    "lineTotal": 126.75
  },
  {
    "menuItemId": 765,
    "quantity": 4,
    "unitPrice": 48.08,
    "lineTotal": 192.32
  }
]
subtotal
622.06
deliveryFee
7.05
tip
5.85
total
634.96
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/66"
)
food_order = res.json()
{
  "id": 66,
  "userId": 146,
  "restaurantId": 51,
  "items": [
    {
      "menuItemId": 768,
      "quantity": 1,
      "unitPrice": 28.03,
      "lineTotal": 28.03
    },
    {
      "menuItemId": 770,
      "quantity": 4,
      "unitPrice": 48.12,
      "lineTotal": 192.48
    },
    {
      "menuItemId": 767,
      "quantity": 4,
      "unitPrice": 20.62,
      "lineTotal": 82.48
    },
    {
      "menuItemId": 775,
      "quantity": 3,
      "unitPrice": 42.25,
      "lineTotal": 126.75
    },
    {
      "menuItemId": 765,
      "quantity": 4,
      "unitPrice": 48.08,
      "lineTotal": 192.32
    }
  ],
  "subtotal": 622.06,
  "deliveryFee": 7.05,
  "tip": 5.85,
  "total": 634.96,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2025-12-16T19:53:49.153Z",
  "deliveredAt": "2025-12-16T21:43:46.936Z"
}
Draftbit