example-data.com

food-orders / #229

userId
Americo Hoppe @americo_hoppe57
restaurantId
Hickle, Glover and Christiansen · Zulauffurt · ★ 3.7
items
[
  {
    "menuItemId": 304,
    "quantity": 1,
    "unitPrice": 21.09,
    "lineTotal": 21.09
  },
  {
    "menuItemId": 315,
    "quantity": 1,
    "unitPrice": 5,
    "lineTotal": 5
  },
  {
    "menuItemId": 319,
    "quantity": 1,
    "unitPrice": 26.31,
    "lineTotal": 26.31
  },
  {
    "menuItemId": 323,
    "quantity": 4,
    "unitPrice": 75.38,
    "lineTotal": 301.52
  },
  {
    "menuItemId": 322,
    "quantity": 2,
    "unitPrice": 22.66,
    "lineTotal": 45.32
  }
]
subtotal
399.24
deliveryFee
7.13
tip
1.69
total
408.06
currency
USD
status
placed
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/229"
)
food_order = res.json()
{
  "id": 229,
  "userId": 177,
  "restaurantId": 20,
  "items": [
    {
      "menuItemId": 304,
      "quantity": 1,
      "unitPrice": 21.09,
      "lineTotal": 21.09
    },
    {
      "menuItemId": 315,
      "quantity": 1,
      "unitPrice": 5,
      "lineTotal": 5
    },
    {
      "menuItemId": 319,
      "quantity": 1,
      "unitPrice": 26.31,
      "lineTotal": 26.31
    },
    {
      "menuItemId": 323,
      "quantity": 4,
      "unitPrice": 75.38,
      "lineTotal": 301.52
    },
    {
      "menuItemId": 322,
      "quantity": 2,
      "unitPrice": 22.66,
      "lineTotal": 45.32
    }
  ],
  "subtotal": 399.24,
  "deliveryFee": 7.13,
  "tip": 1.69,
  "total": 408.06,
  "currency": "USD",
  "status": "placed",
  "placedAt": "2025-01-22T14:38:15.339Z",
  "deliveredAt": null
}
Draftbit