orders
orders
Page 41 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": 961,
"userId": 121,
"status": "pending",
"currency": "USD",
"subtotal": 2504.19,
"tax": 219.12,
"shipping": 0,
"total": 2723.31,
"placedAt": "2026-04-09T00:11:45.090Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2026-04-09T00:11:45.090Z",
"updatedAt": "2026-04-09T00:11:45.090Z"
},
{
"id": 962,
"userId": 86,
"status": "delivered",
"currency": "USD",
"subtotal": 4049.54,
"tax": 354.33,
"shipping": 0,
"total": 4403.87,
"placedAt": "2025-02-06T20:39:00.636Z",
"shippedAt": "2025-02-08T18:42:43.519Z",
"deliveredAt": "2025-02-12T23:54:33.825Z",
"createdAt": "2025-02-06T20:39:00.636Z",
"updatedAt": "2025-02-12T23:54:33.825Z"
},
{
"id": 963,
"userId": 12,
"status": "cancelled",
"currency": "USD",
"subtotal": 3248.94,
"tax": 284.28,
"shipping": 0,
"total": 3533.22,
"placedAt": "2025-02-16T04:20:49.113Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2025-02-16T04:20:49.113Z",
"updatedAt": "2025-02-16T04:20:49.113Z"
}
],
"meta": {
"page": 41,
"limit": 24,
"total": 1000,
"totalPages": 42
},
"links": {
"self": "/api/v1/orders?page=41&limit=24",
"first": "/api/v1/orders?page=1&limit=24",
"last": "/api/v1/orders?page=42&limit=24",
"next": "/api/v1/orders?page=42&limit=24",
"prev": "/api/v1/orders?page=40&limit=24"
}
}