{
 "openapi": "3.1.0",
 "info": {
  "title": "Applications (HRMS)",
  "version": "20261030b",
  "description": "Every application received against a vacancy, and what stage it has reached. This is the screen that answers \"how many applied, how many were shortlisted, how many were interviewed, and who was selected\" — counted from the record rather than from a spreadsheet somebody keeps."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "applications": {
    "type": "object",
    "required": [],
    "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
     },
     "application_no": {
      "type": "string",
      "description": "Application no",
      "readOnly": true
     },
     "applied_on": {
      "type": "string",
      "format": "date",
      "description": "Applied on",
      "readOnly": true
     },
     "status": {
      "type": "string",
      "description": "Status",
      "readOnly": true
     },
     "rating": {
      "type": "integer",
      "description": "Rating",
      "readOnly": true
     },
     "rejected_reason": {
      "type": "string",
      "description": "Rejected reason",
      "readOnly": true
     },
     "candidate_no": {
      "type": "string",
      "description": "Candidate no",
      "readOnly": true
     },
     "candidate_name": {
      "type": "string",
      "description": "Candidate name",
      "readOnly": true
     },
     "email": {
      "type": "string",
      "description": "Email",
      "readOnly": true
     },
     "is_internal": {
      "type": "boolean",
      "description": "Is internal",
      "readOnly": true
     },
     "source": {
      "type": "string",
      "description": "Source",
      "readOnly": true
     },
     "current_employer": {
      "type": "string",
      "description": "Current employer",
      "readOnly": true
     },
     "current_title": {
      "type": "string",
      "description": "Current title",
      "readOnly": true
     },
     "requisition_no": {
      "type": "string",
      "description": "Requisition no",
      "readOnly": true
     },
     "role": {
      "type": "string",
      "description": "Role",
      "readOnly": true
     },
     "department": {
      "type": "string",
      "description": "Department",
      "readOnly": true
     },
     "stage_code": {
      "type": "string",
      "description": "Stage code",
      "readOnly": true
     },
     "stage": {
      "type": "string",
      "description": "Stage",
      "readOnly": true
     },
     "stage_order": {
      "type": "integer",
      "description": "Stage order",
      "readOnly": true
     },
     "is_terminal": {
      "type": "boolean",
      "description": "Is terminal",
      "readOnly": true
     },
     "days_since_applied": {
      "type": "integer",
      "description": "Days since applied",
      "readOnly": true
     },
     "interviews": {
      "type": "integer",
      "description": "Interviews",
      "readOnly": true
     },
     "interviews_done": {
      "type": "integer",
      "description": "Interviews done",
      "readOnly": true
     },
     "average_score": {
      "type": "string",
      "format": "decimal",
      "description": "Average score",
      "readOnly": true
     },
     "offer_no": {
      "type": "string",
      "description": "Offer no",
      "readOnly": true
     },
     "offer_status": {
      "type": "string",
      "description": "Offer status",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/hrms/applications": {
   "get": {
    "summary": "list applications",
    "operationId": "list_applications_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Post applications",
    "operationId": "action_applications_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/applications/{id}": {
   "get": {
    "summary": "get applications",
    "operationId": "get_applications_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "Put applications",
    "operationId": "action_applications_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Delete applications",
    "operationId": "action_applications_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/applications/{id}/self-identification": {
   "get": {
    "summary": "Self identification",
    "operationId": "action_applications_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Self identification",
    "operationId": "action_applications_1_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/applications/{id}/self-identification-link": {
   "post": {
    "summary": "Self identification link",
    "operationId": "action_applications_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/applications/{id}/advance": {
   "post": {
    "summary": "Advance",
    "operationId": "action_applications_0_6",
    "description": "Body keys: stageCode",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/applications/{id}/reject": {
   "post": {
    "summary": "Reject",
    "operationId": "action_applications_0_6",
    "description": "Body keys: reason*",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/applications/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_applications_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"
     }
    }
   }
  }
 }
}