orders #654
- userId
-
Carley Gleichner @carley.gleichner
- status
- cancelled
- currency
- USD
- subtotal
- 99.6
- tax
- 8.71
- shipping
- 9.99
- total
- 118.3
- placedAt
- shippedAt
- —
- deliveredAt
- —
- createdAt
- updatedAt
Overview
orders / #654
#654
#654
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/654" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/654" ); 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/654"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/654"
)
order = res.json() Response
{
"id": 654,
"userId": 142,
"status": "cancelled",
"currency": "USD",
"subtotal": 99.6,
"tax": 8.71,
"shipping": 9.99,
"total": 118.3,
"placedAt": "2025-04-16T15:07:14.824Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2025-04-16T15:07:14.824Z",
"updatedAt": "2025-04-16T15:07:14.824Z"
}