example-data.com

orders / #452

userId
Porter Dooley @porter.dooley
status
confirmed
currency
USD
subtotal
1356.52
tax
118.7
shipping
0
total
1475.22
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/452"
)
order = res.json()
{
  "id": 452,
  "userId": 135,
  "status": "confirmed",
  "currency": "USD",
  "subtotal": 1356.52,
  "tax": 118.7,
  "shipping": 0,
  "total": 1475.22,
  "placedAt": "2025-05-31T08:28:44.064Z",
  "shippedAt": null,
  "deliveredAt": null,
  "createdAt": "2025-05-31T08:28:44.064Z",
  "updatedAt": "2025-05-31T08:28:44.064Z"
}
Draftbit