example-data.com

food-orders / #239

userId
Wendy Borer @wendy_borer
restaurantId
Greenfelder LLC · Jaydentown · ★ 3.2
items
[
  {
    "menuItemId": 186,
    "quantity": 2,
    "unitPrice": 64.97,
    "lineTotal": 129.94
  },
  {
    "menuItemId": 183,
    "quantity": 1,
    "unitPrice": 14.2,
    "lineTotal": 14.2
  },
  {
    "menuItemId": 182,
    "quantity": 3,
    "unitPrice": 26.93,
    "lineTotal": 80.79
  },
  {
    "menuItemId": 185,
    "quantity": 1,
    "unitPrice": 20.15,
    "lineTotal": 20.15
  }
]
subtotal
245.08
deliveryFee
0.28
tip
0.44
total
245.8
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/food-orders/239" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/food-orders/239"
);
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/239"
);
const foodOrder = (await res.json()) as FoodOrder;
import requests

res = requests.get(
    "https://example-data.com/api/v1/food-orders/239"
)
food_order = res.json()
{
  "id": 239,
  "userId": 141,
  "restaurantId": 13,
  "items": [
    {
      "menuItemId": 186,
      "quantity": 2,
      "unitPrice": 64.97,
      "lineTotal": 129.94
    },
    {
      "menuItemId": 183,
      "quantity": 1,
      "unitPrice": 14.2,
      "lineTotal": 14.2
    },
    {
      "menuItemId": 182,
      "quantity": 3,
      "unitPrice": 26.93,
      "lineTotal": 80.79
    },
    {
      "menuItemId": 185,
      "quantity": 1,
      "unitPrice": 20.15,
      "lineTotal": 20.15
    }
  ],
  "subtotal": 245.08,
  "deliveryFee": 0.28,
  "tip": 0.44,
  "total": 245.8,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2025-05-17T09:00:33.771Z",
  "deliveredAt": "2025-05-17T12:01:01.408Z"
}
Draftbit