example-data.com

orders / #287

userId
Della Labadie @della_labadie
status
confirmed
currency
USD
subtotal
783.92
tax
68.59
shipping
0
total
852.51
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/287"
)
order = res.json()
{
  "id": 287,
  "userId": 46,
  "status": "confirmed",
  "currency": "USD",
  "subtotal": 783.92,
  "tax": 68.59,
  "shipping": 0,
  "total": 852.51,
  "placedAt": "2025-08-21T06:15:32.598Z",
  "shippedAt": null,
  "deliveredAt": null,
  "createdAt": "2025-08-21T06:15:32.598Z",
  "updatedAt": "2025-08-21T06:15:32.598Z"
}
Draftbit