example-data.com

orders / #305

userId
Orrin Grant @orrin.grant42
status
confirmed
currency
USD
subtotal
1779.4
tax
155.7
shipping
0
total
1935.1
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/305"
)
order = res.json()
{
  "id": 305,
  "userId": 152,
  "status": "confirmed",
  "currency": "USD",
  "subtotal": 1779.4,
  "tax": 155.7,
  "shipping": 0,
  "total": 1935.1,
  "placedAt": "2026-02-09T22:20:43.527Z",
  "shippedAt": null,
  "deliveredAt": null,
  "createdAt": "2026-02-09T22:20:43.527Z",
  "updatedAt": "2026-02-09T22:20:43.527Z"
}
Draftbit