Decision Model Lookup

Summary

With these services, you are able to view existing decision models created by your business.

Introduction

Decisioning is a very important part of the lending cycle, which is why Adjutor provides endpoints that allow you fetch all the decision models that you have configured on the Lendsqr platform.

Below are the API services available for usage:

API Endpoint
Description

This endpoint fetches all the decision models that you have configured on the Lendsqr platform.

This endpoint fetches an individual decision model and its settings that have been configured on your platform.

Get all decision models

This endpoint fetches all the decision models that you have configured on the Lendsqr platform. This endpoint returns all the decision model data you have on your platform irrespective of whether they have been activated or not.

curl --location 'https://adjutor.lendsqr.com/v2/decisioning/models/:id/settings'

Get details of a single decision model

This endpoint fetches an individual decision model and its settings that have been configured on your platform using the decision model id.

curl --location 'https://adjutor.lendsqr.com/v2/decisioning/models/:id/settings'
{
    "status": "success",
    "message": "Successful",
    "data": [
        {
            "id": 20,
            "product_id": null,
            "version_id": 33,
            "org_id": 1,
            "name": "Test Decision Model",
            "description": "testing",
            "decision_setting": {
                "karma": {
                    "required": true,
                    "sequence": 1,
                    "continue_on_failure": false,
                    "pre_offer": true
                },
                "ecosystem": {
                    "required": true,
                    "sequence": 2,
                    "continue_on_failure": false,
                    "pre_offer": true
                },
                "scoring": {
                    "minimum": 50,
                    "required": true,
                    "sequence": 3,
                    "continue_on_failure": false,
                    "pre_offer": true
                },
                "credit_bureau": {
                    "provider": "CRC",
                    "required": true,
                    "sequence": 4,
                    "continue_on_failure": false
                }
            },
            "offer_setting": [
                {
                    "rule": {
                        "*": [
                            1,
                            {
                                "var": [
                                    "requested_amount"
                                ]
                            }
                        ]
                    },
                    "maximum": 10000000,
                    "minimum": 1000
                }
            ],
            "status": "active",
            "created_on": "2021-07-31T08:06:27.000Z"
        }
    ]
}

In the case where you have no decision model configured, the endpoint returns an empty array.

Last updated