orders #951
- userId
-
Cassidy Christiansen @cassidy_christiansen38
- status
- shipped
- currency
- USD
- subtotal
- 1186.08
- tax
- 103.78
- shipping
- 0
- total
- 1289.86
- placedAt
- shippedAt
- deliveredAt
- —
- createdAt
- updatedAt
Overview
orders / #951
#951
#951
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/951" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/951" ); 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/951"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/951"
)
order = res.json() Response
{
"id": 951,
"userId": 33,
"status": "shipped",
"currency": "USD",
"subtotal": 1186.08,
"tax": 103.78,
"shipping": 0,
"total": 1289.86,
"placedAt": "2025-05-14T23:35:38.424Z",
"shippedAt": "2025-05-16T10:26:06.704Z",
"deliveredAt": null,
"createdAt": "2025-05-14T23:35:38.424Z",
"updatedAt": "2025-05-16T10:26:06.704Z"
}