orders #894
- userId
-
Trace Witting-Stamm @trace_witting-stamm17
- status
- shipped
- currency
- USD
- subtotal
- 651.24
- tax
- 56.98
- shipping
- 0
- total
- 708.22
- placedAt
- shippedAt
- deliveredAt
- —
- createdAt
- updatedAt
Overview
orders / #894
#894
#894
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/894" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/894" ); const order = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/orders.d.ts https://example-data.com/types/orders.d.ts
import type { Order } from "./types/orders";
const res = await fetch(
"https://example-data.com/api/v1/orders/894"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/894"
)
order = res.json() Response
{
"id": 894,
"userId": 42,
"status": "shipped",
"currency": "USD",
"subtotal": 651.24,
"tax": 56.98,
"shipping": 0,
"total": 708.22,
"placedAt": "2025-10-19T03:50:45.418Z",
"shippedAt": "2025-10-21T04:08:01.082Z",
"deliveredAt": null,
"createdAt": "2025-10-19T03:50:45.418Z",
"updatedAt": "2025-10-21T04:08:01.082Z"
}