orders #974
- userId
-
Rickie Sporer @rickie.sporer50
- status
- shipped
- currency
- USD
- subtotal
- 223.13
- tax
- 19.52
- shipping
- 0
- total
- 242.65
- placedAt
- shippedAt
- deliveredAt
- —
- createdAt
- updatedAt
Overview
orders / #974
#974
#974
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/974" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/974" ); 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/974"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/974"
)
order = res.json() Response
{
"id": 974,
"userId": 149,
"status": "shipped",
"currency": "USD",
"subtotal": 223.13,
"tax": 19.52,
"shipping": 0,
"total": 242.65,
"placedAt": "2025-06-11T04:05:38.896Z",
"shippedAt": "2025-06-13T08:46:58.457Z",
"deliveredAt": null,
"createdAt": "2025-06-11T04:05:38.896Z",
"updatedAt": "2025-06-13T08:46:58.457Z"
}