orders #766
- userId
-
Dovie Gorczany @dovie.gorczany
- status
- delivered
- currency
- USD
- subtotal
- 1488.42
- tax
- 130.24
- shipping
- 0
- total
- 1618.66
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #766
#766
#766
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/766" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/766" ); 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/766"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/766"
)
order = res.json() Response
{
"id": 766,
"userId": 111,
"status": "delivered",
"currency": "USD",
"subtotal": 1488.42,
"tax": 130.24,
"shipping": 0,
"total": 1618.66,
"placedAt": "2025-04-07T14:16:30.695Z",
"shippedAt": "2025-04-10T10:06:24.780Z",
"deliveredAt": "2025-04-17T11:55:10.652Z",
"createdAt": "2025-04-07T14:16:30.695Z",
"updatedAt": "2025-04-17T11:55:10.652Z"
}