example-data.com
Menu
Browse docs and collections

Overview

food-orders / #246

food-orders #246

userId
Wallace Batz @wallace_batz
restaurantId
Mills, Kassulke and Marquardt · Jeffersonville · ★ 3.6
items
              [
  {
    "menuItemId": 450,
    "quantity": 1,
    "unitPrice": 16.3,
    "lineTotal": 16.3
  },
  {
    "menuItemId": 443,
    "quantity": 4,
    "unitPrice": 17.94,
    "lineTotal": 71.76
  },
  {
    "menuItemId": 447,
    "quantity": 4,
    "unitPrice": 58.83,
    "lineTotal": 235.32
  }
]
            
subtotal
323.38
deliveryFee
3.82
tip
2.52
total
329.72
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 246,
  "userId": 229,
  "restaurantId": 30,
  "items": [
    {
      "menuItemId": 450,
      "quantity": 1,
      "unitPrice": 16.3,
      "lineTotal": 16.3
    },
    {
      "menuItemId": 443,
      "quantity": 4,
      "unitPrice": 17.94,
      "lineTotal": 71.76
    },
    {
      "menuItemId": 447,
      "quantity": 4,
      "unitPrice": 58.83,
      "lineTotal": 235.32
    }
  ],
  "subtotal": 323.38,
  "deliveryFee": 3.82,
  "tip": 2.52,
  "total": 329.72,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-02-07T01:29:45.406Z",
  "deliveredAt": "2026-02-07T02:46:56.811Z"
}