orders #121
- userId
-
Amparo Dietrich @amparo.dietrich
- status
- delivered
- currency
- USD
- subtotal
- 768.88
- tax
- 67.28
- shipping
- 0
- total
- 836.16
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #121
#121
#121
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/121" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/121" ); 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/121"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/121"
)
order = res.json() Response
{
"id": 121,
"userId": 159,
"status": "delivered",
"currency": "USD",
"subtotal": 768.88,
"tax": 67.28,
"shipping": 0,
"total": 836.16,
"placedAt": "2025-07-08T01:04:47.638Z",
"shippedAt": "2025-07-10T11:21:04.630Z",
"deliveredAt": "2025-07-12T13:23:50.542Z",
"createdAt": "2025-07-08T01:04:47.638Z",
"updatedAt": "2025-07-12T13:23:50.542Z"
}