orders #150
- userId
-
Jabari Farrell @jabari_farrell75
- status
- delivered
- currency
- USD
- subtotal
- 2084.94
- tax
- 182.43
- shipping
- 0
- total
- 2267.37
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #150
#150
#150
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/150" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/150" ); 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/150"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/150"
)
order = res.json() Response
{
"id": 150,
"userId": 240,
"status": "delivered",
"currency": "USD",
"subtotal": 2084.94,
"tax": 182.43,
"shipping": 0,
"total": 2267.37,
"placedAt": "2026-04-16T19:32:24.507Z",
"shippedAt": "2026-04-18T13:20:34.164Z",
"deliveredAt": "2026-04-21T19:01:04.565Z",
"createdAt": "2026-04-16T19:32:24.507Z",
"updatedAt": "2026-04-21T19:01:04.565Z"
}