Log every payment, reminder or new due to a spreadsheet automatically. Runs entirely in your own Google account - nothing to install, no cost.
/exec).function doPost(e) {
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheets()[0];
if (sheet.getLastRow() === 0) {
sheet.appendRow(['Time', 'Event', 'Customer', 'Amount', 'Status', 'Transaction ID']);
}
var body = JSON.parse(e.postData.contents);
var d = body.data || {};
sheet.appendRow([
body.timestamp || new Date().toISOString(),
body.event || '',
d.contact_name || d.name || '',
d.amount_paise != null ? (d.amount_paise / 100) : '',
d.status || '',
d.id || ''
]);
return ContentService.createTextOutput('ok');
}The first row becomes headers automatically. Each event adds a row with its time, type, customer, amount and status.
https://script.google.com/macros/s/AKfy.../execTick any of these when you connect. You can change them anytime.
Building your own software? The raw JSON and full REST API are in the API docs.
Open the API tab, pick this app, paste its URL. Two minutes.