orders #104
- userId
-
Gavin Lowe @gavin_lowe
- status
- delivered
- currency
- USD
- subtotal
- 1800.26
- tax
- 157.52
- shipping
- 0
- total
- 1957.78
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #104
#104
#104
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/104" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/104" ); 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/104"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/104"
)
order = res.json() Response
{
"id": 104,
"userId": 17,
"status": "delivered",
"currency": "USD",
"subtotal": 1800.26,
"tax": 157.52,
"shipping": 0,
"total": 1957.78,
"placedAt": "2026-01-16T07:31:37.816Z",
"shippedAt": "2026-01-18T19:18:31.425Z",
"deliveredAt": "2026-01-22T00:21:16.952Z",
"createdAt": "2026-01-16T07:31:37.816Z",
"updatedAt": "2026-01-22T00:21:16.952Z"
}