example-data.com
Menu
Browse docs and collections

Overview

food-orders / #477

food-orders #477

userId
Terence Lemke @terence.lemke85
restaurantId
Morissette, Pagac and Schamberger · Fort Anjaliville · ★ 4.7
items
              [
  {
    "menuItemId": 1371,
    "quantity": 2,
    "unitPrice": 29.51,
    "lineTotal": 59.02
  },
  {
    "menuItemId": 1362,
    "quantity": 3,
    "unitPrice": 14.8,
    "lineTotal": 44.4
  },
  {
    "menuItemId": 1367,
    "quantity": 2,
    "unitPrice": 71.38,
    "lineTotal": 142.76
  }
]
            
subtotal
246.18
deliveryFee
5.51
tip
9.82
total
261.51
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 477,
  "userId": 74,
  "restaurantId": 94,
  "items": [
    {
      "menuItemId": 1371,
      "quantity": 2,
      "unitPrice": 29.51,
      "lineTotal": 59.02
    },
    {
      "menuItemId": 1362,
      "quantity": 3,
      "unitPrice": 14.8,
      "lineTotal": 44.4
    },
    {
      "menuItemId": 1367,
      "quantity": 2,
      "unitPrice": 71.38,
      "lineTotal": 142.76
    }
  ],
  "subtotal": 246.18,
  "deliveryFee": 5.51,
  "tip": 9.82,
  "total": 261.51,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-04-15T01:34:08.756Z",
  "deliveredAt": "2026-04-15T02:53:24.662Z"
}