example-data.com

food-orders / #185

userId
D'angelo Kling @dangelo_kling6
restaurantId
Ferry LLC · South Gilbertoton · ★ 3.8
items
[
  {
    "menuItemId": 854,
    "quantity": 4,
    "unitPrice": 31.03,
    "lineTotal": 124.12
  },
  {
    "menuItemId": 869,
    "quantity": 1,
    "unitPrice": 18.67,
    "lineTotal": 18.67
  },
  {
    "menuItemId": 860,
    "quantity": 3,
    "unitPrice": 17.53,
    "lineTotal": 52.59
  },
  {
    "menuItemId": 850,
    "quantity": 4,
    "unitPrice": 3.23,
    "lineTotal": 12.92
  }
]
subtotal
208.3
deliveryFee
1.89
tip
1.66
total
211.85
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/185"
)
food_order = res.json()
{
  "id": 185,
  "userId": 188,
  "restaurantId": 57,
  "items": [
    {
      "menuItemId": 854,
      "quantity": 4,
      "unitPrice": 31.03,
      "lineTotal": 124.12
    },
    {
      "menuItemId": 869,
      "quantity": 1,
      "unitPrice": 18.67,
      "lineTotal": 18.67
    },
    {
      "menuItemId": 860,
      "quantity": 3,
      "unitPrice": 17.53,
      "lineTotal": 52.59
    },
    {
      "menuItemId": 850,
      "quantity": 4,
      "unitPrice": 3.23,
      "lineTotal": 12.92
    }
  ],
  "subtotal": 208.3,
  "deliveryFee": 1.89,
  "tip": 1.66,
  "total": 211.85,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2025-08-22T14:38:15.707Z",
  "deliveredAt": "2025-08-22T18:37:30.422Z"
}
Draftbit