example-data.com
Menu
Browse docs and collections

Overview

food-orders / #448

food-orders #448

userId
Brycen Bayer @brycen_bayer60
restaurantId
Leffler, Dibbert and Yost · Boehmcester · ★ 4.5
items
              [
  {
    "menuItemId": 1276,
    "quantity": 4,
    "unitPrice": 62.42,
    "lineTotal": 249.68
  },
  {
    "menuItemId": 1279,
    "quantity": 1,
    "unitPrice": 62.21,
    "lineTotal": 62.21
  },
  {
    "menuItemId": 1269,
    "quantity": 3,
    "unitPrice": 17.56,
    "lineTotal": 52.68
  }
]
            
subtotal
364.57
deliveryFee
6.02
tip
9.35
total
379.94
currency
USD
status
placed
placedAt
deliveredAt

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/food-orders/448" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/food-orders/448"
);
const foodOrder = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/food-orders.d.ts https://example-data.com/types/food-orders.d.ts
import type { FoodOrder } from "./types/food-orders";

const res = await fetch(
  "https://example-data.com/api/v1/food-orders/448"
);
const foodOrder = (await res.json()) as FoodOrder;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/food-orders/448"
)
food_order = res.json()

Response

{
  "id": 448,
  "userId": 6,
  "restaurantId": 88,
  "items": [
    {
      "menuItemId": 1276,
      "quantity": 4,
      "unitPrice": 62.42,
      "lineTotal": 249.68
    },
    {
      "menuItemId": 1279,
      "quantity": 1,
      "unitPrice": 62.21,
      "lineTotal": 62.21
    },
    {
      "menuItemId": 1269,
      "quantity": 3,
      "unitPrice": 17.56,
      "lineTotal": 52.68
    }
  ],
  "subtotal": 364.57,
  "deliveryFee": 6.02,
  "tip": 9.35,
  "total": 379.94,
  "currency": "USD",
  "status": "placed",
  "placedAt": "2025-08-03T10:00:28.774Z",
  "deliveredAt": null
}