example-data.com
Menu
Browse docs and collections

orders

orders

Page 11 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": 241,
      "userId": 115,
      "status": "refunded",
      "currency": "USD",
      "subtotal": 1260.94,
      "tax": 110.33,
      "shipping": 0,
      "total": 1371.27,
      "placedAt": "2025-12-15T01:07:11.682Z",
      "shippedAt": null,
      "deliveredAt": null,
      "createdAt": "2025-12-15T01:07:11.682Z",
      "updatedAt": "2025-12-15T01:07:11.682Z"
    },
    {
      "id": 242,
      "userId": 79,
      "status": "confirmed",
      "currency": "USD",
      "subtotal": 2468.09,
      "tax": 215.96,
      "shipping": 0,
      "total": 2684.05,
      "placedAt": "2026-05-20T07:22:10.631Z",
      "shippedAt": null,
      "deliveredAt": null,
      "createdAt": "2026-05-20T07:22:10.631Z",
      "updatedAt": "2026-05-20T07:22:10.631Z"
    },
    {
      "id": 243,
      "userId": 225,
      "status": "delivered",
      "currency": "USD",
      "subtotal": 1118.79,
      "tax": 97.89,
      "shipping": 0,
      "total": 1216.68,
      "placedAt": "2026-04-03T19:55:27.007Z",
      "shippedAt": "2026-04-05T15:15:55.589Z",
      "deliveredAt": "2026-04-10T19:16:24.241Z",
      "createdAt": "2026-04-03T19:55:27.007Z",
      "updatedAt": "2026-04-10T19:16:24.241Z"
    }
  ],
  "meta": {
    "page": 11,
    "limit": 24,
    "total": 1000,
    "totalPages": 42
  },
  "links": {
    "self": "/api/v1/orders?page=11&limit=24",
    "first": "/api/v1/orders?page=1&limit=24",
    "last": "/api/v1/orders?page=42&limit=24",
    "next": "/api/v1/orders?page=12&limit=24",
    "prev": "/api/v1/orders?page=10&limit=24"
  }
}