orders
orders
Page 28 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": 649,
"userId": 214,
"status": "delivered",
"currency": "USD",
"subtotal": 3048.01,
"tax": 266.7,
"shipping": 0,
"total": 3314.71,
"placedAt": "2025-07-19T14:31:41.992Z",
"shippedAt": "2025-07-20T23:22:32.277Z",
"deliveredAt": "2025-07-26T19:59:15.211Z",
"createdAt": "2025-07-19T14:31:41.992Z",
"updatedAt": "2025-07-26T19:59:15.211Z"
},
{
"id": 650,
"userId": 42,
"status": "delivered",
"currency": "USD",
"subtotal": 1089.9,
"tax": 95.37,
"shipping": 0,
"total": 1185.27,
"placedAt": "2025-02-01T03:39:15.699Z",
"shippedAt": "2025-02-04T00:46:19.098Z",
"deliveredAt": "2025-02-07T08:26:25.500Z",
"createdAt": "2025-02-01T03:39:15.699Z",
"updatedAt": "2025-02-07T08:26:25.500Z"
},
{
"id": 651,
"userId": 208,
"status": "delivered",
"currency": "USD",
"subtotal": 2887.12,
"tax": 252.62,
"shipping": 0,
"total": 3139.74,
"placedAt": "2025-05-12T01:19:16.203Z",
"shippedAt": "2025-05-13T17:40:02.936Z",
"deliveredAt": "2025-05-16T22:56:52.105Z",
"createdAt": "2025-05-12T01:19:16.203Z",
"updatedAt": "2025-05-16T22:56:52.105Z"
}
],
"meta": {
"page": 28,
"limit": 24,
"total": 1000,
"totalPages": 42
},
"links": {
"self": "/api/v1/orders?page=28&limit=24",
"first": "/api/v1/orders?page=1&limit=24",
"last": "/api/v1/orders?page=42&limit=24",
"next": "/api/v1/orders?page=29&limit=24",
"prev": "/api/v1/orders?page=27&limit=24"
}
}