orders #222
- userId
-
Esperanza Casper @esperanza_casper
- status
- shipped
- currency
- USD
- subtotal
- 1260.84
- tax
- 110.32
- shipping
- 0
- total
- 1371.16
- placedAt
- shippedAt
- deliveredAt
- —
- createdAt
- updatedAt
Overview
orders / #222
#222
#222
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/222" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/222" ); 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/222"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/222"
)
order = res.json() Response
{
"id": 222,
"userId": 97,
"status": "shipped",
"currency": "USD",
"subtotal": 1260.84,
"tax": 110.32,
"shipping": 0,
"total": 1371.16,
"placedAt": "2026-02-13T00:16:17.068Z",
"shippedAt": "2026-02-15T11:23:15.052Z",
"deliveredAt": null,
"createdAt": "2026-02-13T00:16:17.068Z",
"updatedAt": "2026-02-15T11:23:15.052Z"
}