orders #604
- userId
-
Sheridan Turcotte @sheridan.turcotte
- status
- shipped
- currency
- USD
- subtotal
- 1386.42
- tax
- 121.31
- shipping
- 0
- total
- 1507.73
- placedAt
- shippedAt
- deliveredAt
- —
- createdAt
- updatedAt
Overview
orders / #604
#604
#604
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/604" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/604" ); 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/604"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/604"
)
order = res.json() Response
{
"id": 604,
"userId": 153,
"status": "shipped",
"currency": "USD",
"subtotal": 1386.42,
"tax": 121.31,
"shipping": 0,
"total": 1507.73,
"placedAt": "2025-03-11T21:37:37.099Z",
"shippedAt": "2025-03-14T21:12:43.292Z",
"deliveredAt": null,
"createdAt": "2025-03-11T21:37:37.099Z",
"updatedAt": "2025-03-14T21:12:43.292Z"
}