example-data.com

food-orders / #124

userId
Adrain Kris-Hermiston @adrain.kris-hermiston
restaurantId
Bergstrom LLC · South Gate · ★ 3.0
items
[
  {
    "menuItemId": 993,
    "quantity": 1,
    "unitPrice": 27.62,
    "lineTotal": 27.62
  },
  {
    "menuItemId": 998,
    "quantity": 3,
    "unitPrice": 25.06,
    "lineTotal": 75.18
  },
  {
    "menuItemId": 992,
    "quantity": 2,
    "unitPrice": 79.66,
    "lineTotal": 159.32
  },
  {
    "menuItemId": 997,
    "quantity": 2,
    "unitPrice": 3.24,
    "lineTotal": 6.48
  },
  {
    "menuItemId": 1002,
    "quantity": 2,
    "unitPrice": 9.03,
    "lineTotal": 18.06
  }
]
subtotal
286.66
deliveryFee
5.68
tip
5.97
total
298.31
currency
USD
status
placed
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/124"
)
food_order = res.json()
{
  "id": 124,
  "userId": 206,
  "restaurantId": 66,
  "items": [
    {
      "menuItemId": 993,
      "quantity": 1,
      "unitPrice": 27.62,
      "lineTotal": 27.62
    },
    {
      "menuItemId": 998,
      "quantity": 3,
      "unitPrice": 25.06,
      "lineTotal": 75.18
    },
    {
      "menuItemId": 992,
      "quantity": 2,
      "unitPrice": 79.66,
      "lineTotal": 159.32
    },
    {
      "menuItemId": 997,
      "quantity": 2,
      "unitPrice": 3.24,
      "lineTotal": 6.48
    },
    {
      "menuItemId": 1002,
      "quantity": 2,
      "unitPrice": 9.03,
      "lineTotal": 18.06
    }
  ],
  "subtotal": 286.66,
  "deliveryFee": 5.68,
  "tip": 5.97,
  "total": 298.31,
  "currency": "USD",
  "status": "placed",
  "placedAt": "2025-10-25T18:43:43.374Z",
  "deliveredAt": null
}
Draftbit