orders #984
- userId
-
Joseph Steuber @joseph_steuber
- status
- shipped
- currency
- USD
- subtotal
- 2478.47
- tax
- 216.87
- shipping
- 0
- total
- 2695.34
- placedAt
- shippedAt
- deliveredAt
- —
- createdAt
- updatedAt
Overview
orders / #984
#984
#984
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/984" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/984" ); 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/984"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/984"
)
order = res.json() Response
{
"id": 984,
"userId": 221,
"status": "shipped",
"currency": "USD",
"subtotal": 2478.47,
"tax": 216.87,
"shipping": 0,
"total": 2695.34,
"placedAt": "2024-10-20T12:32:27.141Z",
"shippedAt": "2024-10-22T01:59:18.917Z",
"deliveredAt": null,
"createdAt": "2024-10-20T12:32:27.141Z",
"updatedAt": "2024-10-22T01:59:18.917Z"
}