{
 "openapi": "3.1.0",
 "info": {
  "title": "Admissions (Student Lifecycle)",
  "version": "20261030b",
  "description": "Applicants from first inquiry to a decision, and from a decision to a student record."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "applicants": {
    "type": "object",
    "required": [
     "first_name",
     "last_name"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "org_unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org unit id",
      "readOnly": true
     },
     "location_id": {
      "type": "string",
      "format": "uuid",
      "description": "Campus"
     },
     "applicant_no": {
      "type": "string",
      "description": "Applicant no",
      "readOnly": true
     },
     "first_name": {
      "type": "string",
      "description": "First name"
     },
     "last_name": {
      "type": "string",
      "description": "Last name"
     },
     "preferred_name": {
      "type": "string",
      "description": "Preferred name"
     },
     "email": {
      "type": "string",
      "description": "Email"
     },
     "phone": {
      "type": "string",
      "description": "Phone"
     },
     "date_of_birth": {
      "type": "string",
      "format": "date",
      "description": "Date of birth"
     },
     "nationality": {
      "type": "string",
      "description": "Nationality"
     },
     "address": {
      "type": "string",
      "description": "Address"
     },
     "program_id": {
      "type": "string",
      "format": "uuid",
      "description": "Program applied for"
     },
     "term_id": {
      "type": "string",
      "format": "uuid",
      "description": "Entry term"
     },
     "application_date": {
      "type": "string",
      "format": "date",
      "description": "Application date"
     },
     "source": {
      "type": "string",
      "description": "Recruitment source"
     },
     "prior_school": {
      "type": "string",
      "description": "Previous institution"
     },
     "prior_gpa": {
      "type": "string",
      "format": "decimal",
      "description": "Prior grade"
     },
     "test_score": {
      "type": "string",
      "format": "decimal",
      "description": "Entrance test score"
     },
     "status": {
      "type": "string",
      "description": "Status"
     },
     "decision_date": {
      "type": "string",
      "format": "date",
      "description": "Decision date",
      "readOnly": true
     },
     "decision_by": {
      "type": "string",
      "format": "uuid",
      "description": "Decision by",
      "readOnly": true
     },
     "decision_notes": {
      "type": "string",
      "description": "Decision notes"
     },
     "rating": {
      "type": "string",
      "format": "decimal",
      "description": "Rating"
     },
     "student_id": {
      "type": "string",
      "format": "uuid",
      "description": "Student id",
      "readOnly": true
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Created at",
      "readOnly": true
     },
     "created_by": {
      "type": "string",
      "format": "uuid",
      "description": "Created by",
      "readOnly": true
     },
     "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Updated at",
      "readOnly": true
     },
     "updated_by": {
      "type": "string",
      "format": "uuid",
      "description": "Updated by",
      "readOnly": true
     },
     "xf_text_1": {
      "type": "string",
      "description": "Xf text 1",
      "readOnly": true
     },
     "xf_text_2": {
      "type": "string",
      "description": "Xf text 2",
      "readOnly": true
     },
     "xf_text_3": {
      "type": "string",
      "description": "Xf text 3",
      "readOnly": true
     },
     "xf_text_4": {
      "type": "string",
      "description": "Xf text 4",
      "readOnly": true
     },
     "xf_text_5": {
      "type": "string",
      "description": "Xf text 5",
      "readOnly": true
     },
     "xf_num_1": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 1",
      "readOnly": true
     },
     "xf_num_2": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 2",
      "readOnly": true
     },
     "xf_num_3": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 3",
      "readOnly": true
     },
     "xf_date_1": {
      "type": "string",
      "format": "date",
      "description": "Xf date 1",
      "readOnly": true
     },
     "xf_date_2": {
      "type": "string",
      "format": "date",
      "description": "Xf date 2",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/slcm/applicants": {
   "get": {
    "summary": "list applicants",
    "operationId": "list_applicants_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "create applicants",
    "operationId": "create_applicants_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/slcm/applicants/{id}": {
   "get": {
    "summary": "get applicants",
    "operationId": "get_applicants_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "change applicants",
    "operationId": "change_applicants_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "delete applicants",
    "operationId": "delete_applicants_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "patch": {
    "summary": "Patch admissions",
    "operationId": "action_applicants_3_5",
    "description": "Body keys: confirm_duplicate, duplicate_reason, review_later",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/slcm/applicants/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_applicants_0_6",
    "description": "Body keys: overrides, preview, withLines",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/slcm/applicants/{parentId}/documents": {
   "get": {
    "summary": "Documents",
    "operationId": "action_applicants_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Documents",
    "operationId": "action_applicants_1_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/slcm/applicants/{parentId}/documents/{lineId}": {
   "put": {
    "summary": "Documents",
    "operationId": "action_applicants_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Documents",
    "operationId": "action_applicants_1_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/slcm/applicants/{id}/decide": {
   "post": {
    "summary": "Decide",
    "operationId": "action_applicants_0_6",
    "description": "Body keys: decision, notes, rating; decision one of admitted|denied|waitlisted|deferred|under_review|interview",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/slcm/applicants/{id}/enroll": {
   "post": {
    "summary": "Enroll",
    "operationId": "action_applicants_0_6",
    "description": "Body keys: advisorId, enrollmentStatus, residency, cohort; enrollmentStatus one of full_time|part_time|not_enrolled",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}