example-data.com

food-orders / #82

userId
Britney Haag @britney.haag
restaurantId
Greenfelder LLC · Jaydentown · ★ 3.2
items
[
  {
    "menuItemId": 186,
    "quantity": 3,
    "unitPrice": 64.97,
    "lineTotal": 194.91
  },
  {
    "menuItemId": 184,
    "quantity": 2,
    "unitPrice": 77.13,
    "lineTotal": 154.26
  },
  {
    "menuItemId": 182,
    "quantity": 3,
    "unitPrice": 26.93,
    "lineTotal": 80.79
  },
  {
    "menuItemId": 185,
    "quantity": 3,
    "unitPrice": 20.15,
    "lineTotal": 60.45
  },
  {
    "menuItemId": 183,
    "quantity": 2,
    "unitPrice": 14.2,
    "lineTotal": 28.4
  }
]
subtotal
518.81
deliveryFee
1.36
tip
5.75
total
525.92
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/82"
)
food_order = res.json()
{
  "id": 82,
  "userId": 133,
  "restaurantId": 13,
  "items": [
    {
      "menuItemId": 186,
      "quantity": 3,
      "unitPrice": 64.97,
      "lineTotal": 194.91
    },
    {
      "menuItemId": 184,
      "quantity": 2,
      "unitPrice": 77.13,
      "lineTotal": 154.26
    },
    {
      "menuItemId": 182,
      "quantity": 3,
      "unitPrice": 26.93,
      "lineTotal": 80.79
    },
    {
      "menuItemId": 185,
      "quantity": 3,
      "unitPrice": 20.15,
      "lineTotal": 60.45
    },
    {
      "menuItemId": 183,
      "quantity": 2,
      "unitPrice": 14.2,
      "lineTotal": 28.4
    }
  ],
  "subtotal": 518.81,
  "deliveryFee": 1.36,
  "tip": 5.75,
  "total": 525.92,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-03-04T10:58:04.253Z",
  "deliveredAt": "2026-03-04T14:14:22.539Z"
}
Draftbit