example-data.com

food-orders / #75

userId
Zachariah Herzog @zachariah_herzog42
restaurantId
Kshlerin - Champlin · Marquardtfort · ★ 4.4
items
[
  {
    "menuItemId": 158,
    "quantity": 2,
    "unitPrice": 5.91,
    "lineTotal": 11.82
  },
  {
    "menuItemId": 157,
    "quantity": 2,
    "unitPrice": 44.83,
    "lineTotal": 89.66
  },
  {
    "menuItemId": 162,
    "quantity": 4,
    "unitPrice": 46.06,
    "lineTotal": 184.24
  },
  {
    "menuItemId": 151,
    "quantity": 3,
    "unitPrice": 11.98,
    "lineTotal": 35.94
  },
  {
    "menuItemId": 156,
    "quantity": 4,
    "unitPrice": 30.49,
    "lineTotal": 121.96
  }
]
subtotal
443.62
deliveryFee
4.3
tip
6.97
total
454.89
currency
USD
status
cancelled
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/75"
)
food_order = res.json()
{
  "id": 75,
  "userId": 15,
  "restaurantId": 11,
  "items": [
    {
      "menuItemId": 158,
      "quantity": 2,
      "unitPrice": 5.91,
      "lineTotal": 11.82
    },
    {
      "menuItemId": 157,
      "quantity": 2,
      "unitPrice": 44.83,
      "lineTotal": 89.66
    },
    {
      "menuItemId": 162,
      "quantity": 4,
      "unitPrice": 46.06,
      "lineTotal": 184.24
    },
    {
      "menuItemId": 151,
      "quantity": 3,
      "unitPrice": 11.98,
      "lineTotal": 35.94
    },
    {
      "menuItemId": 156,
      "quantity": 4,
      "unitPrice": 30.49,
      "lineTotal": 121.96
    }
  ],
  "subtotal": 443.62,
  "deliveryFee": 4.3,
  "tip": 6.97,
  "total": 454.89,
  "currency": "USD",
  "status": "cancelled",
  "placedAt": "2025-12-01T03:16:57.032Z",
  "deliveredAt": null
}
Draftbit