orders / #1
- userId
-
Wade Upton @wade_upton78
- status
- shipped
- currency
- USD
- subtotal
- 1635.7
- tax
- 143.12
- shipping
- 0
- total
- 1778.82
- placedAt
- shippedAt
- deliveredAt
- —
- createdAt
- updatedAt
Component variants
Related
References
Referenced by
curl -sS \
"https://example-data.com/api/v1/orders/1" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/orders/1"
);
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/1"
);
const order = (await res.json()) as Order;import requests
res = requests.get(
"https://example-data.com/api/v1/orders/1"
)
order = res.json() {
"id": 1,
"userId": 129,
"status": "shipped",
"currency": "USD",
"subtotal": 1635.7,
"tax": 143.12,
"shipping": 0,
"total": 1778.82,
"placedAt": "2025-08-01T09:53:49.279Z",
"shippedAt": "2025-08-02T11:26:14.340Z",
"deliveredAt": null,
"createdAt": "2025-08-01T09:53:49.279Z",
"updatedAt": "2025-08-02T11:26:14.340Z"
}