orders / #37
- userId
-
Jaycee Erdman @jaycee_erdman96
- status
- pending
- currency
- USD
- subtotal
- 107.56
- tax
- 9.41
- shipping
- 0
- total
- 116.97
- placedAt
- shippedAt
- —
- deliveredAt
- —
- createdAt
- updatedAt
Component variants
Related
References
Referenced by
curl -sS \
"https://example-data.com/api/v1/orders/37" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/orders/37"
);
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/37"
);
const order = (await res.json()) as Order;import requests
res = requests.get(
"https://example-data.com/api/v1/orders/37"
)
order = res.json() {
"id": 37,
"userId": 10,
"status": "pending",
"currency": "USD",
"subtotal": 107.56,
"tax": 9.41,
"shipping": 0,
"total": 116.97,
"placedAt": "2024-08-13T17:55:01.258Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2024-08-13T17:55:01.258Z",
"updatedAt": "2024-08-13T17:55:01.258Z"
}