orders
orders
Page 32 of 42.
Overview
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders?limit=25"
JavaScript example
const res = await fetch(
"https://example-data.com/api/v1/orders?limit=25"
);
const { data, meta } = 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, ListEnvelope } from "./types/orders";
const res = await fetch(
"https://example-data.com/api/v1/orders?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Order>; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders",
params={"limit": 25},
)
data = res.json() Response
{
"data": [
{
"id": 745,
"userId": 17,
"status": "confirmed",
"currency": "USD",
"subtotal": 226.49,
"tax": 19.82,
"shipping": 0,
"total": 246.31,
"placedAt": "2025-05-03T07:05:13.257Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2025-05-03T07:05:13.257Z",
"updatedAt": "2025-05-03T07:05:13.257Z"
},
{
"id": 746,
"userId": 135,
"status": "delivered",
"currency": "USD",
"subtotal": 1760.56,
"tax": 154.05,
"shipping": 0,
"total": 1914.61,
"placedAt": "2026-03-20T12:16:49.139Z",
"shippedAt": "2026-03-21T20:34:22.489Z",
"deliveredAt": "2026-03-27T02:23:28.340Z",
"createdAt": "2026-03-20T12:16:49.139Z",
"updatedAt": "2026-03-27T02:23:28.340Z"
},
{
"id": 747,
"userId": 194,
"status": "refunded",
"currency": "USD",
"subtotal": 2765.84,
"tax": 242.01,
"shipping": 0,
"total": 3007.85,
"placedAt": "2025-04-20T18:13:25.039Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2025-04-20T18:13:25.039Z",
"updatedAt": "2025-04-20T18:13:25.039Z"
}
],
"meta": {
"page": 32,
"limit": 24,
"total": 1000,
"totalPages": 42
},
"links": {
"self": "/api/v1/orders?page=32&limit=24",
"first": "/api/v1/orders?page=1&limit=24",
"last": "/api/v1/orders?page=42&limit=24",
"next": "/api/v1/orders?page=33&limit=24",
"prev": "/api/v1/orders?page=31&limit=24"
}
}