orders #600
- userId
-
Nikolas Wolf @nikolas.wolf
- status
- delivered
- currency
- USD
- subtotal
- 1970.27
- tax
- 172.4
- shipping
- 0
- total
- 2142.67
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #600
#600
#600
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/600" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/600" ); 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/600"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/600"
)
order = res.json() Response
{
"id": 600,
"userId": 158,
"status": "delivered",
"currency": "USD",
"subtotal": 1970.27,
"tax": 172.4,
"shipping": 0,
"total": 2142.67,
"placedAt": "2025-03-16T17:38:52.829Z",
"shippedAt": "2025-03-19T16:30:13.923Z",
"deliveredAt": "2025-03-26T16:16:26.520Z",
"createdAt": "2025-03-16T17:38:52.829Z",
"updatedAt": "2025-03-26T16:16:26.520Z"
}