orders #561
- userId
-
Lenny Howe @lenny.howe
- status
- delivered
- currency
- USD
- subtotal
- 2488.9
- tax
- 217.78
- shipping
- 0
- total
- 2706.68
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #561
#561
#561
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/561" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/561" ); 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/561"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/561"
)
order = res.json() Response
{
"id": 561,
"userId": 37,
"status": "delivered",
"currency": "USD",
"subtotal": 2488.9,
"tax": 217.78,
"shipping": 0,
"total": 2706.68,
"placedAt": "2025-06-17T00:27:27.227Z",
"shippedAt": "2025-06-18T21:58:23.006Z",
"deliveredAt": "2025-06-22T11:21:45.201Z",
"createdAt": "2025-06-17T00:27:27.227Z",
"updatedAt": "2025-06-22T11:21:45.201Z"
}