example-data.com

food-orders / #131

userId
Kenya Abshire @kenya.abshire
restaurantId
O'Hara and Sons · New Eloisaboro · ★ 4.4
items
[
  {
    "menuItemId": 3,
    "quantity": 4,
    "unitPrice": 9.71,
    "lineTotal": 38.84
  },
  {
    "menuItemId": 1,
    "quantity": 3,
    "unitPrice": 56.79,
    "lineTotal": 170.37
  },
  {
    "menuItemId": 7,
    "quantity": 4,
    "unitPrice": 35.62,
    "lineTotal": 142.48
  },
  {
    "menuItemId": 2,
    "quantity": 3,
    "unitPrice": 4.82,
    "lineTotal": 14.46
  }
]
subtotal
366.15
deliveryFee
4.3
tip
4.96
total
375.41
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/131"
)
food_order = res.json()
{
  "id": 131,
  "userId": 18,
  "restaurantId": 1,
  "items": [
    {
      "menuItemId": 3,
      "quantity": 4,
      "unitPrice": 9.71,
      "lineTotal": 38.84
    },
    {
      "menuItemId": 1,
      "quantity": 3,
      "unitPrice": 56.79,
      "lineTotal": 170.37
    },
    {
      "menuItemId": 7,
      "quantity": 4,
      "unitPrice": 35.62,
      "lineTotal": 142.48
    },
    {
      "menuItemId": 2,
      "quantity": 3,
      "unitPrice": 4.82,
      "lineTotal": 14.46
    }
  ],
  "subtotal": 366.15,
  "deliveryFee": 4.3,
  "tip": 4.96,
  "total": 375.41,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2025-07-17T16:10:03.593Z",
  "deliveredAt": "2025-07-17T18:38:07.446Z"
}
Draftbit