orders #459
- userId
-
Maximus Bosco @maximus_bosco
- status
- shipped
- currency
- USD
- subtotal
- 1908.99
- tax
- 167.04
- shipping
- 0
- total
- 2076.03
- placedAt
- shippedAt
- deliveredAt
- —
- createdAt
- updatedAt
Overview
orders / #459
#459
#459
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/459" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/459" ); 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/459"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/459"
)
order = res.json() Response
{
"id": 459,
"userId": 128,
"status": "shipped",
"currency": "USD",
"subtotal": 1908.99,
"tax": 167.04,
"shipping": 0,
"total": 2076.03,
"placedAt": "2025-04-23T10:47:08.594Z",
"shippedAt": "2025-04-25T13:53:21.056Z",
"deliveredAt": null,
"createdAt": "2025-04-23T10:47:08.594Z",
"updatedAt": "2025-04-25T13:53:21.056Z"
}