orders #848
- userId
-
Lilly Rosenbaum @lilly.rosenbaum
- status
- delivered
- currency
- USD
- subtotal
- 614.16
- tax
- 53.74
- shipping
- 0
- total
- 667.9
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #848
#848
#848
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/848" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/848" ); 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/848"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/848"
)
order = res.json() Response
{
"id": 848,
"userId": 223,
"status": "delivered",
"currency": "USD",
"subtotal": 614.16,
"tax": 53.74,
"shipping": 0,
"total": 667.9,
"placedAt": "2025-05-08T07:58:38.771Z",
"shippedAt": "2025-05-09T23:55:47.785Z",
"deliveredAt": "2025-05-18T06:05:42.702Z",
"createdAt": "2025-05-08T07:58:38.771Z",
"updatedAt": "2025-05-18T06:05:42.702Z"
}