example-data.com
Menu
Browse docs and collections

Overview

food-orders / #182

food-orders #182

userId
Minerva Hettinger @minerva_hettinger
restaurantId
Simonis - Kshlerin · Stanleybury · ★ 2.8
items
              [
  {
    "menuItemId": 679,
    "quantity": 4,
    "unitPrice": 37.88,
    "lineTotal": 151.52
  },
  {
    "menuItemId": 675,
    "quantity": 3,
    "unitPrice": 45.17,
    "lineTotal": 135.51
  },
  {
    "menuItemId": 673,
    "quantity": 1,
    "unitPrice": 63.75,
    "lineTotal": 63.75
  }
]
            
subtotal
350.78
deliveryFee
4.99
tip
5.76
total
361.53
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 182,
  "userId": 183,
  "restaurantId": 45,
  "items": [
    {
      "menuItemId": 679,
      "quantity": 4,
      "unitPrice": 37.88,
      "lineTotal": 151.52
    },
    {
      "menuItemId": 675,
      "quantity": 3,
      "unitPrice": 45.17,
      "lineTotal": 135.51
    },
    {
      "menuItemId": 673,
      "quantity": 1,
      "unitPrice": 63.75,
      "lineTotal": 63.75
    }
  ],
  "subtotal": 350.78,
  "deliveryFee": 4.99,
  "tip": 5.76,
  "total": 361.53,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2025-11-21T03:15:42.715Z",
  "deliveredAt": "2025-11-21T06:17:29.080Z"
}