example-data.com

food-orders / #78

userId
Dovie Gorczany @dovie.gorczany
restaurantId
Rodriguez, Nicolas and Schneider · New Anthony · ★ 4.9
items
[
  {
    "menuItemId": 754,
    "quantity": 1,
    "unitPrice": 67.38,
    "lineTotal": 67.38
  },
  {
    "menuItemId": 759,
    "quantity": 4,
    "unitPrice": 3.05,
    "lineTotal": 12.2
  },
  {
    "menuItemId": 761,
    "quantity": 2,
    "unitPrice": 24.15,
    "lineTotal": 48.3
  },
  {
    "menuItemId": 755,
    "quantity": 2,
    "unitPrice": 59.2,
    "lineTotal": 118.4
  },
  {
    "menuItemId": 760,
    "quantity": 1,
    "unitPrice": 78.81,
    "lineTotal": 78.81
  }
]
subtotal
325.09
deliveryFee
5.09
tip
1.47
total
331.65
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/78"
)
food_order = res.json()
{
  "id": 78,
  "userId": 111,
  "restaurantId": 50,
  "items": [
    {
      "menuItemId": 754,
      "quantity": 1,
      "unitPrice": 67.38,
      "lineTotal": 67.38
    },
    {
      "menuItemId": 759,
      "quantity": 4,
      "unitPrice": 3.05,
      "lineTotal": 12.2
    },
    {
      "menuItemId": 761,
      "quantity": 2,
      "unitPrice": 24.15,
      "lineTotal": 48.3
    },
    {
      "menuItemId": 755,
      "quantity": 2,
      "unitPrice": 59.2,
      "lineTotal": 118.4
    },
    {
      "menuItemId": 760,
      "quantity": 1,
      "unitPrice": 78.81,
      "lineTotal": 78.81
    }
  ],
  "subtotal": 325.09,
  "deliveryFee": 5.09,
  "tip": 1.47,
  "total": 331.65,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-04-25T17:28:46.993Z",
  "deliveredAt": "2026-04-25T18:58:09.471Z"
}
Draftbit