example-data.com

food-orders / #177

userId
Maymie Boehm @maymie.boehm90
restaurantId
McDermott - Metz · East Darlene · ★ 2.7
items
[
  {
    "menuItemId": 63,
    "quantity": 1,
    "unitPrice": 48.84,
    "lineTotal": 48.84
  },
  {
    "menuItemId": 56,
    "quantity": 1,
    "unitPrice": 55.67,
    "lineTotal": 55.67
  },
  {
    "menuItemId": 58,
    "quantity": 3,
    "unitPrice": 33.94,
    "lineTotal": 101.82
  },
  {
    "menuItemId": 57,
    "quantity": 4,
    "unitPrice": 33.8,
    "lineTotal": 135.2
  }
]
subtotal
341.53
deliveryFee
4.39
tip
4.41
total
350.33
currency
USD
status
out_for_delivery
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/177"
)
food_order = res.json()
{
  "id": 177,
  "userId": 48,
  "restaurantId": 6,
  "items": [
    {
      "menuItemId": 63,
      "quantity": 1,
      "unitPrice": 48.84,
      "lineTotal": 48.84
    },
    {
      "menuItemId": 56,
      "quantity": 1,
      "unitPrice": 55.67,
      "lineTotal": 55.67
    },
    {
      "menuItemId": 58,
      "quantity": 3,
      "unitPrice": 33.94,
      "lineTotal": 101.82
    },
    {
      "menuItemId": 57,
      "quantity": 4,
      "unitPrice": 33.8,
      "lineTotal": 135.2
    }
  ],
  "subtotal": 341.53,
  "deliveryFee": 4.39,
  "tip": 4.41,
  "total": 350.33,
  "currency": "USD",
  "status": "out_for_delivery",
  "placedAt": "2025-06-28T16:33:36.089Z",
  "deliveredAt": null
}
Draftbit