orders
orders
Page 29 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": 673,
"userId": 163,
"status": "pending",
"currency": "USD",
"subtotal": 448.68,
"tax": 39.26,
"shipping": 0,
"total": 487.94,
"placedAt": "2025-09-23T13:51:00.009Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2025-09-23T13:51:00.009Z",
"updatedAt": "2025-09-23T13:51:00.009Z"
},
{
"id": 674,
"userId": 191,
"status": "cancelled",
"currency": "USD",
"subtotal": 1866.72,
"tax": 163.34,
"shipping": 0,
"total": 2030.06,
"placedAt": "2024-12-26T18:03:33.435Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2024-12-26T18:03:33.435Z",
"updatedAt": "2024-12-26T18:03:33.435Z"
},
{
"id": 675,
"userId": 136,
"status": "pending",
"currency": "USD",
"subtotal": 235.3,
"tax": 20.59,
"shipping": 0,
"total": 255.89,
"placedAt": "2025-08-15T17:04:46.864Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2025-08-15T17:04:46.864Z",
"updatedAt": "2025-08-15T17:04:46.864Z"
}
],
"meta": {
"page": 29,
"limit": 24,
"total": 1000,
"totalPages": 42
},
"links": {
"self": "/api/v1/orders?page=29&limit=24",
"first": "/api/v1/orders?page=1&limit=24",
"last": "/api/v1/orders?page=42&limit=24",
"next": "/api/v1/orders?page=30&limit=24",
"prev": "/api/v1/orders?page=28&limit=24"
}
}