orders #878
- userId
-
Terence Lemke @terence.lemke85
- status
- delivered
- currency
- USD
- subtotal
- 1822.69
- tax
- 159.49
- shipping
- 0
- total
- 1982.18
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #878
#878
#878
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/878" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/878" ); 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/878"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/878"
)
order = res.json() Response
{
"id": 878,
"userId": 74,
"status": "delivered",
"currency": "USD",
"subtotal": 1822.69,
"tax": 159.49,
"shipping": 0,
"total": 1982.18,
"placedAt": "2025-01-24T18:10:51.168Z",
"shippedAt": "2025-01-25T22:08:22.390Z",
"deliveredAt": "2025-02-03T13:14:18.338Z",
"createdAt": "2025-01-24T18:10:51.168Z",
"updatedAt": "2025-02-03T13:14:18.338Z"
}