orders
orders
Page 6 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": 121,
"userId": 159,
"status": "delivered",
"currency": "USD",
"subtotal": 768.88,
"tax": 67.28,
"shipping": 0,
"total": 836.16,
"placedAt": "2025-07-08T01:04:47.638Z",
"shippedAt": "2025-07-10T11:21:04.630Z",
"deliveredAt": "2025-07-12T13:23:50.542Z",
"createdAt": "2025-07-08T01:04:47.638Z",
"updatedAt": "2025-07-12T13:23:50.542Z"
},
{
"id": 122,
"userId": 123,
"status": "shipped",
"currency": "USD",
"subtotal": 945.16,
"tax": 82.7,
"shipping": 0,
"total": 1027.86,
"placedAt": "2024-06-28T02:30:07.051Z",
"shippedAt": "2024-06-29T14:55:21.873Z",
"deliveredAt": null,
"createdAt": "2024-06-28T02:30:07.051Z",
"updatedAt": "2024-06-29T14:55:21.873Z"
},
{
"id": 123,
"userId": 32,
"status": "confirmed",
"currency": "USD",
"subtotal": 764.97,
"tax": 66.93,
"shipping": 0,
"total": 831.9,
"placedAt": "2024-11-23T10:12:22.542Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2024-11-23T10:12:22.542Z",
"updatedAt": "2024-11-23T10:12:22.542Z"
}
],
"meta": {
"page": 6,
"limit": 24,
"total": 1000,
"totalPages": 42
},
"links": {
"self": "/api/v1/orders?page=6&limit=24",
"first": "/api/v1/orders?page=1&limit=24",
"last": "/api/v1/orders?page=42&limit=24",
"next": "/api/v1/orders?page=7&limit=24",
"prev": "/api/v1/orders?page=5&limit=24"
}
}