orders / #25
- userId
-
Lamar Wilkinson @lamar_wilkinson43
- status
- refunded
- currency
- USD
- subtotal
- 345.69
- tax
- 30.25
- shipping
- 0
- total
- 375.94
- placedAt
- shippedAt
- —
- deliveredAt
- —
- createdAt
- updatedAt
Component variants
Related
References
Referenced by
curl -sS \
"https://example-data.com/api/v1/orders/25" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/orders/25"
);
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/25"
);
const order = (await res.json()) as Order;import requests
res = requests.get(
"https://example-data.com/api/v1/orders/25"
)
order = res.json() {
"id": 25,
"userId": 43,
"status": "refunded",
"currency": "USD",
"subtotal": 345.69,
"tax": 30.25,
"shipping": 0,
"total": 375.94,
"placedAt": "2024-06-15T20:20:09.383Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2024-06-15T20:20:09.383Z",
"updatedAt": "2024-06-15T20:20:09.383Z"
}