orders
orders
Page 33 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": 769,
"userId": 16,
"status": "confirmed",
"currency": "USD",
"subtotal": 3079.01,
"tax": 269.41,
"shipping": 0,
"total": 3348.42,
"placedAt": "2025-10-01T04:21:43.728Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2025-10-01T04:21:43.728Z",
"updatedAt": "2025-10-01T04:21:43.728Z"
},
{
"id": 770,
"userId": 49,
"status": "shipped",
"currency": "USD",
"subtotal": 1242.15,
"tax": 108.69,
"shipping": 0,
"total": 1350.84,
"placedAt": "2024-06-22T18:55:04.997Z",
"shippedAt": "2024-06-24T05:47:02.818Z",
"deliveredAt": null,
"createdAt": "2024-06-22T18:55:04.997Z",
"updatedAt": "2024-06-24T05:47:02.818Z"
},
{
"id": 771,
"userId": 153,
"status": "cancelled",
"currency": "USD",
"subtotal": 885.49,
"tax": 77.48,
"shipping": 0,
"total": 962.97,
"placedAt": "2025-07-03T08:22:56.718Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2025-07-03T08:22:56.718Z",
"updatedAt": "2025-07-03T08:22:56.718Z"
}
],
"meta": {
"page": 33,
"limit": 24,
"total": 1000,
"totalPages": 42
},
"links": {
"self": "/api/v1/orders?page=33&limit=24",
"first": "/api/v1/orders?page=1&limit=24",
"last": "/api/v1/orders?page=42&limit=24",
"next": "/api/v1/orders?page=34&limit=24",
"prev": "/api/v1/orders?page=32&limit=24"
}
}