orders
orders
Page 17 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": 385,
"userId": 215,
"status": "pending",
"currency": "USD",
"subtotal": 2060.92,
"tax": 180.33,
"shipping": 0,
"total": 2241.25,
"placedAt": "2025-02-21T16:32:06.587Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2025-02-21T16:32:06.587Z",
"updatedAt": "2025-02-21T16:32:06.587Z"
},
{
"id": 386,
"userId": 208,
"status": "confirmed",
"currency": "USD",
"subtotal": 115.17,
"tax": 10.08,
"shipping": 0,
"total": 125.25,
"placedAt": "2026-04-10T04:52:13.551Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2026-04-10T04:52:13.551Z",
"updatedAt": "2026-04-10T04:52:13.551Z"
},
{
"id": 387,
"userId": 171,
"status": "delivered",
"currency": "USD",
"subtotal": 2514.21,
"tax": 219.99,
"shipping": 0,
"total": 2734.2,
"placedAt": "2025-11-21T05:03:59.974Z",
"shippedAt": "2025-11-22T06:11:05.188Z",
"deliveredAt": "2025-11-27T10:15:11.920Z",
"createdAt": "2025-11-21T05:03:59.974Z",
"updatedAt": "2025-11-27T10:15:11.920Z"
}
],
"meta": {
"page": 17,
"limit": 24,
"total": 1000,
"totalPages": 42
},
"links": {
"self": "/api/v1/orders?page=17&limit=24",
"first": "/api/v1/orders?page=1&limit=24",
"last": "/api/v1/orders?page=42&limit=24",
"next": "/api/v1/orders?page=18&limit=24",
"prev": "/api/v1/orders?page=16&limit=24"
}
}