example-data.com
Menu
Browse docs and collections

orders

orders

Page 40 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": 937,
      "userId": 214,
      "status": "refunded",
      "currency": "USD",
      "subtotal": 1187.91,
      "tax": 103.94,
      "shipping": 0,
      "total": 1291.85,
      "placedAt": "2024-08-02T15:52:23.777Z",
      "shippedAt": null,
      "deliveredAt": null,
      "createdAt": "2024-08-02T15:52:23.777Z",
      "updatedAt": "2024-08-02T15:52:23.777Z"
    },
    {
      "id": 938,
      "userId": 172,
      "status": "refunded",
      "currency": "USD",
      "subtotal": 1891.93,
      "tax": 165.54,
      "shipping": 0,
      "total": 2057.47,
      "placedAt": "2025-11-23T18:41:27.604Z",
      "shippedAt": null,
      "deliveredAt": null,
      "createdAt": "2025-11-23T18:41:27.604Z",
      "updatedAt": "2025-11-23T18:41:27.604Z"
    },
    {
      "id": 939,
      "userId": 167,
      "status": "confirmed",
      "currency": "USD",
      "subtotal": 1538.24,
      "tax": 134.6,
      "shipping": 0,
      "total": 1672.84,
      "placedAt": "2026-01-19T23:20:50.830Z",
      "shippedAt": null,
      "deliveredAt": null,
      "createdAt": "2026-01-19T23:20:50.830Z",
      "updatedAt": "2026-01-19T23:20:50.830Z"
    }
  ],
  "meta": {
    "page": 40,
    "limit": 24,
    "total": 1000,
    "totalPages": 42
  },
  "links": {
    "self": "/api/v1/orders?page=40&limit=24",
    "first": "/api/v1/orders?page=1&limit=24",
    "last": "/api/v1/orders?page=42&limit=24",
    "next": "/api/v1/orders?page=41&limit=24",
    "prev": "/api/v1/orders?page=39&limit=24"
  }
}