orders #653
- userId
-
Nikolas Wolf @nikolas.wolf
- status
- delivered
- currency
- USD
- subtotal
- 1847.57
- tax
- 161.66
- shipping
- 0
- total
- 2009.23
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #653
#653
#653
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/653" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/653" ); 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/653"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/653"
)
order = res.json() Response
{
"id": 653,
"userId": 158,
"status": "delivered",
"currency": "USD",
"subtotal": 1847.57,
"tax": 161.66,
"shipping": 0,
"total": 2009.23,
"placedAt": "2025-08-16T06:37:11.901Z",
"shippedAt": "2025-08-17T12:22:56.772Z",
"deliveredAt": "2025-08-24T13:55:41.903Z",
"createdAt": "2025-08-16T06:37:11.901Z",
"updatedAt": "2025-08-24T13:55:41.903Z"
}