example-data.com

food-orders / #186

userId
Gwendolyn Wyman @gwendolyn.wyman87
restaurantId
Goldner - Labadie · Kylechester · ★ 3.3
items
[
  {
    "menuItemId": 985,
    "quantity": 4,
    "unitPrice": 48.98,
    "lineTotal": 195.92
  },
  {
    "menuItemId": 989,
    "quantity": 4,
    "unitPrice": 31.56,
    "lineTotal": 126.24
  },
  {
    "menuItemId": 986,
    "quantity": 4,
    "unitPrice": 65.66,
    "lineTotal": 262.64
  },
  {
    "menuItemId": 974,
    "quantity": 2,
    "unitPrice": 76.81,
    "lineTotal": 153.62
  },
  {
    "menuItemId": 975,
    "quantity": 4,
    "unitPrice": 5.04,
    "lineTotal": 20.16
  }
]
subtotal
758.58
deliveryFee
4.63
tip
3.5
total
766.71
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/186"
)
food_order = res.json()
{
  "id": 186,
  "userId": 40,
  "restaurantId": 65,
  "items": [
    {
      "menuItemId": 985,
      "quantity": 4,
      "unitPrice": 48.98,
      "lineTotal": 195.92
    },
    {
      "menuItemId": 989,
      "quantity": 4,
      "unitPrice": 31.56,
      "lineTotal": 126.24
    },
    {
      "menuItemId": 986,
      "quantity": 4,
      "unitPrice": 65.66,
      "lineTotal": 262.64
    },
    {
      "menuItemId": 974,
      "quantity": 2,
      "unitPrice": 76.81,
      "lineTotal": 153.62
    },
    {
      "menuItemId": 975,
      "quantity": 4,
      "unitPrice": 5.04,
      "lineTotal": 20.16
    }
  ],
  "subtotal": 758.58,
  "deliveryFee": 4.63,
  "tip": 3.5,
  "total": 766.71,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-04-18T04:13:48.586Z",
  "deliveredAt": "2026-04-18T08:09:19.623Z"
}
Draftbit