orders / #97
- userId
-
Esperanza Casper @esperanza_casper
- status
- delivered
- currency
- USD
- subtotal
- 2150.47
- tax
- 188.17
- shipping
- 0
- total
- 2338.64
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Component variants
Related
References
Referenced by
curl -sS \
"https://example-data.com/api/v1/orders/97" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/orders/97"
);
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/97"
);
const order = (await res.json()) as Order;import requests
res = requests.get(
"https://example-data.com/api/v1/orders/97"
)
order = res.json() {
"id": 97,
"userId": 97,
"status": "delivered",
"currency": "USD",
"subtotal": 2150.47,
"tax": 188.17,
"shipping": 0,
"total": 2338.64,
"placedAt": "2024-12-15T14:50:20.228Z",
"shippedAt": "2024-12-18T02:28:56.375Z",
"deliveredAt": "2024-12-21T03:39:45.539Z",
"createdAt": "2024-12-15T14:50:20.228Z",
"updatedAt": "2024-12-21T03:39:45.539Z"
}