{
  "info": {
    "name": "Fee Voucher Print & Cumulative Results APIs",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": "API endpoints for fee voucher print (3-copy layout) and subject-wise cumulative results."
  },
  "item": [
    {
      "name": "Fee Voucher Print",
      "item": [
        {
          "name": "Get Voucher Print Data",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{auth_token}}"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/fee-vouchers/1/print",
              "host": ["{{base_url}}"],
              "path": ["api", "v1", "fee-vouchers", "1", "print"]
            },
            "description": "Returns formatted print data for a fee voucher including branch info, bank details, student info, and fee items. Used for the 3-copy voucher print layout (Bank Copy, School Copy, Parent Copy)."
          },
          "response": []
        }
      ]
    },
    {
      "name": "Cumulative Results",
      "item": [
        {
          "name": "Get Subject-Wise Results",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{auth_token}}"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/exams/results/subject-wise?exam_id=1&class_id=1&section_id=1",
              "host": ["{{base_url}}"],
              "path": ["api", "v1", "exams", "results", "subject-wise"],
              "query": [
                {
                  "key": "exam_id",
                  "value": "1",
                  "description": "Required. The exam ID."
                },
                {
                  "key": "class_id",
                  "value": "1",
                  "description": "Required. The class ID."
                },
                {
                  "key": "section_id",
                  "value": "1",
                  "description": "Optional. The section ID."
                },
                {
                  "key": "branch_id",
                  "value": "",
                  "description": "Optional. Only for super admin.",
                  "disabled": true
                }
              ]
            },
            "description": "Returns subject-wise results for all students in a class for a specific exam. Includes subject marks, total, percentage, position/rank, and pass/fail status."
          },
          "response": []
        },
        {
          "name": "Get Cumulative Results (Existing)",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{auth_token}}"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/exams/results/cumulative?class_id=1&section_id=1&exam_type_id=1",
              "host": ["{{base_url}}"],
              "path": ["api", "v1", "exams", "results", "cumulative"],
              "query": [
                {
                  "key": "class_id",
                  "value": "1",
                  "description": "Required. The class ID."
                },
                {
                  "key": "section_id",
                  "value": "1",
                  "description": "Optional. The section ID."
                },
                {
                  "key": "exam_type_id",
                  "value": "1",
                  "description": "Optional. Filter by exam type.",
                  "disabled": true
                },
                {
                  "key": "branch_id",
                  "value": "",
                  "description": "Optional. Only for super admin.",
                  "disabled": true
                }
              ]
            },
            "description": "Returns exam-wise cumulative results across multiple exams. Shows grand total, cumulative percentage, grade, and rank."
          },
          "response": []
        }
      ]
    }
  ],
  "variable": [
    {
      "key": "base_url",
      "value": "http://127.0.0.1:8000"
    },
    {
      "key": "auth_token",
      "value": ""
    }
  ]
}
