orders #988
- userId
-
Lazaro Rath @lazaro.rath42
- status
- delivered
- currency
- USD
- subtotal
- 249.42
- tax
- 21.82
- shipping
- 0
- total
- 271.24
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #988
#988
#988
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/988" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/988" ); 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/988"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/988"
)
order = res.json() Response
{
"id": 988,
"userId": 102,
"status": "delivered",
"currency": "USD",
"subtotal": 249.42,
"tax": 21.82,
"shipping": 0,
"total": 271.24,
"placedAt": "2026-03-23T21:09:20.825Z",
"shippedAt": "2026-03-26T09:20:52.241Z",
"deliveredAt": "2026-03-30T15:27:51.392Z",
"createdAt": "2026-03-23T21:09:20.825Z",
"updatedAt": "2026-03-30T15:27:51.392Z"
}