orders
orders
Page 20 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": 457,
"userId": 82,
"status": "cancelled",
"currency": "USD",
"subtotal": 2220.92,
"tax": 194.33,
"shipping": 0,
"total": 2415.25,
"placedAt": "2026-01-09T18:36:57.633Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2026-01-09T18:36:57.633Z",
"updatedAt": "2026-01-09T18:36:57.633Z"
},
{
"id": 458,
"userId": 23,
"status": "refunded",
"currency": "USD",
"subtotal": 499.64,
"tax": 43.72,
"shipping": 0,
"total": 543.36,
"placedAt": "2025-09-19T19:22:02.749Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2025-09-19T19:22:02.749Z",
"updatedAt": "2025-09-19T19:22:02.749Z"
},
{
"id": 459,
"userId": 128,
"status": "shipped",
"currency": "USD",
"subtotal": 1908.99,
"tax": 167.04,
"shipping": 0,
"total": 2076.03,
"placedAt": "2025-04-23T10:47:08.594Z",
"shippedAt": "2025-04-25T13:53:21.056Z",
"deliveredAt": null,
"createdAt": "2025-04-23T10:47:08.594Z",
"updatedAt": "2025-04-25T13:53:21.056Z"
}
],
"meta": {
"page": 20,
"limit": 24,
"total": 1000,
"totalPages": 42
},
"links": {
"self": "/api/v1/orders?page=20&limit=24",
"first": "/api/v1/orders?page=1&limit=24",
"last": "/api/v1/orders?page=42&limit=24",
"next": "/api/v1/orders?page=21&limit=24",
"prev": "/api/v1/orders?page=19&limit=24"
}
}