orders #57
- userId
-
Jennifer Hoeger @jennifer.hoeger
- status
- cancelled
- currency
- USD
- subtotal
- 6.81
- tax
- 0.6
- shipping
- 9.99
- total
- 17.4
- placedAt
- shippedAt
- —
- deliveredAt
- —
- createdAt
- updatedAt
Overview
orders / #57
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/57" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/57" ); 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/57"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/57"
)
order = res.json() Response
{
"id": 57,
"userId": 119,
"status": "cancelled",
"currency": "USD",
"subtotal": 6.81,
"tax": 0.6,
"shipping": 9.99,
"total": 17.4,
"placedAt": "2026-01-13T19:48:52.661Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2026-01-13T19:48:52.661Z",
"updatedAt": "2026-01-13T19:48:52.661Z"
}