orders / #123
- userId
-
Kariane Schmitt @kariane.schmitt97
- status
- confirmed
- currency
- USD
- subtotal
- 764.97
- tax
- 66.93
- shipping
- 0
- total
- 831.9
- placedAt
- shippedAt
- —
- deliveredAt
- —
- createdAt
- updatedAt
Component variants
Medium
#123
#123
Small
orders/123 Related
References
Referenced by
curl -sS \
"https://example-data.com/api/v1/orders/123" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/orders/123"
);
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/123"
);
const order = (await res.json()) as Order;import requests
res = requests.get(
"https://example-data.com/api/v1/orders/123"
)
order = res.json() {
"id": 123,
"userId": 32,
"status": "confirmed",
"currency": "USD",
"subtotal": 764.97,
"tax": 66.93,
"shipping": 0,
"total": 831.9,
"placedAt": "2024-11-23T10:12:22.542Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2024-11-23T10:12:22.542Z",
"updatedAt": "2024-11-23T10:12:22.542Z"
}