orders #962
- userId
-
Mable West @mable_west
- status
- delivered
- currency
- USD
- subtotal
- 4049.54
- tax
- 354.33
- shipping
- 0
- total
- 4403.87
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #962
#962
#962
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/962" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/962" ); 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/962"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/962"
)
order = res.json() Response
{
"id": 962,
"userId": 86,
"status": "delivered",
"currency": "USD",
"subtotal": 4049.54,
"tax": 354.33,
"shipping": 0,
"total": 4403.87,
"placedAt": "2025-02-06T20:39:00.636Z",
"shippedAt": "2025-02-08T18:42:43.519Z",
"deliveredAt": "2025-02-12T23:54:33.825Z",
"createdAt": "2025-02-06T20:39:00.636Z",
"updatedAt": "2025-02-12T23:54:33.825Z"
}