example-data.com

food-orders / #199

userId
Selina Flatley @selina_flatley
restaurantId
Bartell, Brakus and Schamberger · New Terrytown · ★ 3.3
items
[
  {
    "menuItemId": 783,
    "quantity": 1,
    "unitPrice": 50.23,
    "lineTotal": 50.23
  },
  {
    "menuItemId": 781,
    "quantity": 2,
    "unitPrice": 77.53,
    "lineTotal": 155.06
  },
  {
    "menuItemId": 780,
    "quantity": 4,
    "unitPrice": 58.6,
    "lineTotal": 234.4
  },
  {
    "menuItemId": 779,
    "quantity": 2,
    "unitPrice": 58.87,
    "lineTotal": 117.74
  },
  {
    "menuItemId": 784,
    "quantity": 2,
    "unitPrice": 32.58,
    "lineTotal": 65.16
  }
]
subtotal
622.59
deliveryFee
3.68
tip
1.79
total
628.06
currency
USD
status
placed
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/199"
)
food_order = res.json()
{
  "id": 199,
  "userId": 193,
  "restaurantId": 52,
  "items": [
    {
      "menuItemId": 783,
      "quantity": 1,
      "unitPrice": 50.23,
      "lineTotal": 50.23
    },
    {
      "menuItemId": 781,
      "quantity": 2,
      "unitPrice": 77.53,
      "lineTotal": 155.06
    },
    {
      "menuItemId": 780,
      "quantity": 4,
      "unitPrice": 58.6,
      "lineTotal": 234.4
    },
    {
      "menuItemId": 779,
      "quantity": 2,
      "unitPrice": 58.87,
      "lineTotal": 117.74
    },
    {
      "menuItemId": 784,
      "quantity": 2,
      "unitPrice": 32.58,
      "lineTotal": 65.16
    }
  ],
  "subtotal": 622.59,
  "deliveryFee": 3.68,
  "tip": 1.79,
  "total": 628.06,
  "currency": "USD",
  "status": "placed",
  "placedAt": "2025-09-20T00:04:31.178Z",
  "deliveredAt": null
}
Draftbit