example-data.com

food-orders / #132

userId
Gwendolyn Wyman @gwendolyn.wyman87
restaurantId
Robel, Walter and Davis · Honolulu · ★ 4.4
items
[
  {
    "menuItemId": 16,
    "quantity": 2,
    "unitPrice": 49.73,
    "lineTotal": 99.46
  },
  {
    "menuItemId": 12,
    "quantity": 2,
    "unitPrice": 38.79,
    "lineTotal": 77.58
  },
  {
    "menuItemId": 23,
    "quantity": 1,
    "unitPrice": 14.72,
    "lineTotal": 14.72
  },
  {
    "menuItemId": 27,
    "quantity": 3,
    "unitPrice": 52.95,
    "lineTotal": 158.85
  },
  {
    "menuItemId": 13,
    "quantity": 3,
    "unitPrice": 40.87,
    "lineTotal": 122.61
  }
]
subtotal
473.22
deliveryFee
5.64
tip
2.34
total
481.2
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/food-orders/132" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/food-orders/132"
);
const foodOrder = await res.json();
import type { FoodOrder } from "https://example-data.com/types/food-orders.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/food-orders/132"
);
const foodOrder = (await res.json()) as FoodOrder;
import requests

res = requests.get(
    "https://example-data.com/api/v1/food-orders/132"
)
food_order = res.json()
{
  "id": 132,
  "userId": 40,
  "restaurantId": 2,
  "items": [
    {
      "menuItemId": 16,
      "quantity": 2,
      "unitPrice": 49.73,
      "lineTotal": 99.46
    },
    {
      "menuItemId": 12,
      "quantity": 2,
      "unitPrice": 38.79,
      "lineTotal": 77.58
    },
    {
      "menuItemId": 23,
      "quantity": 1,
      "unitPrice": 14.72,
      "lineTotal": 14.72
    },
    {
      "menuItemId": 27,
      "quantity": 3,
      "unitPrice": 52.95,
      "lineTotal": 158.85
    },
    {
      "menuItemId": 13,
      "quantity": 3,
      "unitPrice": 40.87,
      "lineTotal": 122.61
    }
  ],
  "subtotal": 473.22,
  "deliveryFee": 5.64,
  "tip": 2.34,
  "total": 481.2,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2025-05-21T19:14:19.946Z",
  "deliveredAt": "2025-05-21T21:52:08.091Z"
}
Draftbit