{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/certifyos/main/json-schema/certifyos-get-all-plans-response-schema.json",
  "title": "GetAllPlansResponse",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/certifyos-plan-api-openapi.yml#/components/schemas/GetAllPlansResponse",
  "type": "object",
  "properties": {
    "totalCount": {
      "type": "integer",
      "format": "int64",
      "description": "Total number of plans matching the request, across all pages."
    },
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "description": "A single plan record as it appears in a paginated plans listing.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Server-assigned unique identifier for the plan."
          },
          "tenantId": {
            "type": "string",
            "description": "Identifier of the tenant that owns this plan."
          },
          "payerId": {
            "type": "string",
            "description": "Identifier of the payer this plan is associated with. Extracted server-side from `data.payer` at creation time."
          },
          "data": {
            "type": "object",
            "description": "The plan's domain data, validated against the Plan JSON schema at creation/update time."
          }
        }
      },
      "description": "The current page of plan records (at most 10)."
    }
  }
}