orders #945
- userId
-
Ricky Langosh @ricky.langosh66
- status
- delivered
- currency
- USD
- subtotal
- 2740.62
- tax
- 239.8
- shipping
- 0
- total
- 2980.42
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #945
#945
#945
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/945" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/945" ); 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/945"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/945"
)
order = res.json() Response
{
"id": 945,
"userId": 198,
"status": "delivered",
"currency": "USD",
"subtotal": 2740.62,
"tax": 239.8,
"shipping": 0,
"total": 2980.42,
"placedAt": "2025-06-29T01:35:51.922Z",
"shippedAt": "2025-06-30T03:35:24.834Z",
"deliveredAt": "2025-07-03T15:49:35.810Z",
"createdAt": "2025-06-29T01:35:51.922Z",
"updatedAt": "2025-07-03T15:49:35.810Z"
}