{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/beel-es/json-schema/beel-es-pagination-schema.json",
  "title": "Pagination",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/beel-es-accountwebhooks-api-openapi.yml#/components/schemas/Pagination",
  "type": "object",
  "required": [
    "current_page",
    "total_pages",
    "total_items",
    "items_per_page"
  ],
  "properties": {
    "current_page": {
      "type": "integer"
    },
    "total_pages": {
      "type": "integer",
      "description": "How many pages the query has. An empty collection has **one** page — the\nfirst one, empty — so the smallest value a canonical route returns is `1`.\n\nThe deprecated flat aliases (`/v1/invoices`, `/v1/customers`, …) answer `0`\nfor that same empty collection, and `has_next`/`has_previous` follow suit.\nThey were left as they were on purpose: a client that reads `total_pages == 0`\nas \"no results\" would break if it changed under it. Do not compare the two\nfamilies of routes field by field; read `total_items` if what you want to know\nis whether anything came back.\n"
    },
    "total_items": {
      "type": "integer"
    },
    "items_per_page": {
      "type": "integer"
    },
    "has_next": {
      "type": "boolean"
    },
    "has_previous": {
      "type": "boolean"
    }
  }
}