orders
orders
Page 8 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": 169,
"userId": 11,
"status": "refunded",
"currency": "USD",
"subtotal": 910.29,
"tax": 79.65,
"shipping": 0,
"total": 989.94,
"placedAt": "2026-02-15T16:49:00.964Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2026-02-15T16:49:00.964Z",
"updatedAt": "2026-02-15T16:49:00.964Z"
},
{
"id": 170,
"userId": 8,
"status": "delivered",
"currency": "USD",
"subtotal": 807.72,
"tax": 70.68,
"shipping": 0,
"total": 878.4,
"placedAt": "2025-06-03T07:46:43.445Z",
"shippedAt": "2025-06-05T20:10:34.418Z",
"deliveredAt": "2025-06-11T11:54:14.529Z",
"createdAt": "2025-06-03T07:46:43.445Z",
"updatedAt": "2025-06-11T11:54:14.529Z"
},
{
"id": 171,
"userId": 98,
"status": "refunded",
"currency": "USD",
"subtotal": 1249.73,
"tax": 109.35,
"shipping": 0,
"total": 1359.08,
"placedAt": "2024-09-18T22:58:39.576Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2024-09-18T22:58:39.576Z",
"updatedAt": "2024-09-18T22:58:39.576Z"
}
],
"meta": {
"page": 8,
"limit": 24,
"total": 1000,
"totalPages": 42
},
"links": {
"self": "/api/v1/orders?page=8&limit=24",
"first": "/api/v1/orders?page=1&limit=24",
"last": "/api/v1/orders?page=42&limit=24",
"next": "/api/v1/orders?page=9&limit=24",
"prev": "/api/v1/orders?page=7&limit=24"
}
}