example-data.com
Menu
Browse docs and collections

Overview

food-orders / #363

food-orders #363

userId
Lilla Koss @lilla.koss
restaurantId
Ritchie - Rowe · Trompfort · ★ 2.9
items
              [
  {
    "menuItemId": 1238,
    "quantity": 3,
    "unitPrice": 76.13,
    "lineTotal": 228.39
  },
  {
    "menuItemId": 1239,
    "quantity": 3,
    "unitPrice": 34.8,
    "lineTotal": 104.4
  },
  {
    "menuItemId": 1240,
    "quantity": 3,
    "unitPrice": 16.6,
    "lineTotal": 49.8
  },
  {
    "menuItemId": 1243,
    "quantity": 2,
    "unitPrice": 72.04,
    "lineTotal": 144.08
  },
  {
    "menuItemId": 1245,
    "quantity": 4,
    "unitPrice": 62.64,
    "lineTotal": 250.56
  }
]
            
subtotal
777.23
deliveryFee
6.91
tip
5.52
total
789.66
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 363,
  "userId": 59,
  "restaurantId": 85,
  "items": [
    {
      "menuItemId": 1238,
      "quantity": 3,
      "unitPrice": 76.13,
      "lineTotal": 228.39
    },
    {
      "menuItemId": 1239,
      "quantity": 3,
      "unitPrice": 34.8,
      "lineTotal": 104.4
    },
    {
      "menuItemId": 1240,
      "quantity": 3,
      "unitPrice": 16.6,
      "lineTotal": 49.8
    },
    {
      "menuItemId": 1243,
      "quantity": 2,
      "unitPrice": 72.04,
      "lineTotal": 144.08
    },
    {
      "menuItemId": 1245,
      "quantity": 4,
      "unitPrice": 62.64,
      "lineTotal": 250.56
    }
  ],
  "subtotal": 777.23,
  "deliveryFee": 6.91,
  "tip": 5.52,
  "total": 789.66,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-05-09T01:42:08.009Z",
  "deliveredAt": "2026-05-09T04:07:32.302Z"
}