Skip to content

1-month Loan Dashboard Detail

These APIs are used to fetch dashboard detail for 1-month loans.

a. When loan status is ACTIVE


1-month Active Loan Details
1-month Active Loan Details


URL /v4/dashboard/detail
METHOD POST
<br>

Request body

{
  "bankCode": "SCB",
  "customerNumber": "9845528933"
}


Field Data Type Description
bankCode String Swift code representing the bank (e.g., SCB).
customerNumber String Unique identifier for the customer.


Response body <button>Copy</button>

{
    "status": "OK",
    "statusCode": 200,
    "series": "SUCCESSFUL",
    "code": 20,
    "phrase": "Successful",
    "message": "Existing loan details fetched successfully.",
    "data": {
        "appView": {
            "header": {
                "title": "Fone Loan Details",
                "user": {
                    "greeting": "Namaste!",
                    "name": "Amira Joshi",
                    "avatar": ""
                },
                "showWarning": false
            },
            "body": {
                "progressBarSection": {
                    "type": "progress_bar",
                    "title": "Loan Principal Due Vs Available Limit",
                    "progress": [
                        {
                            "label": "1 month",
                            "value": "NPR 30,000.00",
                            "color": "#4E525A"
                        },
                        {
                            "label": "Available Limit",
                            "value": "NPR 0.00",
                            "color": "#F38A36"
                        }
                    ],
                    "message": "Settle existing loan to apply new loan.",
                    "showMessage": true
                },
                "loanSummarySection": {
                    "actionButtonSection": [
                        {
                            "label": "Settle Now",
                            "action": {
                                "enabled": true,
                                "type": "button",
                                "target": "settleLoan",
                                "url": "/v4/prepayment/process"
                            }
                        },
                        {
                            "label": "View Details",
                            "action": {
                                "enabled": true,
                                "type": "button",
                                "target": "viewLoanDetail",
                                "url": "/v4/dashboard/detail/active"
                            }
                        }
                    ],
                    "type": "loan_summary",
                    "items": [
                        {
                            "key": "Loan Status",
                            "value": "ACTIVE"
                        },
                        {
                            "key": "Payment Amount",
                            "value": "NPR 0.00"
                        },
                        {
                            "key": "Payment Date",
                            "value": "ACTIVE",
                            "daysleft": "(20D Left)"
                        }
                    ]
                },
                "bnplSection": {
                    "type": "button",
                    "title": "Buy Now, Pay Later",
                    "description": "You can use the fund to buy products using buy now pay later QR scanner.",
                    "button": {
                        "label": "Open BNPL Offering Website",
                        "action": {
                            "enabled": false,
                            "type": "url",
                            "url": "https://foneloan.hamrobazaar.com/"
                        }
                    }
                },
                "pastLoanHistorySection": {
                    "type": "button",
                    "label": "Past Loan History",
                    "action": {
                        "enabled": false,
                        "type": "navigate",
                        "target": "loan_history"
                    }
                }
            }
        }
    },
    "timestamp": "26-01-2025 03:36:46 PM"
}

b. When loan status is OVERDUE


1-month OVERDUE Loan Details
1-month Active Loan Details


URL /v4/deashboard/detail
METHOD POST
<br>

Request body

{
  "bankCode": "SCB",
  "customerNumber": "9845528933"
}


Field Data Type Description
bankCode String Swift code representing the bank (e.g., SCB).
customerNumber String Unique identifier for the customer.


Response body <button>Copy</button>

{
    "status": "OK",
    "statusCode": 200,
    "series": "SUCCESSFUL",
    "code": 20,
    "phrase": "Successful",
    "message": "Existing loan details fetched successfully.",
    "data": {
        "appView": {
            "header": {
                "title": "Fone Loan Details",
                "user": {
                    "greeting": "Namaste!",
                    "name": "Amira Joshi",
                    "avatar": ""
                },
                "showWarning": false
            },
            "body": {
                "progressBarSection": {
                    "type": "progress_bar",
                    "title": "Loan Principal Due Vs Available Limit",
                    "progress": [
                        {
                            "label": "1 month",
                            "value": "NPR 30,000.00",
                            "color": "#4E525A"
                        },
                        {
                            "label": "Available Limit",
                            "value": "NPR 0.00",
                            "color": "#F38A36"
                        }
                    ],
                    "message": "Settle existing loan to apply new loan.",
                    "showMessage": true
                },
                "loanSummarySection": {
                    "actionButtonSection": [
                        {
                            "label": "Settle Now",
                            "action": {
                                "enabled": true,
                                "type": "button",
                                "target": "settleLoan",
                                "url": "/v4/prepayment/process"
                            }
                        },
                        {
                            "label": "View Details",
                            "action": {
                                "enabled": true,
                                "type": "button",
                                "target": "viewLoanDetail",
                                "url": "/v4/dashboard/detail/active"
                            }
                        }
                    ],
                    "type": "loan_summary",
                    "items": [
                        {
                            "key": "Loan Status",
                            "value": "ACTIVE"
                        },
                        {
                            "key": "Payment Amount",
                            "value": "NPR 0.00"
                        },
                        {
                            "key": "Payment Date",
                            "value": "ACTIVE",
                            "daysleft": "(20D Left)"
                        }
                    ]
                },
                "bnplSection": {
                    "type": "button",
                    "title": "Buy Now, Pay Later",
                    "description": "You can use the fund to buy products using buy now pay later QR scanner.",
                    "button": {
                        "label": "Open BNPL Offering Website",
                        "action": {
                            "enabled": false,
                            "type": "url",
                            "url": "https://foneloan.hamrobazaar.com/"
                        }
                    }
                },
                "pastLoanHistorySection": {
                    "type": "button",
                    "label": "Past Loan History",
                    "action": {
                        "enabled": false,
                        "type": "navigate",
                        "target": "loan_history"
                    }
                }
            }
        }
    },
    "timestamp": "26-01-2025 03:49:15 PM"
}