orders
orders
Page 34 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": 793,
"userId": 223,
"status": "delivered",
"currency": "USD",
"subtotal": 263.9,
"tax": 23.09,
"shipping": 0,
"total": 286.99,
"placedAt": "2026-02-18T23:27:40.168Z",
"shippedAt": "2026-02-21T11:51:08.384Z",
"deliveredAt": "2026-02-24T12:30:26.915Z",
"createdAt": "2026-02-18T23:27:40.168Z",
"updatedAt": "2026-02-24T12:30:26.915Z"
},
{
"id": 794,
"userId": 201,
"status": "pending",
"currency": "USD",
"subtotal": 345.18,
"tax": 30.2,
"shipping": 0,
"total": 375.38,
"placedAt": "2026-04-14T16:55:47.511Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2026-04-14T16:55:47.511Z",
"updatedAt": "2026-04-14T16:55:47.511Z"
},
{
"id": 795,
"userId": 142,
"status": "shipped",
"currency": "USD",
"subtotal": 2303.84,
"tax": 201.59,
"shipping": 0,
"total": 2505.43,
"placedAt": "2024-07-28T03:00:07.237Z",
"shippedAt": "2024-07-30T21:20:46.747Z",
"deliveredAt": null,
"createdAt": "2024-07-28T03:00:07.237Z",
"updatedAt": "2024-07-30T21:20:46.747Z"
}
],
"meta": {
"page": 34,
"limit": 24,
"total": 1000,
"totalPages": 42
},
"links": {
"self": "/api/v1/orders?page=34&limit=24",
"first": "/api/v1/orders?page=1&limit=24",
"last": "/api/v1/orders?page=42&limit=24",
"next": "/api/v1/orders?page=35&limit=24",
"prev": "/api/v1/orders?page=33&limit=24"
}
}