Skip to content

UMRN Master

The UMRN (Unique Mandate Reference Number) Master is a mapping table that links NACH mandate references to loan IDs. It's used when payment files from Cashfree (GB and UGRO) have blank Link ID values - the system resolves the loan ID through the UMRN/sub-reference lookup.

UMRN Master

Why It's Needed

Cashfree NACH payment files have two types of rows:

Row TypeLink IDOrder NoteHow Loan ID is Resolved
Payment LinkGB00682_Apr26_Namepayment_link_198475554Parsed from Link ID prefix
NACH Mandate(blank)charge for paymentId : 442195198 & subReferenceId : 5226394UMRN Master lookup

For NACH mandate rows, the subReferenceId is extracted from the Order Note and looked up in the UMRN Master table to find the corresponding loan ID.

Upload

  1. Go to File Upload > UMRN Master tab
  2. Click Upload UMRN Master
  3. Choose Load Mode:
    • Truncate & Load - replaces all existing data with the new file
    • Append to existing - adds new rows alongside existing data
  4. Select the xlsx or csv file
  5. Click Upload

Expected File Format

ColumnDescriptionExample
LAN IDLender Account NumberTR10010
Loan NoFineract loan external IDLL0004
NBFCLender nameLiquiloans
NameBorrower nameSabanna Gowda BM
Phone 1Contact number9663222968
Sub Ref IDUMRN / sub-reference ID3285659

The Sub Ref ID column is the key field - it maps to the subReferenceId extracted from Cashfree NACH Order Notes.

Database Table

RAW.RAW_UMRN_MASTER

ColumnTypeDescription
lan_idtextLender account number
loan_idtextFineract loan external ID
nbfctextLender name
nametextBorrower name
phonetextContact number
sub_reference_idtextUMRN / sub-reference (indexed)

Lookup Flow

During CSV processing (csv_processor.py):

  1. Extract sub-reference - regex parses subReferenceId : {number} from the note column
  2. UMRN lookup - queries RAW_UMRN_MASTER where sub_reference_id matches
  3. Fill loan_id - if found, updates the blank loan_id with the UMRN master's loan_id
  4. Flag if unresolved - rows still without a loan_id after lookup are flagged as bad records

The UMRN Master tab includes a search box that filters by Loan ID, LAN ID, UMRN, or Name across all records.

API Endpoints

MethodPathDescription
POST/api/umrn-master/uploadUpload file (form: file, load_mode)
GET/api/umrn-master/statsRow count + last upload timestamp
GET/api/umrn-masterPaginated list with search

Turno Fineract LMS Documentation