orders
orders
Page 22 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": 505,
"userId": 44,
"status": "confirmed",
"currency": "USD",
"subtotal": 1596.66,
"tax": 139.71,
"shipping": 0,
"total": 1736.37,
"placedAt": "2026-01-05T06:21:38.750Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2026-01-05T06:21:38.750Z",
"updatedAt": "2026-01-05T06:21:38.750Z"
},
{
"id": 506,
"userId": 109,
"status": "pending",
"currency": "USD",
"subtotal": 217.2,
"tax": 19.01,
"shipping": 0,
"total": 236.21,
"placedAt": "2026-04-05T10:11:03.236Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2026-04-05T10:11:03.236Z",
"updatedAt": "2026-04-05T10:11:03.236Z"
},
{
"id": 507,
"userId": 125,
"status": "confirmed",
"currency": "USD",
"subtotal": 1848.24,
"tax": 161.72,
"shipping": 0,
"total": 2009.96,
"placedAt": "2024-12-15T09:27:21.067Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2024-12-15T09:27:21.067Z",
"updatedAt": "2024-12-15T09:27:21.067Z"
}
],
"meta": {
"page": 22,
"limit": 24,
"total": 1000,
"totalPages": 42
},
"links": {
"self": "/api/v1/orders?page=22&limit=24",
"first": "/api/v1/orders?page=1&limit=24",
"last": "/api/v1/orders?page=42&limit=24",
"next": "/api/v1/orders?page=23&limit=24",
"prev": "/api/v1/orders?page=21&limit=24"
}
}