orders #927
- userId
-
Einar Volkman @einar_volkman69
- status
- shipped
- currency
- USD
- subtotal
- 422.03
- tax
- 36.93
- shipping
- 0
- total
- 458.96
- placedAt
- shippedAt
- deliveredAt
- —
- createdAt
- updatedAt
Overview
orders / #927
#927
#927
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/927" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/927" ); 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/927"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/927"
)
order = res.json() Response
{
"id": 927,
"userId": 7,
"status": "shipped",
"currency": "USD",
"subtotal": 422.03,
"tax": 36.93,
"shipping": 0,
"total": 458.96,
"placedAt": "2024-09-22T11:17:40.196Z",
"shippedAt": "2024-09-24T05:50:41.241Z",
"deliveredAt": null,
"createdAt": "2024-09-22T11:17:40.196Z",
"updatedAt": "2024-09-24T05:50:41.241Z"
}