example-data.com

food-orders / #14

userId
Gerda Streich @gerda_streich
restaurantId
Murazik - Goodwin · Haneborough · ★ 3.2
items
[
  {
    "menuItemId": 843,
    "quantity": 4,
    "unitPrice": 71.91,
    "lineTotal": 287.64
  },
  {
    "menuItemId": 838,
    "quantity": 4,
    "unitPrice": 35.13,
    "lineTotal": 140.52
  },
  {
    "menuItemId": 844,
    "quantity": 1,
    "unitPrice": 53.05,
    "lineTotal": 53.05
  },
  {
    "menuItemId": 841,
    "quantity": 4,
    "unitPrice": 63.63,
    "lineTotal": 254.52
  },
  {
    "menuItemId": 842,
    "quantity": 4,
    "unitPrice": 25.18,
    "lineTotal": 100.72
  }
]
subtotal
836.45
deliveryFee
5.41
tip
1.03
total
842.89
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/14"
)
food_order = res.json()
{
  "id": 14,
  "userId": 126,
  "restaurantId": 56,
  "items": [
    {
      "menuItemId": 843,
      "quantity": 4,
      "unitPrice": 71.91,
      "lineTotal": 287.64
    },
    {
      "menuItemId": 838,
      "quantity": 4,
      "unitPrice": 35.13,
      "lineTotal": 140.52
    },
    {
      "menuItemId": 844,
      "quantity": 1,
      "unitPrice": 53.05,
      "lineTotal": 53.05
    },
    {
      "menuItemId": 841,
      "quantity": 4,
      "unitPrice": 63.63,
      "lineTotal": 254.52
    },
    {
      "menuItemId": 842,
      "quantity": 4,
      "unitPrice": 25.18,
      "lineTotal": 100.72
    }
  ],
  "subtotal": 836.45,
  "deliveryFee": 5.41,
  "tip": 1.03,
  "total": 842.89,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2025-11-16T11:52:10.193Z",
  "deliveredAt": "2025-11-16T13:15:36.581Z"
}
Draftbit