orders / #2
- userId
-
Malvina Ortiz @malvina_ortiz
- status
- shipped
- currency
- USD
- subtotal
- 1183.16
- tax
- 103.53
- shipping
- 0
- total
- 1286.69
- placedAt
- shippedAt
- deliveredAt
- —
- createdAt
- updatedAt
Component variants
Related
References
Referenced by
curl -sS \
"https://example-data.com/api/v1/orders/2" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/orders/2"
);
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/2"
);
const order = (await res.json()) as Order;import requests
res = requests.get(
"https://example-data.com/api/v1/orders/2"
)
order = res.json() {
"id": 2,
"userId": 234,
"status": "shipped",
"currency": "USD",
"subtotal": 1183.16,
"tax": 103.53,
"shipping": 0,
"total": 1286.69,
"placedAt": "2025-02-20T04:05:48.842Z",
"shippedAt": "2025-02-21T09:27:53.696Z",
"deliveredAt": null,
"createdAt": "2025-02-20T04:05:48.842Z",
"updatedAt": "2025-02-21T09:27:53.696Z"
}