orders #374
- userId
-
Santa Corwin @santa.corwin59
- status
- pending
- currency
- USD
- subtotal
- 1535.67
- tax
- 134.37
- shipping
- 0
- total
- 1670.04
- placedAt
- shippedAt
- —
- deliveredAt
- —
- createdAt
- updatedAt
Overview
orders / #374
#374
#374
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/374" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/374" ); 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/374"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/374"
)
order = res.json() Response
{
"id": 374,
"userId": 247,
"status": "pending",
"currency": "USD",
"subtotal": 1535.67,
"tax": 134.37,
"shipping": 0,
"total": 1670.04,
"placedAt": "2025-10-10T21:58:38.188Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2025-10-10T21:58:38.188Z",
"updatedAt": "2025-10-10T21:58:38.188Z"
}