orders #966
- userId
-
Eveline Emard @eveline.emard
- status
- delivered
- currency
- USD
- subtotal
- 2270.09
- tax
- 198.63
- shipping
- 0
- total
- 2468.72
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #966
#966
#966
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/966" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/966" ); 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/966"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/966"
)
order = res.json() Response
{
"id": 966,
"userId": 118,
"status": "delivered",
"currency": "USD",
"subtotal": 2270.09,
"tax": 198.63,
"shipping": 0,
"total": 2468.72,
"placedAt": "2025-11-03T16:58:36.132Z",
"shippedAt": "2025-11-05T00:26:18.221Z",
"deliveredAt": "2025-11-11T02:42:20.065Z",
"createdAt": "2025-11-03T16:58:36.132Z",
"updatedAt": "2025-11-11T02:42:20.065Z"
}