> For the complete documentation index, see [llms.txt](https://docs.tendar.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tendar.co/documentation/credit-scoring/eligibility.md). Agents can also search and read this documentation through its [MCP server](https://docs.tendar.co/~gitbook/mcp).

# Eligibility

Set your lending rules once, and get a decision, with the reasons, for every loan request.

Save your rules as a **credit policy**: a minimum score, how much someone may owe, who you don't lend to. Tendar checks each customer and amount against it and answers **approve**, **refer** (look before you lend) or **decline**, with every rule that didn't pass and the most you could lend instead.

The check runs on every loan you create. You can also run it yourself, for example to tell a customer how much they can apply for.

All endpoints need your secret key. See [Authentication](https://docs.tendar.co/documentation/getting-started/authentication.md).

### How a decision is made

***

A check gathers what Tendar knows about the customer: the [blacklist](https://docs.tendar.co/documentation/credit-scoring/blacklist.md), a fresh [Credit Score](https://docs.tendar.co/documentation/credit-scoring/credit-score.md), the loans they owe you, their profile and their latest [risk assessment](https://docs.tendar.co/documentation/credit-scoring/risk-assessment.md). It applies each rule in your policy, and the decision is the strictest result:

| `outcome` | Meaning                                                              |
| --------- | -------------------------------------------------------------------- |
| `approve` | Every rule passed.                                                   |
| `refer`   | A rule asks for a review. They can borrow, but look before you lend. |
| `decline` | A rule failed. Don't lend this amount.                               |

`reasons` lists every rule that didn't approve, and `max_amount` is the most your policy allows them now, so you can offer a smaller loan instead of a flat no. Every decision is kept, with the policy version it used.

**Until you save a policy**, only the blacklist applies: blocked customers are declined and flagged ones are referred. Everyone else is approved.

**On loan creation**, a referred loan is created `pending` and never paid out automatically, and a declined one isn't created. See [Credit policy check](https://docs.tendar.co/documentation/disbursement/loans.md#credit-policy-check).

### Your credit policy

***

```
GET /api/v1/decisioning/policy
PUT /api/v1/decisioning/policy
GET /api/v1/decisioning/policy/history
```

`PUT` saves the **whole** policy as a new version, so send every rule you want to keep: a rule you leave out is removed. `GET` returns your live policy with its `version`. Version `0` is the default you have until you save one. The history lists every version, newest first.

Every rule is optional. Leave one out, or set it to `null`, and it doesn't apply.

```json
{
    "blacklist": { "flagged": "refer" },
    "score": {
        "min_score": 500,
        "refer_below": 580,
        "unscored": "refer",
        "max_current_dpd": 7,
        "max_bureau_dpd": 30
    },
    "limits": {
        "min_amount": 5000,
        "max_amount": 500000,
        "by_band": { "low": 20000, "average": 100000, "good": 250000, "excellent": 500000, "unscored": 20000 }
    },
    "exposure": { "max_active_loans": 0, "max_network_active_loans": 2 },
    "profile": {
        "min_age": 21,
        "max_age": 65,
        "min_years_of_employment": 1,
        "excluded_employment": ["unemployed"],
        "refer_employment": ["student"],
        "excluded_states": [],
        "refer_states": [],
        "incomplete": "refer"
    },
    "affordability": { "max_pd": 0.15, "max_dti": 0.4, "missing": "refer" }
}
```

| Rule              | Field                                                     | Description                                                                                                                                                                                        |
| ----------------- | --------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Blacklist**     | `blacklist.flagged`                                       | What a flagged borrower gets: `approve`, `refer` (default) or `decline`. A blocked borrower is always declined.                                                                                    |
| **Score**         | `score.min_score`                                         | Decline below this score (300–850).                                                                                                                                                                |
|                   | `score.refer_below`                                       | Refer below this score (and at or above `min_score`).                                                                                                                                              |
|                   | `score.unscored`                                          | What a borrower too new to score gets: `approve` (default), `refer` or `decline`.                                                                                                                  |
|                   | `score.max_current_dpd`                                   | Decline when an installment at a Tendar lender is overdue by more days than this.                                                                                                                  |
|                   | `score.max_bureau_dpd`                                    | Decline when an open bureau account is past due by more days than this.                                                                                                                            |
| **Amount**        | `limits.min_amount`, `limits.max_amount`                  | The smallest and largest loan.                                                                                                                                                                     |
|                   | `limits.by_band`                                          | Per score band (`low`, `average`, `good`, `excellent`, `unscored`): the most a borrower may **owe you in total**, this loan included. A band left out has no limit.                                |
| **Exposure**      | `exposure.max_active_loans`                               | Loans the borrower may have running with you before this one. `0` means no new loan while one runs.                                                                                                |
|                   | `exposure.max_network_active_loans`                       | Loans the borrower may have running at other Tendar lenders.                                                                                                                                       |
| **Profile**       | `profile.min_age`, `profile.max_age`                      | From the user's `date_of_birth`.                                                                                                                                                                   |
|                   | `profile.min_years_of_employment`                         | From the user's `years_of_employment`.                                                                                                                                                             |
|                   | `profile.excluded_employment`, `profile.refer_employment` | Employment statuses to decline or refer: `contract-worker`, `self-employed`, `employed`, `business-owner`, `student`, `unemployed`.                                                                |
|                   | `profile.excluded_states`, `profile.refer_states`         | States to decline or refer (case and spaces don't matter).                                                                                                                                         |
|                   | `profile.incomplete`                                      | When a rule needs a field the user doesn't have: `approve`, `refer` (default) or `decline`.                                                                                                        |
| **Affordability** | `affordability.max_pd`                                    | Decline above this probability of default (0–1), from the borrower's latest [risk assessment](https://docs.tendar.co/documentation/credit-scoring/risk-assessment.md) of the last 90 days.         |
|                   | `affordability.max_dti`                                   | Decline when what the borrower already repays other lenders, plus this loan's monthly installment, is more than this share of their monthly income (0–1). Needs an assessment of a bank statement. |
|                   | `affordability.missing`                                   | When the affordability rules have no recent assessment to read: `approve`, `refer` (default) or `decline`.                                                                                         |

**What counts as owed** (`limits.by_band`): the amount still to repay on the borrower's disbursed loans with you that aren't fully repaid or written off. With a band limit of ₦100,000 and ₦40,000 still owed, `max_amount` is ₦60,000.

### Check eligibility

***

```
POST /api/v1/credit-score/eligibility-check
```

```json
{
  "user_id": "usr-kqhzwmtrpa",
  "amount": 150000,
  "monthly_installment": 55000
}
```

| Field                 | Required | Description                                                                                                                        |
| --------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| `user_id`             | Yes      | The customer.                                                                                                                      |
| `amount`              | Yes      | The amount they want. More than `0`.                                                                                               |
| `monthly_installment` | No       | The loan's monthly repayment, for `affordability.max_dti`. Without it, only what they already repay is compared with their income. |
| `currency`            | No       | `NGN` (default).                                                                                                                   |

It always returns `200` if the user exists. Read `outcome` and `eligible`. The `message` follows the outcome: `user is eligible for this loan`, `user's loan request needs review` or `user is not eligible for this loan`.

**Response** `200 OK`

```json
{
    "data": {
        "id": "6708b1c2d3e4f5a6b7c8d9e0",
        "user_id": "usr-kqhzwmtrpa",
        "amount": 150000,
        "currency": "NGN",
        "outcome": "decline",
        "eligible": false,
        "reasons": [
            {
                "code": "D10_AMOUNT_ABOVE_BAND_LIMIT",
                "outcome": "decline",
                "detail": "a borrower in band average may owe at most 100000.00; 20000.00 is owed already"
            },
            {
                "code": "D04_SCORE_IN_REFER_RANGE",
                "outcome": "refer",
                "detail": "score 571 is below 580, set for review"
            }
        ],
        "max_amount": 80000,
        "credit_score": "6708a9b8c7d6e5f4a3b2c1d0",
        "score": 571,
        "band": "average",
        "score_reasons": ["T04_CURRENTLY_OVERDUE", "B04_MANY_RECENT_ENQUIRIES"],
        "blacklist": "clear",
        "risk_assessment": "6709b1c2d3e4f5a6b7c8d9e0",
        "pd": 0.0412,
        "grade": "B",
        "monthly_installment": 55000,
        "policy_version": 3,
        "source": "check",
        "created_at": "2026-10-10T12:00:00Z"
    },
    "error": false,
    "message": "user is not eligible for this loan"
}
```

#### The decision

| Field                            | Type           | Description                                                                                                                                          |
| -------------------------------- | -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| `id`                             | string         | The decision's ID (a loan's `eligibility.decision`).                                                                                                 |
| `user_id`, `amount`, `currency`  |                | What was asked.                                                                                                                                      |
| `outcome`                        | string         | `approve`, `refer` or `decline`.                                                                                                                     |
| `eligible`                       | boolean        | `true` unless declined.                                                                                                                              |
| `reasons[]`                      | array          | Every rule that didn't simply approve: `code`, `outcome`, `detail`.                                                                                  |
| `max_amount`                     | number \| null | The most your policy allows the borrower now; `null` when no amount limit applies.                                                                   |
| `credit_score`, `score`, `band`  |                | The [Credit Score](https://docs.tendar.co/documentation/credit-scoring/credit-score.md) calculated for the decision (`score` `null` when unscored).  |
| `score_reasons[]`                | array          | The score's own adverse factors. With `reasons`, this is what to tell a declined borrower.                                                           |
| `blacklist`                      | string         | `blocked`, `flagged` or `clear`.                                                                                                                     |
| `risk_assessment`, `pd`, `grade` |                | The latest [risk assessment](https://docs.tendar.co/documentation/credit-scoring/risk-assessment.md) read; `pd` is `null` when there is none recent. |
| `monthly_installment`            | number \| null | The monthly installment the decision was given.                                                                                                      |
| `policy_version`                 | number         | The policy version applied (`0`: the default).                                                                                                       |
| `source`                         | string         | `check` (you asked) or `loan_create` (a loan request).                                                                                               |

#### Reason codes

| Code                            | Rule                                                                    |
| ------------------------------- | ----------------------------------------------------------------------- |
| `D01_BLACKLISTED`               | The borrower is blocked by the blacklist.                               |
| `D02_BLACKLIST_FLAGGED`         | The borrower is flagged by the blacklist.                               |
| `D03_SCORE_BELOW_MINIMUM`       | Score below `min_score`.                                                |
| `D04_SCORE_IN_REFER_RANGE`      | Score below `refer_below`.                                              |
| `D05_UNSCORED`                  | The borrower can't be scored yet.                                       |
| `D06_OVERDUE_AT_TENDAR_LENDER`  | Overdue past `max_current_dpd`.                                         |
| `D07_BUREAU_ACCOUNT_PAST_DUE`   | A bureau account past `max_bureau_dpd`.                                 |
| `D08_AMOUNT_BELOW_MINIMUM`      | Amount below `min_amount`.                                              |
| `D09_AMOUNT_ABOVE_MAXIMUM`      | Amount above `max_amount`.                                              |
| `D10_AMOUNT_ABOVE_BAND_LIMIT`   | The borrower would owe more than their band allows.                     |
| `D11_TOO_MANY_ACTIVE_LOANS`     | Too many loans running with you.                                        |
| `D12_TOO_MANY_LOANS_ELSEWHERE`  | Too many loans running at other Tendar lenders.                         |
| `D13_AGE_OUTSIDE_RANGE`         | Age outside `min_age`–`max_age`.                                        |
| `D14_PROFILE_INCOMPLETE`        | A rule needs a field the user doesn't have.                             |
| `D15_EMPLOYMENT_EXCLUDED`       | Employment status excluded.                                             |
| `D16_EMPLOYMENT_REVIEW`         | Employment status set for review.                                       |
| `D17_STATE_EXCLUDED`            | State excluded.                                                         |
| `D18_STATE_REVIEW`              | State set for review.                                                   |
| `D19_TOO_FEW_YEARS_EMPLOYED`    | Under `min_years_of_employment`.                                        |
| `D20_NO_RECENT_RISK_ASSESSMENT` | An affordability rule had no recent assessment (or no statement in it). |
| `D21_DEFAULT_RISK_TOO_HIGH`     | Probability of default above `max_pd`.                                  |
| `D22_DEBT_TO_INCOME_TOO_HIGH`   | Repayments would take more than `max_dti` of income.                    |

### Review decisions

***

```
GET /api/v1/decisioning/decisions
GET /api/v1/decisioning/decisions/:id
```

The list is newest first, and can be filtered by `user_id`, `outcome` and `source` (`check` or `loan_create`). For example, `?outcome=refer` lists the loan requests waiting for your review.

### Errors

***

| Status | Message                                                                                                           | Cause                                                                              |
| ------ | ----------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| 400    | `the amount field must be greater than 0`                                                                         | `amount` is missing or `0` or less. `user_id` works the same way.                  |
| 400    | `the score.min_score field must be between 300 and 850`                                                           | Use a score from 300 to 850.                                                       |
| 400    | `the score.refer_below field must not be below score.min_score`                                                   | Set `refer_below` at or above `min_score`.                                         |
| 400    | `the <field> field must be one of approve, refer, decline`                                                        | Use one of the three outcomes.                                                     |
| 400    | `the <field> field must not be negative`                                                                          | Send zero or more.                                                                 |
| 400    | `the affordability.max_pd field must be above 0 and at most 1`                                                    | Send a decimal, such as `0.4` for 40%. The same for `max_dti`.                     |
| 400    | `the limits.by_band keys must be among low, average, good, excellent, unscored`                                   | Use the five band names.                                                           |
| 400    | `employment statuses must be among contract-worker, self-employed, employed, business-owner, student, unemployed` | Use the statuses listed.                                                           |
| 400    | `user is not eligible for this loan`                                                                              | A loan request was declined. See its decision with `?source=loan_create`.          |
| 404    | `user not found` / `decision not found`                                                                           | No user or decision with that ID, or not yours.                                    |
| 409    | `the credit policy changed meanwhile, try again`                                                                  | Another update saved a version at the same time. Get the policy and send it again. |

See [Error](https://docs.tendar.co/documentation/getting-started/error.md) for the error format.

### Next steps

***

* [Credit Score](https://docs.tendar.co/documentation/credit-scoring/credit-score.md) — the score your policy reads.
* [Risk Assessment](https://docs.tendar.co/documentation/credit-scoring/risk-assessment.md) — assess customers so the affordability rules can apply.
* [Loans](https://docs.tendar.co/documentation/disbursement/loans.md) — how the check affects new loans.
