orders #15
- userId
-
Autumn Bartell @autumn.bartell95
- status
- delivered
- currency
- USD
- subtotal
- 1169.88
- tax
- 102.36
- shipping
- 0
- total
- 1272.24
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #15
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/15" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/15" ); 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/15"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/15"
)
order = res.json() Response
{
"id": 15,
"userId": 58,
"status": "delivered",
"currency": "USD",
"subtotal": 1169.88,
"tax": 102.36,
"shipping": 0,
"total": 1272.24,
"placedAt": "2026-04-20T15:50:38.249Z",
"shippedAt": "2026-04-22T11:35:37.062Z",
"deliveredAt": "2026-04-28T06:23:13.396Z",
"createdAt": "2026-04-20T15:50:38.249Z",
"updatedAt": "2026-04-28T06:23:13.396Z"
}