example-data.com
Menu
Browse docs and collections

Overview

food-orders / #292

food-orders #292

userId
Carmel Schultz @carmel.schultz
restaurantId
Kshlerin - Champlin · Marquardtfort · ★ 4.4
items
              [
  {
    "menuItemId": 162,
    "quantity": 3,
    "unitPrice": 46.06,
    "lineTotal": 138.18
  },
  {
    "menuItemId": 152,
    "quantity": 2,
    "unitPrice": 23.36,
    "lineTotal": 46.72
  },
  {
    "menuItemId": 149,
    "quantity": 1,
    "unitPrice": 38.74,
    "lineTotal": 38.74
  }
]
            
subtotal
223.64
deliveryFee
6.32
tip
2.86
total
232.82
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 292,
  "userId": 156,
  "restaurantId": 11,
  "items": [
    {
      "menuItemId": 162,
      "quantity": 3,
      "unitPrice": 46.06,
      "lineTotal": 138.18
    },
    {
      "menuItemId": 152,
      "quantity": 2,
      "unitPrice": 23.36,
      "lineTotal": 46.72
    },
    {
      "menuItemId": 149,
      "quantity": 1,
      "unitPrice": 38.74,
      "lineTotal": 38.74
    }
  ],
  "subtotal": 223.64,
  "deliveryFee": 6.32,
  "tip": 2.86,
  "total": 232.82,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-04-16T16:17:49.243Z",
  "deliveredAt": "2026-04-16T20:08:03.525Z"
}