orders #547
- userId
-
Ludwig Stiedemann @ludwig_stiedemann
- status
- shipped
- currency
- USD
- subtotal
- 2598.1
- tax
- 227.33
- shipping
- 0
- total
- 2825.43
- placedAt
- shippedAt
- deliveredAt
- —
- createdAt
- updatedAt
Overview
orders / #547
#547
#547
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/547" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/547" ); 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/547"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/547"
)
order = res.json() Response
{
"id": 547,
"userId": 132,
"status": "shipped",
"currency": "USD",
"subtotal": 2598.1,
"tax": 227.33,
"shipping": 0,
"total": 2825.43,
"placedAt": "2025-02-01T01:15:27.693Z",
"shippedAt": "2025-02-02T08:06:18.069Z",
"deliveredAt": null,
"createdAt": "2025-02-01T01:15:27.693Z",
"updatedAt": "2025-02-02T08:06:18.069Z"
}