orders #637
- userId
-
Whitney O'Reilly @whitney.oreilly
- status
- delivered
- currency
- USD
- subtotal
- 3559.62
- tax
- 311.47
- shipping
- 0
- total
- 3871.09
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #637
#637
#637
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/637" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/637" ); 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/637"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/637"
)
order = res.json() Response
{
"id": 637,
"userId": 99,
"status": "delivered",
"currency": "USD",
"subtotal": 3559.62,
"tax": 311.47,
"shipping": 0,
"total": 3871.09,
"placedAt": "2025-05-05T21:31:12.076Z",
"shippedAt": "2025-05-07T00:43:51.305Z",
"deliveredAt": "2025-05-09T22:09:47.268Z",
"createdAt": "2025-05-05T21:31:12.076Z",
"updatedAt": "2025-05-09T22:09:47.268Z"
}