orders #789
- userId
-
Ryan Conroy @ryan_conroy
- status
- delivered
- currency
- USD
- subtotal
- 2600.76
- tax
- 227.57
- shipping
- 0
- total
- 2828.33
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #789
#789
#789
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/789" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/789" ); 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/789"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/789"
)
order = res.json() Response
{
"id": 789,
"userId": 73,
"status": "delivered",
"currency": "USD",
"subtotal": 2600.76,
"tax": 227.57,
"shipping": 0,
"total": 2828.33,
"placedAt": "2025-10-30T09:49:56.025Z",
"shippedAt": "2025-11-01T23:14:44.789Z",
"deliveredAt": "2025-11-04T03:45:29.948Z",
"createdAt": "2025-10-30T09:49:56.025Z",
"updatedAt": "2025-11-04T03:45:29.948Z"
}