example-data.com

orders / #253

userId
Hermina West @hermina.west3
status
shipped
currency
USD
subtotal
68.4
tax
5.99
shipping
9.99
total
84.38
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/253"
)
order = res.json()
{
  "id": 253,
  "userId": 51,
  "status": "shipped",
  "currency": "USD",
  "subtotal": 68.4,
  "tax": 5.99,
  "shipping": 9.99,
  "total": 84.38,
  "placedAt": "2025-02-01T05:05:13.223Z",
  "shippedAt": "2025-02-02T10:11:30.051Z",
  "deliveredAt": null,
  "createdAt": "2025-02-01T05:05:13.223Z",
  "updatedAt": "2025-02-02T10:11:30.051Z"
}
Draftbit