orders / #50
- userId
-
Trace Witting-Stamm @trace_witting-stamm17
- status
- delivered
- currency
- USD
- subtotal
- 623.36
- tax
- 54.54
- shipping
- 0
- total
- 677.9
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Component variants
Related
References
Referenced by
curl -sS \
"https://example-data.com/api/v1/orders/50" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/orders/50"
);
const order = await res.json();import type { Order } from "https://example-data.com/types/orders.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/orders/50"
);
const order = (await res.json()) as Order;import requests
res = requests.get(
"https://example-data.com/api/v1/orders/50"
)
order = res.json() {
"id": 50,
"userId": 42,
"status": "delivered",
"currency": "USD",
"subtotal": 623.36,
"tax": 54.54,
"shipping": 0,
"total": 677.9,
"placedAt": "2024-12-12T17:46:44.300Z",
"shippedAt": "2024-12-14T15:01:15.522Z",
"deliveredAt": "2024-12-16T18:34:48.233Z",
"createdAt": "2024-12-12T17:46:44.300Z",
"updatedAt": "2024-12-16T18:34:48.233Z"
}