Add New Client
Loan Disbursement
Microcredit Loan Management
Apply for a Loan
Check Loan Status
function doPost(e) {
var sheet = SpreadsheetApp.openById('YOUR_SHEET_ID').getSheetByName('Sheet1');
var params = JSON.parse(e.postData.contents);
sheet.appendRow([params.name, params.loanAmount, params.disbursementDate, params.dueDate]);
return ContentService.createTextOutput(JSON.stringify({status: 'success'}))
.setMimeType(ContentService.MimeType.JSON);
}