{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/currencycloud/main/json-schema/currencycloud-pagination-schema.json",
  "title": "Pagination",
  "description": "Pagination.",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/currencycloud-accounts-api-openapi.yml#/components/schemas/Pagination",
  "type": "object",
  "properties": {
    "total_entries": {
      "type": "integer"
    },
    "total_pages": {
      "type": "integer"
    },
    "current_page": {
      "type": "integer"
    },
    "per_page": {
      "type": "integer",
      "description": "Number of results per page."
    },
    "previous_page": {
      "type": "integer"
    },
    "next_page": {
      "type": "integer"
    },
    "order": {
      "type": "string",
      "description": "The field name by which the results are sorted."
    },
    "order_asc_desc": {
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ],
      "default": "asc",
      "description": "Whether results are sorted in ascending or descending order."
    }
  }
}