example-data.com
Menu
Browse docs and collections

Overview

food-orders / #319

food-orders #319

userId
Merl Jenkins @merl.jenkins6
restaurantId
Durgan Group · Fort Collins · ★ 3.1
items
              [
  {
    "menuItemId": 47,
    "quantity": 3,
    "unitPrice": 56.05,
    "lineTotal": 168.15
  },
  {
    "menuItemId": 51,
    "quantity": 3,
    "unitPrice": 58.78,
    "lineTotal": 176.34
  },
  {
    "menuItemId": 46,
    "quantity": 1,
    "unitPrice": 17.44,
    "lineTotal": 17.44
  },
  {
    "menuItemId": 49,
    "quantity": 3,
    "unitPrice": 78.67,
    "lineTotal": 236.01
  },
  {
    "menuItemId": 48,
    "quantity": 3,
    "unitPrice": 57.67,
    "lineTotal": 173.01
  }
]
            
subtotal
770.95
deliveryFee
6.15
tip
11.36
total
788.46
currency
USD
status
out_for_delivery
placedAt
deliveredAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 319,
  "userId": 60,
  "restaurantId": 5,
  "items": [
    {
      "menuItemId": 47,
      "quantity": 3,
      "unitPrice": 56.05,
      "lineTotal": 168.15
    },
    {
      "menuItemId": 51,
      "quantity": 3,
      "unitPrice": 58.78,
      "lineTotal": 176.34
    },
    {
      "menuItemId": 46,
      "quantity": 1,
      "unitPrice": 17.44,
      "lineTotal": 17.44
    },
    {
      "menuItemId": 49,
      "quantity": 3,
      "unitPrice": 78.67,
      "lineTotal": 236.01
    },
    {
      "menuItemId": 48,
      "quantity": 3,
      "unitPrice": 57.67,
      "lineTotal": 173.01
    }
  ],
  "subtotal": 770.95,
  "deliveryFee": 6.15,
  "tip": 11.36,
  "total": 788.46,
  "currency": "USD",
  "status": "out_for_delivery",
  "placedAt": "2026-04-17T22:22:12.118Z",
  "deliveredAt": null
}