orders / #10
- userId
-
Sarah West @sarah.west
- status
- shipped
- currency
- USD
- subtotal
- 4644.42
- tax
- 406.39
- shipping
- 0
- total
- 5050.81
- placedAt
- shippedAt
- deliveredAt
- —
- createdAt
- updatedAt
Component variants
Related
References
Referenced by
curl -sS \
"https://example-data.com/api/v1/orders/10" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/orders/10"
);
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/10"
);
const order = (await res.json()) as Order;import requests
res = requests.get(
"https://example-data.com/api/v1/orders/10"
)
order = res.json() {
"id": 10,
"userId": 217,
"status": "shipped",
"currency": "USD",
"subtotal": 4644.42,
"tax": 406.39,
"shipping": 0,
"total": 5050.81,
"placedAt": "2024-07-05T06:53:53.446Z",
"shippedAt": "2024-07-07T04:52:39.587Z",
"deliveredAt": null,
"createdAt": "2024-07-05T06:53:53.446Z",
"updatedAt": "2024-07-07T04:52:39.587Z"
}