example-data.com

food-orders / #90

userId
Beau Stiedemann @beau.stiedemann
restaurantId
D'Amore, Quitzon and Satterfield · Bruenberg · ★ 4.6
items
[
  {
    "menuItemId": 507,
    "quantity": 3,
    "unitPrice": 18.84,
    "lineTotal": 56.52
  },
  {
    "menuItemId": 508,
    "quantity": 1,
    "unitPrice": 9.58,
    "lineTotal": 9.58
  },
  {
    "menuItemId": 506,
    "quantity": 2,
    "unitPrice": 10.17,
    "lineTotal": 20.34
  },
  {
    "menuItemId": 510,
    "quantity": 4,
    "unitPrice": 3.06,
    "lineTotal": 12.24
  },
  {
    "menuItemId": 504,
    "quantity": 3,
    "unitPrice": 77.05,
    "lineTotal": 231.15
  }
]
subtotal
329.83
deliveryFee
3.26
tip
2.9
total
335.99
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/90"
)
food_order = res.json()
{
  "id": 90,
  "userId": 64,
  "restaurantId": 34,
  "items": [
    {
      "menuItemId": 507,
      "quantity": 3,
      "unitPrice": 18.84,
      "lineTotal": 56.52
    },
    {
      "menuItemId": 508,
      "quantity": 1,
      "unitPrice": 9.58,
      "lineTotal": 9.58
    },
    {
      "menuItemId": 506,
      "quantity": 2,
      "unitPrice": 10.17,
      "lineTotal": 20.34
    },
    {
      "menuItemId": 510,
      "quantity": 4,
      "unitPrice": 3.06,
      "lineTotal": 12.24
    },
    {
      "menuItemId": 504,
      "quantity": 3,
      "unitPrice": 77.05,
      "lineTotal": 231.15
    }
  ],
  "subtotal": 329.83,
  "deliveryFee": 3.26,
  "tip": 2.9,
  "total": 335.99,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2025-04-12T16:51:14.161Z",
  "deliveredAt": "2025-04-12T19:41:31.843Z"
}
Draftbit