orders / #45
- userId
-
Carley Gleichner @carley.gleichner
- status
- pending
- currency
- USD
- subtotal
- 2420.66
- tax
- 211.81
- shipping
- 0
- total
- 2632.47
- placedAt
- shippedAt
- —
- deliveredAt
- —
- createdAt
- updatedAt
Component variants
Related
References
Referenced by
curl -sS \
"https://example-data.com/api/v1/orders/45" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/orders/45"
);
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/45"
);
const order = (await res.json()) as Order;import requests
res = requests.get(
"https://example-data.com/api/v1/orders/45"
)
order = res.json() {
"id": 45,
"userId": 142,
"status": "pending",
"currency": "USD",
"subtotal": 2420.66,
"tax": 211.81,
"shipping": 0,
"total": 2632.47,
"placedAt": "2024-07-26T13:53:54.736Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2024-07-26T13:53:54.736Z",
"updatedAt": "2024-07-26T13:53:54.736Z"
}