example-data.com

food-orders / #155

userId
Zachariah Herzog @zachariah_herzog42
restaurantId
Blanda and Sons · New Odashire · ★ 4.1
items
[
  {
    "menuItemId": 895,
    "quantity": 2,
    "unitPrice": 14.83,
    "lineTotal": 29.66
  },
  {
    "menuItemId": 889,
    "quantity": 4,
    "unitPrice": 9.6,
    "lineTotal": 38.4
  },
  {
    "menuItemId": 897,
    "quantity": 2,
    "unitPrice": 27.35,
    "lineTotal": 54.7
  },
  {
    "menuItemId": 888,
    "quantity": 2,
    "unitPrice": 7.53,
    "lineTotal": 15.06
  }
]
subtotal
137.82
deliveryFee
5.58
tip
1.17
total
144.57
currency
USD
status
out_for_delivery
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/155"
)
food_order = res.json()
{
  "id": 155,
  "userId": 15,
  "restaurantId": 59,
  "items": [
    {
      "menuItemId": 895,
      "quantity": 2,
      "unitPrice": 14.83,
      "lineTotal": 29.66
    },
    {
      "menuItemId": 889,
      "quantity": 4,
      "unitPrice": 9.6,
      "lineTotal": 38.4
    },
    {
      "menuItemId": 897,
      "quantity": 2,
      "unitPrice": 27.35,
      "lineTotal": 54.7
    },
    {
      "menuItemId": 888,
      "quantity": 2,
      "unitPrice": 7.53,
      "lineTotal": 15.06
    }
  ],
  "subtotal": 137.82,
  "deliveryFee": 5.58,
  "tip": 1.17,
  "total": 144.57,
  "currency": "USD",
  "status": "out_for_delivery",
  "placedAt": "2025-06-12T11:21:09.925Z",
  "deliveredAt": null
}
Draftbit