example-data.com
Menu
Browse docs and collections

Overview

food-orders / #161

food-orders #161

userId
Jameson Considine @jameson.considine1
restaurantId
Welch LLC · North Brando · ★ 4.0
items
              [
  {
    "menuItemId": 1377,
    "quantity": 2,
    "unitPrice": 52.08,
    "lineTotal": 104.16
  },
  {
    "menuItemId": 1379,
    "quantity": 2,
    "unitPrice": 51.51,
    "lineTotal": 103.02
  },
  {
    "menuItemId": 1376,
    "quantity": 2,
    "unitPrice": 8.95,
    "lineTotal": 17.9
  }
]
            
subtotal
225.08
deliveryFee
1.15
tip
10.79
total
237.02
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 161,
  "userId": 236,
  "restaurantId": 95,
  "items": [
    {
      "menuItemId": 1377,
      "quantity": 2,
      "unitPrice": 52.08,
      "lineTotal": 104.16
    },
    {
      "menuItemId": 1379,
      "quantity": 2,
      "unitPrice": 51.51,
      "lineTotal": 103.02
    },
    {
      "menuItemId": 1376,
      "quantity": 2,
      "unitPrice": 8.95,
      "lineTotal": 17.9
    }
  ],
  "subtotal": 225.08,
  "deliveryFee": 1.15,
  "tip": 10.79,
  "total": 237.02,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-01-12T02:28:54.733Z",
  "deliveredAt": "2026-01-12T04:26:10.072Z"
}