SFTP Job Integration Service
๐ Overview
The SFTP Job Integration Service allows external clients to submit job requests via CSV files placed in predefined directories on an SFTP server. Each directory corresponds to a specific template ID, which defines how the submitted data is processed. The system handles ingestion, request generation, execution, and result classification (success or error).
๐ฏ Use Case
Clients often require a simple, secure, and decoupled way to submit data for processing without integrating directly with internal APIs. This service enables such integration through a structured file-drop mechanism using SFTP.
๐๏ธ Configurable Directory Mapping
The system supports multiple jobs by associating each template name exactly with its own unique input/output directory structure, which is provided via a setup request. Each template name defines its own job configuration and SFTP directories.
๐ Example Configuration
{
"Voter ID Verification": {
"input_files_dir": "/sftp/template1/input", //directory where input files go
"processed_files_dir": "/sftp/template1/processed", //directory where files will be moved after processing
"success_files_dir": "/sftp/template1/success", //directory where report files will go after processing in case of successful completion
"error_files_dir": "/sftp/template1/error" //directory where report files will go after processing in case of failures, will contain the error that occurs
},
"Sign request for template": {
"input_files_dir": "/sftp/template2/input", //directory where input files go
"processed_files_dir": "/sftp/template2/processed", //directory where files will be moved after processing
"success_files_dir": "/sftp/template2/success", //directory where report files will go after processing in case of successful completion
"error_files_dir": "/sftp/template2/error" //directory where report files will go after processing in case of failures, will contain the error that occurs
}
}
๐งพ Directory Definitions
| Field | Description | |
|---|---|---|
| input_files_dir | Directory where .csv files are placed for processing | |
| processed_files_dir | Location where original files are moved after processing (optional) | |
| success_files_dir | Output directory for successfully processed job results | |
| error_files_dir | Output directory for errors or failed job logs |
๐ Template names available
- Bank Account Verification
- Bulk MUT Presentation Creation
- Bulk Nach Mandate Cancellation
- Bulk Nach Mandate Creation
- Bulk Nach Presentation Cancellation
- Bulk Upi Mandate Cancellation
- Bulk Upi Mandate Creation
- Bulk Upi Presentations Cancellation
- Create NACH Presentations
- Create Upi Presentations
- Driving Licence Verification
- Estamp bulk consume
- Estamp bulk upload
- Estamp bulk upload zip
- Estamp bulk upload zip and csv
- Get Form variables
- Get Template variables
- IFSC Verification
- Mandate Org Migration
- PAN Verification
- Reporting Service
- Revnue Stamp bulk upload
- Sign request for form
- Sign request for template
- Voter ID Verification
- VPA Verification
๐ Security
- Clients have isolated access to only their assigned directories.
- SFTP credentials are securely stored and accessed.
- Only files in configured paths are processed.
๐ Workflow Summary
- CSV File Drop
Client drops
.csvintoinput_files_dir. Ensure the file name for the csv is same as the request to be generated against. Example - Lets say a job template that is supposed to generate sign requests for a form with ID FTP2504151934402763BUEKMM4QN8KXN, the csv should be FTP2007151934402763BUEKMM4QN8KXN.csv with the corresponding contents - Detection & Association
The system monitors all configured input directories and maps the file to the correct
templateId. - Processing
- CSV is parsed and validated.
- Job logic specific to the
templateIdis applied.
- File Routing
- โ
Success โ
success_files_dir - โ Error โ
error_files_dir - ๐ Optionally โ
processed_files_dir
- โ
Success โ