orders
orders
Page 27 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": 625,
"userId": 177,
"status": "delivered",
"currency": "USD",
"subtotal": 4177.14,
"tax": 365.5,
"shipping": 0,
"total": 4542.64,
"placedAt": "2025-09-12T21:04:06.146Z",
"shippedAt": "2025-09-14T09:13:57.186Z",
"deliveredAt": "2025-09-22T08:38:40.300Z",
"createdAt": "2025-09-12T21:04:06.146Z",
"updatedAt": "2025-09-22T08:38:40.300Z"
},
{
"id": 626,
"userId": 183,
"status": "refunded",
"currency": "USD",
"subtotal": 1476.13,
"tax": 129.16,
"shipping": 0,
"total": 1605.29,
"placedAt": "2024-08-11T20:47:49.293Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2024-08-11T20:47:49.293Z",
"updatedAt": "2024-08-11T20:47:49.293Z"
},
{
"id": 627,
"userId": 113,
"status": "delivered",
"currency": "USD",
"subtotal": 1187.38,
"tax": 103.9,
"shipping": 0,
"total": 1291.28,
"placedAt": "2024-09-19T23:25:40.101Z",
"shippedAt": "2024-09-21T14:16:16.051Z",
"deliveredAt": "2024-09-29T05:41:54.115Z",
"createdAt": "2024-09-19T23:25:40.101Z",
"updatedAt": "2024-09-29T05:41:54.115Z"
}
],
"meta": {
"page": 27,
"limit": 24,
"total": 1000,
"totalPages": 42
},
"links": {
"self": "/api/v1/orders?page=27&limit=24",
"first": "/api/v1/orders?page=1&limit=24",
"last": "/api/v1/orders?page=42&limit=24",
"next": "/api/v1/orders?page=28&limit=24",
"prev": "/api/v1/orders?page=26&limit=24"
}
}