orders #801
- userId
-
Enos Hamill @enos_hamill
- status
- delivered
- currency
- USD
- subtotal
- 5298.85
- tax
- 463.65
- shipping
- 0
- total
- 5762.5
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #801
#801
#801
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/801" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/801" ); 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/801"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/801"
)
order = res.json() Response
{
"id": 801,
"userId": 65,
"status": "delivered",
"currency": "USD",
"subtotal": 5298.85,
"tax": 463.65,
"shipping": 0,
"total": 5762.5,
"placedAt": "2025-06-22T04:31:53.895Z",
"shippedAt": "2025-06-23T16:44:48.856Z",
"deliveredAt": "2025-06-27T08:49:29.392Z",
"createdAt": "2025-06-22T04:31:53.895Z",
"updatedAt": "2025-06-27T08:49:29.392Z"
}