orders #481
- userId
-
Einar Volkman @einar_volkman69
- status
- shipped
- currency
- USD
- subtotal
- 2727.23
- tax
- 238.63
- shipping
- 0
- total
- 2965.86
- placedAt
- shippedAt
- deliveredAt
- —
- createdAt
- updatedAt
Overview
orders / #481
#481
#481
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/481" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/481" ); const order = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/orders.d.ts https://example-data.com/types/orders.d.ts
import type { Order } from "./types/orders";
const res = await fetch(
"https://example-data.com/api/v1/orders/481"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/481"
)
order = res.json() Response
{
"id": 481,
"userId": 7,
"status": "shipped",
"currency": "USD",
"subtotal": 2727.23,
"tax": 238.63,
"shipping": 0,
"total": 2965.86,
"placedAt": "2025-04-04T05:02:37.045Z",
"shippedAt": "2025-04-06T14:51:17.844Z",
"deliveredAt": null,
"createdAt": "2025-04-04T05:02:37.045Z",
"updatedAt": "2025-04-06T14:51:17.844Z"
}