example-data.com
Menu
Browse docs and collections

Overview

food-orders / #414

food-orders #414

userId
Amina King @amina_king41
restaurantId
Jaskolski LLC · East Elmira · ★ 4.1
items
              [
  {
    "menuItemId": 1132,
    "quantity": 1,
    "unitPrice": 15.42,
    "lineTotal": 15.42
  },
  {
    "menuItemId": 1129,
    "quantity": 1,
    "unitPrice": 35.48,
    "lineTotal": 35.48
  },
  {
    "menuItemId": 1131,
    "quantity": 2,
    "unitPrice": 48.37,
    "lineTotal": 96.74
  }
]
            
subtotal
147.64
deliveryFee
6.77
tip
5.33
total
159.74
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 414,
  "userId": 2,
  "restaurantId": 77,
  "items": [
    {
      "menuItemId": 1132,
      "quantity": 1,
      "unitPrice": 15.42,
      "lineTotal": 15.42
    },
    {
      "menuItemId": 1129,
      "quantity": 1,
      "unitPrice": 35.48,
      "lineTotal": 35.48
    },
    {
      "menuItemId": 1131,
      "quantity": 2,
      "unitPrice": 48.37,
      "lineTotal": 96.74
    }
  ],
  "subtotal": 147.64,
  "deliveryFee": 6.77,
  "tip": 5.33,
  "total": 159.74,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-05-18T07:00:43.888Z",
  "deliveredAt": "2026-05-18T10:15:34.809Z"
}