example-data.com
Menu
Browse docs and collections

Overview

food-orders / #359

food-orders #359

userId
Jadon Nicolas @jadon.nicolas
restaurantId
Lehner - Smith · Larkinfurt · ★ 3.0
items
              [
  {
    "menuItemId": 1352,
    "quantity": 4,
    "unitPrice": 70.62,
    "lineTotal": 282.48
  },
  {
    "menuItemId": 1353,
    "quantity": 1,
    "unitPrice": 5.73,
    "lineTotal": 5.73
  },
  {
    "menuItemId": 1359,
    "quantity": 1,
    "unitPrice": 66.05,
    "lineTotal": 66.05
  },
  {
    "menuItemId": 1358,
    "quantity": 1,
    "unitPrice": 21.46,
    "lineTotal": 21.46
  },
  {
    "menuItemId": 1360,
    "quantity": 2,
    "unitPrice": 53.67,
    "lineTotal": 107.34
  }
]
            
subtotal
483.06
deliveryFee
5.08
tip
3.72
total
491.86
currency
USD
status
placed
placedAt
deliveredAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 359,
  "userId": 213,
  "restaurantId": 93,
  "items": [
    {
      "menuItemId": 1352,
      "quantity": 4,
      "unitPrice": 70.62,
      "lineTotal": 282.48
    },
    {
      "menuItemId": 1353,
      "quantity": 1,
      "unitPrice": 5.73,
      "lineTotal": 5.73
    },
    {
      "menuItemId": 1359,
      "quantity": 1,
      "unitPrice": 66.05,
      "lineTotal": 66.05
    },
    {
      "menuItemId": 1358,
      "quantity": 1,
      "unitPrice": 21.46,
      "lineTotal": 21.46
    },
    {
      "menuItemId": 1360,
      "quantity": 2,
      "unitPrice": 53.67,
      "lineTotal": 107.34
    }
  ],
  "subtotal": 483.06,
  "deliveryFee": 5.08,
  "tip": 3.72,
  "total": 491.86,
  "currency": "USD",
  "status": "placed",
  "placedAt": "2026-04-15T20:46:26.864Z",
  "deliveredAt": null
}