example-data.com
Menu
Browse docs and collections

Overview

food-orders / #432

food-orders #432

userId
Tillman Breitenberg @tillman_breitenberg54
restaurantId
Heathcote Inc · Schmidtfield · ★ 2.7
items
              [
  {
    "menuItemId": 787,
    "quantity": 2,
    "unitPrice": 76.11,
    "lineTotal": 152.22
  },
  {
    "menuItemId": 798,
    "quantity": 1,
    "unitPrice": 73.44,
    "lineTotal": 73.44
  },
  {
    "menuItemId": 791,
    "quantity": 4,
    "unitPrice": 56.64,
    "lineTotal": 226.56
  },
  {
    "menuItemId": 789,
    "quantity": 3,
    "unitPrice": 18.06,
    "lineTotal": 54.18
  },
  {
    "menuItemId": 785,
    "quantity": 3,
    "unitPrice": 5.52,
    "lineTotal": 16.56
  }
]
            
subtotal
522.96
deliveryFee
4.26
tip
3.71
total
530.93
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 432,
  "userId": 145,
  "restaurantId": 53,
  "items": [
    {
      "menuItemId": 787,
      "quantity": 2,
      "unitPrice": 76.11,
      "lineTotal": 152.22
    },
    {
      "menuItemId": 798,
      "quantity": 1,
      "unitPrice": 73.44,
      "lineTotal": 73.44
    },
    {
      "menuItemId": 791,
      "quantity": 4,
      "unitPrice": 56.64,
      "lineTotal": 226.56
    },
    {
      "menuItemId": 789,
      "quantity": 3,
      "unitPrice": 18.06,
      "lineTotal": 54.18
    },
    {
      "menuItemId": 785,
      "quantity": 3,
      "unitPrice": 5.52,
      "lineTotal": 16.56
    }
  ],
  "subtotal": 522.96,
  "deliveryFee": 4.26,
  "tip": 3.71,
  "total": 530.93,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-05-05T09:57:10.090Z",
  "deliveredAt": "2026-05-05T12:44:20.114Z"
}