orders #727
- userId
-
Tabitha McKenzie @tabitha_mckenzie
- status
- shipped
- currency
- USD
- subtotal
- 4138.11
- tax
- 362.08
- shipping
- 0
- total
- 4500.19
- placedAt
- shippedAt
- deliveredAt
- —
- createdAt
- updatedAt
Overview
orders / #727
#727
#727
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/727" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/727" ); 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/727"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/727"
)
order = res.json() Response
{
"id": 727,
"userId": 98,
"status": "shipped",
"currency": "USD",
"subtotal": 4138.11,
"tax": 362.08,
"shipping": 0,
"total": 4500.19,
"placedAt": "2025-05-28T12:34:52.980Z",
"shippedAt": "2025-05-30T22:02:58.900Z",
"deliveredAt": null,
"createdAt": "2025-05-28T12:34:52.980Z",
"updatedAt": "2025-05-30T22:02:58.900Z"
}