example-data.com

orders / #121

userId
Amparo Dietrich @amparo.dietrich
status
delivered
currency
USD
subtotal
768.88
tax
67.28
shipping
0
total
836.16
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/121"
)
order = res.json()
{
  "id": 121,
  "userId": 159,
  "status": "delivered",
  "currency": "USD",
  "subtotal": 768.88,
  "tax": 67.28,
  "shipping": 0,
  "total": 836.16,
  "placedAt": "2025-07-08T01:04:47.638Z",
  "shippedAt": "2025-07-10T11:21:04.630Z",
  "deliveredAt": "2025-07-12T13:23:50.542Z",
  "createdAt": "2025-07-08T01:04:47.638Z",
  "updatedAt": "2025-07-12T13:23:50.542Z"
}
Draftbit