example-data.com
Menu
Browse docs and collections

Overview

food-orders / #104

food-orders #104

userId
Einar Volkman @einar_volkman69
restaurantId
Parisian and Sons · New Timmothy · ★ 3.9
items
              [
  {
    "menuItemId": 1049,
    "quantity": 1,
    "unitPrice": 40.58,
    "lineTotal": 40.58
  },
  {
    "menuItemId": 1056,
    "quantity": 2,
    "unitPrice": 31.32,
    "lineTotal": 62.64
  },
  {
    "menuItemId": 1043,
    "quantity": 3,
    "unitPrice": 55.21,
    "lineTotal": 165.63
  }
]
            
subtotal
268.85
deliveryFee
7.61
tip
11.11
total
287.57
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 104,
  "userId": 7,
  "restaurantId": 70,
  "items": [
    {
      "menuItemId": 1049,
      "quantity": 1,
      "unitPrice": 40.58,
      "lineTotal": 40.58
    },
    {
      "menuItemId": 1056,
      "quantity": 2,
      "unitPrice": 31.32,
      "lineTotal": 62.64
    },
    {
      "menuItemId": 1043,
      "quantity": 3,
      "unitPrice": 55.21,
      "lineTotal": 165.63
    }
  ],
  "subtotal": 268.85,
  "deliveryFee": 7.61,
  "tip": 11.11,
  "total": 287.57,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-03-31T11:31:49.519Z",
  "deliveredAt": "2026-03-31T14:54:13.140Z"
}