orders #574
- userId
-
Sarah West @sarah.west
- status
- shipped
- currency
- USD
- subtotal
- 450.4
- tax
- 39.41
- shipping
- 0
- total
- 489.81
- placedAt
- shippedAt
- deliveredAt
- —
- createdAt
- updatedAt
Overview
orders / #574
#574
#574
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/574" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/574" ); 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/574"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/574"
)
order = res.json() Response
{
"id": 574,
"userId": 217,
"status": "shipped",
"currency": "USD",
"subtotal": 450.4,
"tax": 39.41,
"shipping": 0,
"total": 489.81,
"placedAt": "2025-11-10T16:34:58.708Z",
"shippedAt": "2025-11-11T22:17:16.218Z",
"deliveredAt": null,
"createdAt": "2025-11-10T16:34:58.708Z",
"updatedAt": "2025-11-11T22:17:16.218Z"
}