orders
orders
Page 10 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": 217,
"userId": 168,
"status": "delivered",
"currency": "USD",
"subtotal": 2393.73,
"tax": 209.45,
"shipping": 0,
"total": 2603.18,
"placedAt": "2025-02-08T05:51:11.406Z",
"shippedAt": "2025-02-09T23:28:20.738Z",
"deliveredAt": "2025-02-15T05:59:18.182Z",
"createdAt": "2025-02-08T05:51:11.406Z",
"updatedAt": "2025-02-15T05:59:18.182Z"
},
{
"id": 218,
"userId": 141,
"status": "refunded",
"currency": "USD",
"subtotal": 2881.27,
"tax": 252.11,
"shipping": 0,
"total": 3133.38,
"placedAt": "2026-01-24T17:21:34.074Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2026-01-24T17:21:34.074Z",
"updatedAt": "2026-01-24T17:21:34.074Z"
},
{
"id": 219,
"userId": 106,
"status": "cancelled",
"currency": "USD",
"subtotal": 1832.04,
"tax": 160.3,
"shipping": 0,
"total": 1992.34,
"placedAt": "2025-10-10T05:02:46.995Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2025-10-10T05:02:46.995Z",
"updatedAt": "2025-10-10T05:02:46.995Z"
}
],
"meta": {
"page": 10,
"limit": 24,
"total": 1000,
"totalPages": 42
},
"links": {
"self": "/api/v1/orders?page=10&limit=24",
"first": "/api/v1/orders?page=1&limit=24",
"last": "/api/v1/orders?page=42&limit=24",
"next": "/api/v1/orders?page=11&limit=24",
"prev": "/api/v1/orders?page=9&limit=24"
}
}