example-data.com

orders / #398

userId
Dasia Volkman @dasia_volkman65
status
delivered
currency
USD
subtotal
3615.28
tax
316.34
shipping
0
total
3931.62
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/orders/398" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/orders/398"
);
const order = await res.json();
import type { Order } from "https://example-data.com/types/orders.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/orders/398"
);
const order = (await res.json()) as Order;
import requests

res = requests.get(
    "https://example-data.com/api/v1/orders/398"
)
order = res.json()
{
  "id": 398,
  "userId": 219,
  "status": "delivered",
  "currency": "USD",
  "subtotal": 3615.28,
  "tax": 316.34,
  "shipping": 0,
  "total": 3931.62,
  "placedAt": "2025-03-28T20:03:55.183Z",
  "shippedAt": "2025-03-30T05:23:26.966Z",
  "deliveredAt": "2025-04-06T08:52:55.286Z",
  "createdAt": "2025-03-28T20:03:55.183Z",
  "updatedAt": "2025-04-06T08:52:55.286Z"
}
Draftbit