example-data.com
Menu
Browse docs and collections

Overview

food-orders / #479

food-orders #479

userId
Cindy Barrows @cindy_barrows20
restaurantId
Vandervort, Bogisich and Hilll · Lake Gino · ★ 4.3
items
              [
  {
    "menuItemId": 195,
    "quantity": 1,
    "unitPrice": 3.93,
    "lineTotal": 3.93
  },
  {
    "menuItemId": 190,
    "quantity": 1,
    "unitPrice": 32.89,
    "lineTotal": 32.89
  },
  {
    "menuItemId": 196,
    "quantity": 4,
    "unitPrice": 60.72,
    "lineTotal": 242.88
  },
  {
    "menuItemId": 191,
    "quantity": 1,
    "unitPrice": 42.52,
    "lineTotal": 42.52
  }
]
            
subtotal
322.22
deliveryFee
4.08
tip
2.57
total
328.87
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 479,
  "userId": 165,
  "restaurantId": 14,
  "items": [
    {
      "menuItemId": 195,
      "quantity": 1,
      "unitPrice": 3.93,
      "lineTotal": 3.93
    },
    {
      "menuItemId": 190,
      "quantity": 1,
      "unitPrice": 32.89,
      "lineTotal": 32.89
    },
    {
      "menuItemId": 196,
      "quantity": 4,
      "unitPrice": 60.72,
      "lineTotal": 242.88
    },
    {
      "menuItemId": 191,
      "quantity": 1,
      "unitPrice": 42.52,
      "lineTotal": 42.52
    }
  ],
  "subtotal": 322.22,
  "deliveryFee": 4.08,
  "tip": 2.57,
  "total": 328.87,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-02-21T14:04:09.060Z",
  "deliveredAt": "2026-02-21T15:10:19.429Z"
}