example-data.com
Menu
Browse docs and collections

Overview

food-orders / #482

food-orders #482

userId
Velma Jerde @velma.jerde56
restaurantId
Huel, Stark and Zulauf · Zoiemouth · ★ 2.7
items
              [
  {
    "menuItemId": 1006,
    "quantity": 1,
    "unitPrice": 51.33,
    "lineTotal": 51.33
  },
  {
    "menuItemId": 1007,
    "quantity": 2,
    "unitPrice": 26.43,
    "lineTotal": 52.86
  },
  {
    "menuItemId": 1005,
    "quantity": 2,
    "unitPrice": 9.96,
    "lineTotal": 19.92
  },
  {
    "menuItemId": 1004,
    "quantity": 2,
    "unitPrice": 73.14,
    "lineTotal": 146.28
  }
]
            
subtotal
270.39
deliveryFee
6.11
tip
10.05
total
286.55
currency
USD
status
out_for_delivery
placedAt
deliveredAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 482,
  "userId": 93,
  "restaurantId": 67,
  "items": [
    {
      "menuItemId": 1006,
      "quantity": 1,
      "unitPrice": 51.33,
      "lineTotal": 51.33
    },
    {
      "menuItemId": 1007,
      "quantity": 2,
      "unitPrice": 26.43,
      "lineTotal": 52.86
    },
    {
      "menuItemId": 1005,
      "quantity": 2,
      "unitPrice": 9.96,
      "lineTotal": 19.92
    },
    {
      "menuItemId": 1004,
      "quantity": 2,
      "unitPrice": 73.14,
      "lineTotal": 146.28
    }
  ],
  "subtotal": 270.39,
  "deliveryFee": 6.11,
  "tip": 10.05,
  "total": 286.55,
  "currency": "USD",
  "status": "out_for_delivery",
  "placedAt": "2025-12-07T23:24:14.276Z",
  "deliveredAt": null
}