orders #915
- userId
-
Lazaro Herzog @lazaro_herzog
- status
- delivered
- currency
- USD
- subtotal
- 1992.93
- tax
- 174.38
- shipping
- 0
- total
- 2167.31
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #915
#915
#915
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/915" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/915" ); 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/915"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/915"
)
order = res.json() Response
{
"id": 915,
"userId": 181,
"status": "delivered",
"currency": "USD",
"subtotal": 1992.93,
"tax": 174.38,
"shipping": 0,
"total": 2167.31,
"placedAt": "2025-09-21T09:55:25.205Z",
"shippedAt": "2025-09-23T20:32:27.071Z",
"deliveredAt": "2025-09-30T06:06:56.816Z",
"createdAt": "2025-09-21T09:55:25.205Z",
"updatedAt": "2025-09-30T06:06:56.816Z"
}