orders
orders
Page 14 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": 313,
"userId": 138,
"status": "shipped",
"currency": "USD",
"subtotal": 1984.7,
"tax": 173.66,
"shipping": 0,
"total": 2158.36,
"placedAt": "2024-06-14T19:11:02.936Z",
"shippedAt": "2024-06-16T23:59:06.438Z",
"deliveredAt": null,
"createdAt": "2024-06-14T19:11:02.936Z",
"updatedAt": "2024-06-16T23:59:06.438Z"
},
{
"id": 314,
"userId": 93,
"status": "delivered",
"currency": "USD",
"subtotal": 1383.91,
"tax": 121.09,
"shipping": 0,
"total": 1505,
"placedAt": "2026-02-19T13:25:19.235Z",
"shippedAt": "2026-02-21T03:24:03.609Z",
"deliveredAt": "2026-02-24T15:50:09.892Z",
"createdAt": "2026-02-19T13:25:19.235Z",
"updatedAt": "2026-02-24T15:50:09.892Z"
},
{
"id": 315,
"userId": 181,
"status": "cancelled",
"currency": "USD",
"subtotal": 2285.74,
"tax": 200,
"shipping": 0,
"total": 2485.74,
"placedAt": "2025-04-11T10:55:29.658Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2025-04-11T10:55:29.658Z",
"updatedAt": "2025-04-11T10:55:29.658Z"
}
],
"meta": {
"page": 14,
"limit": 24,
"total": 1000,
"totalPages": 42
},
"links": {
"self": "/api/v1/orders?page=14&limit=24",
"first": "/api/v1/orders?page=1&limit=24",
"last": "/api/v1/orders?page=42&limit=24",
"next": "/api/v1/orders?page=15&limit=24",
"prev": "/api/v1/orders?page=13&limit=24"
}
}