example-data.com
Menu
Browse docs and collections

Overview

food-orders / #440

food-orders #440

userId
Lilla Koss @lilla.koss
restaurantId
Marks Inc · East Dena · ★ 4.1
items
              [
  {
    "menuItemId": 809,
    "quantity": 3,
    "unitPrice": 50.65,
    "lineTotal": 151.95
  },
  {
    "menuItemId": 817,
    "quantity": 2,
    "unitPrice": 5.31,
    "lineTotal": 10.62
  },
  {
    "menuItemId": 799,
    "quantity": 4,
    "unitPrice": 24.51,
    "lineTotal": 98.04
  }
]
            
subtotal
260.61
deliveryFee
5.84
tip
1.37
total
267.82
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 440,
  "userId": 59,
  "restaurantId": 54,
  "items": [
    {
      "menuItemId": 809,
      "quantity": 3,
      "unitPrice": 50.65,
      "lineTotal": 151.95
    },
    {
      "menuItemId": 817,
      "quantity": 2,
      "unitPrice": 5.31,
      "lineTotal": 10.62
    },
    {
      "menuItemId": 799,
      "quantity": 4,
      "unitPrice": 24.51,
      "lineTotal": 98.04
    }
  ],
  "subtotal": 260.61,
  "deliveryFee": 5.84,
  "tip": 1.37,
  "total": 267.82,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-02-13T15:29:11.312Z",
  "deliveredAt": "2026-02-13T16:59:32.815Z"
}