orders #491
- userId
-
Kevon Dickinson @kevon.dickinson
- status
- delivered
- currency
- USD
- subtotal
- 877.8
- tax
- 76.81
- shipping
- 0
- total
- 954.61
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #491
#491
#491
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/491" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/491" ); 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/491"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/491"
)
order = res.json() Response
{
"id": 491,
"userId": 218,
"status": "delivered",
"currency": "USD",
"subtotal": 877.8,
"tax": 76.81,
"shipping": 0,
"total": 954.61,
"placedAt": "2025-08-04T22:46:11.693Z",
"shippedAt": "2025-08-07T14:37:15.891Z",
"deliveredAt": "2025-08-12T17:07:59.537Z",
"createdAt": "2025-08-04T22:46:11.693Z",
"updatedAt": "2025-08-12T17:07:59.537Z"
}