orders
orders
Page 2 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": 25,
"userId": 43,
"status": "refunded",
"currency": "USD",
"subtotal": 345.69,
"tax": 30.25,
"shipping": 0,
"total": 375.94,
"placedAt": "2024-06-15T20:20:09.383Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2024-06-15T20:20:09.383Z",
"updatedAt": "2024-06-15T20:20:09.383Z"
},
{
"id": 26,
"userId": 235,
"status": "shipped",
"currency": "USD",
"subtotal": 1150.06,
"tax": 100.63,
"shipping": 0,
"total": 1250.69,
"placedAt": "2025-11-12T14:49:38.981Z",
"shippedAt": "2025-11-14T18:33:05.365Z",
"deliveredAt": null,
"createdAt": "2025-11-12T14:49:38.981Z",
"updatedAt": "2025-11-14T18:33:05.365Z"
},
{
"id": 27,
"userId": 219,
"status": "cancelled",
"currency": "USD",
"subtotal": 2020.12,
"tax": 176.76,
"shipping": 0,
"total": 2196.88,
"placedAt": "2026-04-19T05:11:39.608Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2026-04-19T05:11:39.608Z",
"updatedAt": "2026-04-19T05:11:39.608Z"
}
],
"meta": {
"page": 2,
"limit": 24,
"total": 1000,
"totalPages": 42
},
"links": {
"self": "/api/v1/orders?page=2&limit=24",
"first": "/api/v1/orders?page=1&limit=24",
"last": "/api/v1/orders?page=42&limit=24",
"next": "/api/v1/orders?page=3&limit=24",
"prev": "/api/v1/orders?page=1&limit=24"
}
}