Get Scorecard Breakdown By Key

Request

curl --location GET 'https://api.insights-periculum.io/creditscore/custom-decision-breakdown-by-key/{scorecardKey}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {token}' \
 

Response


{
    "canGenerateNewScore": false,
    "canViewScorebreakdown": true,
    "scoresBreakdowns": {
        "key": 1,
        "rulesScore": 30,
        "baseScore": 300,
        "calculatedScore": 330,
        "createdDate": "2024-07-02T08:35:56.824+00:00",
        "didPass": true,
        "type": "POINTS",
        "scorecardName": "LoanV2",
        "customGrade": "E",
        "rules": [
            {
                "friendlyRuleTitle": "Age Greater Than 5 Years",
                "ruleDescription": "Age should Greater Than 5 Years",
                "leftHandSide": "$Statement.Age",
                "friendlyLeftHandSide": "Age ",
                "operator": "GREATER_THAN",
                "friendlyOperator": ">",
                "rightHandSide": "5",
                "friendlyRightHandSide": "Five",
                "passingSentiment": "Good",
                "actualLeftHandSide": "34",
                "actualRightHandSide": "5",
                "friendlyLeftHandSideDisplayType": "TEXT",
                "friendlyRightHandSideDisplayType": "TEXT",
                "didPass": true,
                "obtainedPoints": 30
            }
        ],
        "customerId": "1"
    }
}