## CRM (Customer Relationship Manager) ### - Create a login page by Account No : POST api/auth/login/account_no Input : ``` {"AccNo" : "XXXXXXXXXXXXX"} ``` Output : ``` { "ok": true } ``` ### - Fetch the mobile no by Account No : GET api/mobile_no/by/[Account Number] Output: ``` "mobile_number": "XXXXXXXXXX" ``` ### - Generate OTP and sended to the mobile no: GET api/otp Output: ``` { "message": "46687" } ``` ### - Validate the OTP : POST api/otp Body ``` {"OTP" : XXXXX} ``` Output ``` {"ok":true} ``` ### - Post a ticket POST http://localhost:3000/api/ticket Input : ``` { "summary": "UPI Fault", "description": "UPI Fault", "steps_to_reproduce" :"Money got debited from account" } ``` Output : ``` "message": "Ticket No:2 created successfully" ``` ### - Get the list of ticket raised by the user GET http://localhost:3000/api/ticket Output : ``` [ { "id": 1, "category_of_request": "Fund Transfer failure", "nature_of_request": "Fund Transfer failure", "created_date": "Mon Jan 13 2025 16:32:30 GMT+0530 (India Standard Time)", "Status": "Reopen", "Message": [ { "note": "solve" }, { "note": "check once" }, { "note": "in progress" } ] }, { "id": 2, "category_of_request": "UPI Fault", "nature_of_request": "UPI Fault", "created_date": "Tue Jan 14 2025 11:11:03 GMT+0530 (India Standard Time)", "Status": "Open", "Message": [ { "note": "note1" } ] } ] ``` ### - Get the details ticket for particular ticket raised by the user GET http://localhost:3000/api/ticket/[ticket_id] ``` { "id": 1, "ticket_id": 1, "category_of_request": "ATM Related", "nature_of_request": "Transaction Issue", "additional_info": "ATM ID: PNB23567WE456, Debit Card: 34567895434567, Transaction Amount: 15000, Transaction Reference Number : 345678987654323, Transaction Date: 2025-02-11", "message": "Money got debited but money not receive. ", "created_date": "12/2/2025, 12:31:13 pm" } ```