example-data.com
Menu
Browse docs and collections

Overview

food-orders / #82

food-orders #82

userId
Britney Haag @britney.haag
restaurantId
Greenfelder LLC · Jaydentown · ★ 3.2
items
              [
  {
    "menuItemId": 186,
    "quantity": 3,
    "unitPrice": 64.97,
    "lineTotal": 194.91
  },
  {
    "menuItemId": 184,
    "quantity": 2,
    "unitPrice": 77.13,
    "lineTotal": 154.26
  },
  {
    "menuItemId": 182,
    "quantity": 3,
    "unitPrice": 26.93,
    "lineTotal": 80.79
  },
  {
    "menuItemId": 185,
    "quantity": 3,
    "unitPrice": 20.15,
    "lineTotal": 60.45
  },
  {
    "menuItemId": 183,
    "quantity": 2,
    "unitPrice": 14.2,
    "lineTotal": 28.4
  }
]
            
subtotal
518.81
deliveryFee
1.36
tip
5.75
total
525.92
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 82,
  "userId": 133,
  "restaurantId": 13,
  "items": [
    {
      "menuItemId": 186,
      "quantity": 3,
      "unitPrice": 64.97,
      "lineTotal": 194.91
    },
    {
      "menuItemId": 184,
      "quantity": 2,
      "unitPrice": 77.13,
      "lineTotal": 154.26
    },
    {
      "menuItemId": 182,
      "quantity": 3,
      "unitPrice": 26.93,
      "lineTotal": 80.79
    },
    {
      "menuItemId": 185,
      "quantity": 3,
      "unitPrice": 20.15,
      "lineTotal": 60.45
    },
    {
      "menuItemId": 183,
      "quantity": 2,
      "unitPrice": 14.2,
      "lineTotal": 28.4
    }
  ],
  "subtotal": 518.81,
  "deliveryFee": 1.36,
  "tip": 5.75,
  "total": 525.92,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-03-04T10:58:04.253Z",
  "deliveredAt": "2026-03-04T14:14:22.539Z"
}