{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/genialis/main/json-schema/genialis-paginated-billing-account-list-schema.json",
  "title": "PaginatedBillingAccountList",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/genialis-billingaccount-api-openapi.yml#/components/schemas/PaginatedBillingAccountList",
  "type": "object",
  "required": [
    "count",
    "results"
  ],
  "properties": {
    "count": {
      "type": "integer"
    },
    "next": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "previous": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BillingAccount"
      }
    }
  },
  "$defs": {
    "BillingAccount": {
      "type": "object",
      "description": "Billing account serializer.",
      "properties": {
        "active": {
          "type": "boolean",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "readOnly": true
        },
        "id": {
          "type": "integer",
          "readOnly": true
        }
      },
      "required": [
        "active",
        "id",
        "name"
      ]
    }
  }
}