orders
orders
Page 42 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": 985,
"userId": 224,
"status": "refunded",
"currency": "USD",
"subtotal": 2577.43,
"tax": 225.53,
"shipping": 0,
"total": 2802.96,
"placedAt": "2024-09-30T10:32:11.519Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2024-09-30T10:32:11.519Z",
"updatedAt": "2024-09-30T10:32:11.519Z"
},
{
"id": 986,
"userId": 111,
"status": "pending",
"currency": "USD",
"subtotal": 1165.23,
"tax": 101.96,
"shipping": 0,
"total": 1267.19,
"placedAt": "2025-05-04T20:26:41.330Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2025-05-04T20:26:41.330Z",
"updatedAt": "2025-05-04T20:26:41.330Z"
},
{
"id": 987,
"userId": 163,
"status": "confirmed",
"currency": "USD",
"subtotal": 3435.15,
"tax": 300.58,
"shipping": 0,
"total": 3735.73,
"placedAt": "2025-05-12T01:03:24.882Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2025-05-12T01:03:24.882Z",
"updatedAt": "2025-05-12T01:03:24.882Z"
}
],
"meta": {
"page": 42,
"limit": 24,
"total": 1000,
"totalPages": 42
},
"links": {
"self": "/api/v1/orders?page=42&limit=24",
"first": "/api/v1/orders?page=1&limit=24",
"last": "/api/v1/orders?page=42&limit=24",
"next": null,
"prev": "/api/v1/orders?page=41&limit=24"
}
}