orders / #11
- userId
-
Beau Stiedemann @beau.stiedemann
- status
- refunded
- currency
- USD
- subtotal
- 893.75
- tax
- 78.2
- shipping
- 0
- total
- 971.95
- placedAt
- shippedAt
- —
- deliveredAt
- —
- createdAt
- updatedAt
Component variants
Related
References
Referenced by
curl -sS \
"https://example-data.com/api/v1/orders/11" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/orders/11"
);
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/11"
);
const order = (await res.json()) as Order;import requests
res = requests.get(
"https://example-data.com/api/v1/orders/11"
)
order = res.json() {
"id": 11,
"userId": 64,
"status": "refunded",
"currency": "USD",
"subtotal": 893.75,
"tax": 78.2,
"shipping": 0,
"total": 971.95,
"placedAt": "2024-08-16T07:45:08.116Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2024-08-16T07:45:08.116Z",
"updatedAt": "2024-08-16T07:45:08.116Z"
}