orders #804
- userId
-
Filiberto Fay @filiberto.fay59
- status
- delivered
- currency
- USD
- subtotal
- 1052.71
- tax
- 92.11
- shipping
- 0
- total
- 1144.82
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #804
#804
#804
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/804" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/804" ); 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/804"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/804"
)
order = res.json() Response
{
"id": 804,
"userId": 92,
"status": "delivered",
"currency": "USD",
"subtotal": 1052.71,
"tax": 92.11,
"shipping": 0,
"total": 1144.82,
"placedAt": "2025-02-24T17:22:51.295Z",
"shippedAt": "2025-02-25T17:44:42.073Z",
"deliveredAt": "2025-03-06T05:42:10.704Z",
"createdAt": "2025-02-24T17:22:51.295Z",
"updatedAt": "2025-03-06T05:42:10.704Z"
}