example-data.com
Menu
Browse docs and collections

Overview

food-orders / #269

food-orders #269

userId
General Morissette @general_morissette47
restaurantId
Schimmel LLC · Clovis · ★ 3.3
items
              [
  {
    "menuItemId": 1261,
    "quantity": 2,
    "unitPrice": 12.12,
    "lineTotal": 24.24
  },
  {
    "menuItemId": 1255,
    "quantity": 1,
    "unitPrice": 70.84,
    "lineTotal": 70.84
  },
  {
    "menuItemId": 1252,
    "quantity": 2,
    "unitPrice": 25.53,
    "lineTotal": 51.06
  }
]
            
subtotal
146.14
deliveryFee
2.82
tip
11.24
total
160.2
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 269,
  "userId": 184,
  "restaurantId": 86,
  "items": [
    {
      "menuItemId": 1261,
      "quantity": 2,
      "unitPrice": 12.12,
      "lineTotal": 24.24
    },
    {
      "menuItemId": 1255,
      "quantity": 1,
      "unitPrice": 70.84,
      "lineTotal": 70.84
    },
    {
      "menuItemId": 1252,
      "quantity": 2,
      "unitPrice": 25.53,
      "lineTotal": 51.06
    }
  ],
  "subtotal": 146.14,
  "deliveryFee": 2.82,
  "tip": 11.24,
  "total": 160.2,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2025-11-02T17:32:28.367Z",
  "deliveredAt": "2025-11-02T20:39:49.392Z"
}