orders / #49
- userId
-
Hermina West @hermina.west3
- status
- cancelled
- currency
- USD
- subtotal
- 2561.48
- tax
- 224.13
- shipping
- 0
- total
- 2785.61
- placedAt
- shippedAt
- —
- deliveredAt
- —
- createdAt
- updatedAt
Component variants
Related
References
Referenced by
curl -sS \
"https://example-data.com/api/v1/orders/49" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/orders/49"
);
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/49"
);
const order = (await res.json()) as Order;import requests
res = requests.get(
"https://example-data.com/api/v1/orders/49"
)
order = res.json() {
"id": 49,
"userId": 51,
"status": "cancelled",
"currency": "USD",
"subtotal": 2561.48,
"tax": 224.13,
"shipping": 0,
"total": 2785.61,
"placedAt": "2024-06-10T04:05:04.574Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2024-06-10T04:05:04.574Z",
"updatedAt": "2024-06-10T04:05:04.574Z"
}