example-data.com
Menu
Browse docs and collections

Overview

food-orders / #406

food-orders #406

userId
Everett Yundt @everett_yundt11
restaurantId
Ferry LLC · South Gilbertoton · ★ 3.8
items
              [
  {
    "menuItemId": 870,
    "quantity": 4,
    "unitPrice": 69.66,
    "lineTotal": 278.64
  },
  {
    "menuItemId": 869,
    "quantity": 4,
    "unitPrice": 18.67,
    "lineTotal": 74.68
  },
  {
    "menuItemId": 855,
    "quantity": 1,
    "unitPrice": 6.43,
    "lineTotal": 6.43
  }
]
            
subtotal
359.75
deliveryFee
1.43
tip
6.2
total
367.38
currency
USD
status
out_for_delivery
placedAt
deliveredAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 406,
  "userId": 44,
  "restaurantId": 57,
  "items": [
    {
      "menuItemId": 870,
      "quantity": 4,
      "unitPrice": 69.66,
      "lineTotal": 278.64
    },
    {
      "menuItemId": 869,
      "quantity": 4,
      "unitPrice": 18.67,
      "lineTotal": 74.68
    },
    {
      "menuItemId": 855,
      "quantity": 1,
      "unitPrice": 6.43,
      "lineTotal": 6.43
    }
  ],
  "subtotal": 359.75,
  "deliveryFee": 1.43,
  "tip": 6.2,
  "total": 367.38,
  "currency": "USD",
  "status": "out_for_delivery",
  "placedAt": "2026-05-19T23:18:32.872Z",
  "deliveredAt": null
}