example-data.com

food-orders / #152

userId
Rubye Emmerich @rubye.emmerich
restaurantId
Ferry LLC · South Gilbertoton · ★ 3.8
items
[
  {
    "menuItemId": 866,
    "quantity": 2,
    "unitPrice": 54.61,
    "lineTotal": 109.22
  },
  {
    "menuItemId": 871,
    "quantity": 1,
    "unitPrice": 58.28,
    "lineTotal": 58.28
  },
  {
    "menuItemId": 868,
    "quantity": 2,
    "unitPrice": 16.05,
    "lineTotal": 32.1
  },
  {
    "menuItemId": 853,
    "quantity": 4,
    "unitPrice": 25.25,
    "lineTotal": 101
  }
]
subtotal
300.6
deliveryFee
2.56
tip
3.84
total
307
currency
USD
status
cancelled
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/152"
)
food_order = res.json()
{
  "id": 152,
  "userId": 225,
  "restaurantId": 57,
  "items": [
    {
      "menuItemId": 866,
      "quantity": 2,
      "unitPrice": 54.61,
      "lineTotal": 109.22
    },
    {
      "menuItemId": 871,
      "quantity": 1,
      "unitPrice": 58.28,
      "lineTotal": 58.28
    },
    {
      "menuItemId": 868,
      "quantity": 2,
      "unitPrice": 16.05,
      "lineTotal": 32.1
    },
    {
      "menuItemId": 853,
      "quantity": 4,
      "unitPrice": 25.25,
      "lineTotal": 101
    }
  ],
  "subtotal": 300.6,
  "deliveryFee": 2.56,
  "tip": 3.84,
  "total": 307,
  "currency": "USD",
  "status": "cancelled",
  "placedAt": "2026-04-16T16:29:59.980Z",
  "deliveredAt": null
}
Draftbit