example-data.com
Menu
Browse docs and collections

Overview

food-orders / #405

food-orders #405

userId
Alexa Rippin @alexa_rippin25
restaurantId
Weimann, Herzog and Wisoky · Grahamberg · ★ 3.2
items
              [
  {
    "menuItemId": 1283,
    "quantity": 2,
    "unitPrice": 26.49,
    "lineTotal": 52.98
  },
  {
    "menuItemId": 1284,
    "quantity": 4,
    "unitPrice": 66.71,
    "lineTotal": 266.84
  },
  {
    "menuItemId": 1286,
    "quantity": 2,
    "unitPrice": 64.02,
    "lineTotal": 128.04
  },
  {
    "menuItemId": 1280,
    "quantity": 2,
    "unitPrice": 8.8,
    "lineTotal": 17.6
  },
  {
    "menuItemId": 1287,
    "quantity": 2,
    "unitPrice": 24.6,
    "lineTotal": 49.2
  }
]
            
subtotal
514.66
deliveryFee
1.24
tip
7.31
total
523.21
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 405,
  "userId": 235,
  "restaurantId": 89,
  "items": [
    {
      "menuItemId": 1283,
      "quantity": 2,
      "unitPrice": 26.49,
      "lineTotal": 52.98
    },
    {
      "menuItemId": 1284,
      "quantity": 4,
      "unitPrice": 66.71,
      "lineTotal": 266.84
    },
    {
      "menuItemId": 1286,
      "quantity": 2,
      "unitPrice": 64.02,
      "lineTotal": 128.04
    },
    {
      "menuItemId": 1280,
      "quantity": 2,
      "unitPrice": 8.8,
      "lineTotal": 17.6
    },
    {
      "menuItemId": 1287,
      "quantity": 2,
      "unitPrice": 24.6,
      "lineTotal": 49.2
    }
  ],
  "subtotal": 514.66,
  "deliveryFee": 1.24,
  "tip": 7.31,
  "total": 523.21,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-01-18T22:32:59.081Z",
  "deliveredAt": "2026-01-19T00:29:17.302Z"
}