orders
orders
Page 9 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": 193,
"userId": 156,
"status": "cancelled",
"currency": "USD",
"subtotal": 1331.94,
"tax": 116.54,
"shipping": 0,
"total": 1448.48,
"placedAt": "2025-09-09T10:06:29.354Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2025-09-09T10:06:29.354Z",
"updatedAt": "2025-09-09T10:06:29.354Z"
},
{
"id": 194,
"userId": 67,
"status": "cancelled",
"currency": "USD",
"subtotal": 1438.94,
"tax": 125.91,
"shipping": 0,
"total": 1564.85,
"placedAt": "2025-11-23T14:53:47.238Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2025-11-23T14:53:47.238Z",
"updatedAt": "2025-11-23T14:53:47.238Z"
},
{
"id": 195,
"userId": 182,
"status": "delivered",
"currency": "USD",
"subtotal": 905.08,
"tax": 79.19,
"shipping": 0,
"total": 984.27,
"placedAt": "2025-11-14T01:26:59.610Z",
"shippedAt": "2025-11-15T16:38:17.894Z",
"deliveredAt": "2025-11-19T05:14:58.073Z",
"createdAt": "2025-11-14T01:26:59.610Z",
"updatedAt": "2025-11-19T05:14:58.073Z"
}
],
"meta": {
"page": 9,
"limit": 24,
"total": 1000,
"totalPages": 42
},
"links": {
"self": "/api/v1/orders?page=9&limit=24",
"first": "/api/v1/orders?page=1&limit=24",
"last": "/api/v1/orders?page=42&limit=24",
"next": "/api/v1/orders?page=10&limit=24",
"prev": "/api/v1/orders?page=8&limit=24"
}
}