example-data.com
Menu
Browse docs and collections

orders

orders

Page 35 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": 817,
      "userId": 22,
      "status": "cancelled",
      "currency": "USD",
      "subtotal": 845.03,
      "tax": 73.94,
      "shipping": 0,
      "total": 918.97,
      "placedAt": "2026-05-19T22:34:01.618Z",
      "shippedAt": null,
      "deliveredAt": null,
      "createdAt": "2026-05-19T22:34:01.618Z",
      "updatedAt": "2026-05-19T22:34:01.618Z"
    },
    {
      "id": 818,
      "userId": 164,
      "status": "confirmed",
      "currency": "USD",
      "subtotal": 5005.87,
      "tax": 438.01,
      "shipping": 0,
      "total": 5443.88,
      "placedAt": "2024-12-10T09:03:21.039Z",
      "shippedAt": null,
      "deliveredAt": null,
      "createdAt": "2024-12-10T09:03:21.039Z",
      "updatedAt": "2024-12-10T09:03:21.039Z"
    },
    {
      "id": 819,
      "userId": 246,
      "status": "refunded",
      "currency": "USD",
      "subtotal": 212.41,
      "tax": 18.59,
      "shipping": 0,
      "total": 231,
      "placedAt": "2025-09-28T06:21:21.304Z",
      "shippedAt": null,
      "deliveredAt": null,
      "createdAt": "2025-09-28T06:21:21.304Z",
      "updatedAt": "2025-09-28T06:21:21.304Z"
    }
  ],
  "meta": {
    "page": 35,
    "limit": 24,
    "total": 1000,
    "totalPages": 42
  },
  "links": {
    "self": "/api/v1/orders?page=35&limit=24",
    "first": "/api/v1/orders?page=1&limit=24",
    "last": "/api/v1/orders?page=42&limit=24",
    "next": "/api/v1/orders?page=36&limit=24",
    "prev": "/api/v1/orders?page=34&limit=24"
  }
}