example-data.com
Menu
Browse docs and collections

Overview

food-orders / #476

food-orders #476

userId
Kathleen Lynch @kathleen_lynch1
restaurantId
Aufderhar - Johns · East Lorenside · ★ 4.5
items
              [
  {
    "menuItemId": 1425,
    "quantity": 1,
    "unitPrice": 30.88,
    "lineTotal": 30.88
  },
  {
    "menuItemId": 1428,
    "quantity": 4,
    "unitPrice": 48.68,
    "lineTotal": 194.72
  },
  {
    "menuItemId": 1427,
    "quantity": 2,
    "unitPrice": 24.79,
    "lineTotal": 49.58
  }
]
            
subtotal
275.18
deliveryFee
7.89
tip
7.15
total
290.22
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/food-orders/476"
);
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/476"
);
const foodOrder = (await res.json()) as FoodOrder;

Python example

import requests

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

Response

{
  "id": 476,
  "userId": 139,
  "restaurantId": 98,
  "items": [
    {
      "menuItemId": 1425,
      "quantity": 1,
      "unitPrice": 30.88,
      "lineTotal": 30.88
    },
    {
      "menuItemId": 1428,
      "quantity": 4,
      "unitPrice": 48.68,
      "lineTotal": 194.72
    },
    {
      "menuItemId": 1427,
      "quantity": 2,
      "unitPrice": 24.79,
      "lineTotal": 49.58
    }
  ],
  "subtotal": 275.18,
  "deliveryFee": 7.89,
  "tip": 7.15,
  "total": 290.22,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-02-06T04:03:07.459Z",
  "deliveredAt": "2026-02-06T06:36:18.147Z"
}