> 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/credit-score.md). Agents can also search and read this documentation through its [MCP server](https://docs.tendar.co/~gitbook/mcp).

# Credit Score

Get one score for each customer, from 300 to 850, with the reasons behind it.

Many customers have little or no bureau history, and loans repaid on Tendar never reach the bureau. The Tendar Credit Score combines both: the customer's bureau history, from the [reports you get](https://docs.tendar.co/documentation/credit-scoring/credit-bureau.md), and how they repay loans on Tendar, with you and with other lenders. Each score comes with a band, how much data it stands on, and the factors that moved it, so you can explain every decision.

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

### How it works

***

The score reads three sources:

| Source                          | What it adds                                                                                                         |
| ------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| **Bureau**                      | The bureau's score and the customer's credit accounts, from the latest report you got (up to 6 months old).          |
| **Repayments with you**         | How the customer has repaid the loans you gave them on Tendar.                                                       |
| **Repayments at other lenders** | How the same person, recognised by their verified ID, repays other lenders on Tendar. Other lenders are never named. |

A customer with no bureau report and no repayments on Tendar is **unscored**: `score` is `null` and `band` is `unscored`.

A score is worked out when you ask, and again in the background each time you [get a bureau report or score](https://docs.tendar.co/documentation/credit-scoring/credit-bureau.md) for the customer. Every score is kept, so you can see how it changes.

| `band`      | Score    |
| ----------- | -------- |
| `excellent` | 750–850  |
| `good`      | 650–749  |
| `average`   | 550–649  |
| `low`       | 300–549  |
| `unscored`  | No score |

`confidence` says how much data the score stands on: `high` with both a recent bureau report and enough Tendar repayments, `medium` with one of them, and `low` otherwise. Give a low-confidence score less weight.

### Calculate a score

***

```
POST /api/v1/credit-score/calculate
```

```json
{
  "user_id": "usr-kqhzwmtrpa"
}
```

**Response** `200 OK`

```json
{
  "data": {
    "id": "6706c1a2b3c4d5e6f7a8b9c0",
    "user_id": "usr-kqhzwmtrpa",
    "score": 671,
    "band": "good",
    "confidence": "high",
    "anchor": "bureau_score",
    "anchor_score": 712,
    "factors": [
      { "code": "T01_ON_TIME_REPAYMENTS", "points": 44, "detail": "11 installments repaid on time at Tendar lenders" },
      { "code": "T04_CURRENTLY_OVERDUE", "points": -45, "detail": "1 installment overdue now, the oldest 12 days past due" },
      { "code": "B04_MANY_RECENT_ENQUIRIES", "points": -15, "detail": "5 credit enquiries in the last 90 days" }
    ],
    "reasons": ["T04_CURRENTLY_OVERDUE", "B04_MANY_RECENT_ENQUIRIES"],
    "inputs": {
      "own": { "loans": 2, "installments_due": 9, "on_time": 8, "overdue": 0, "outstanding": 0 },
      "network": { "lenders": 1, "loans": 2, "installments_due": 4, "on_time": 3, "overdue": 1, "outstanding": 45000 },
      "network_off": false,
      "bureau": { "score": 712, "score_date": "2026-10-02T09:14:00Z", "report_date": "2026-10-02T09:12:00Z" }
    },
    "model": "tendar-score-1",
    "trigger": "request",
    "created_at": "2026-10-10T12:00:00Z"
  },
  "error": false,
  "message": "credit score calculated successfully"
}
```

| Field                         | Description                                                                                                        |
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| `score`, `band`, `confidence` | The score, its band, and how much data it stands on.                                                               |
| `anchor`, `anchor_score`      | What the score started from: `bureau_score`, `bureau_report`, `tendar` (repayments only) or `none`, and its value. |
| `factors`                     | Every reason the score moved: a stable `code`, the `points` added or taken off, and a `detail` in plain words.     |
| `reasons`                     | Up to four factor codes that lowered the score most, largest first. Use them to explain a decline.                 |
| `inputs.own`                  | The customer's repayment record with you.                                                                          |
| `inputs.network`              | The same person's record at other Tendar lenders: counts and amounts only.                                         |
| `inputs.network_off`          | `true` when you've turned off [repayment sharing](#repayment-sharing), so other lenders weren't read.              |
| `inputs.bureau`               | The bureau score and report used, or `null`.                                                                       |
| `trigger`                     | Why it was worked out: `request`, `bureau_pull`, `decision` (an eligibility check) or `risk` (a risk assessment).  |

**Repayment record fields** (`inputs.own`, `inputs.network`)

| Field                                                  | Description                                                   |
| ------------------------------------------------------ | ------------------------------------------------------------- |
| `lenders`, `loans`                                     | Lenders and disbursed loans counted.                          |
| `active_loans`, `completed_loans`, `written_off_loans` | Loans running now, repaid in full, and written off.           |
| `installments_due`, `on_time`                          | Installments due so far, and those repaid on time.            |
| `late_1_7`, `late_8_30`, `late_31_90`, `late_90_plus`  | Installments repaid late, by how many days late.              |
| `overdue`, `current_dpd`                               | Installments overdue now, and the oldest one's days past due. |
| `worst_dpd_12m`                                        | The worst lateness in the last 12 months.                     |
| `outstanding`                                          | What the running loans still owe.                             |
| `new_loans_30d`, `new_loans_90d`                       | Loans taken in the last 30 and 90 days.                       |

#### Factor codes

Codes starting with `T` come from repayments on Tendar; codes starting with `B` from the bureau.

| Code                              | Meaning                                                                          |
| --------------------------------- | -------------------------------------------------------------------------------- |
| `T01_ON_TIME_REPAYMENTS`          | Installments repaid on time.                                                     |
| `T02_COMPLETED_LOANS`             | Loans repaid in full.                                                            |
| `T03_LATE_REPAYMENTS`             | Installments repaid late in the last 2 years.                                    |
| `T04_CURRENTLY_OVERDUE`           | Installments overdue now.                                                        |
| `T05_WRITTEN_OFF_LOANS`           | Loans written off in the last 5 years.                                           |
| `T06_CONCURRENT_LOANS`            | Several loans running at once.                                                   |
| `B01_BUREAU_ACCOUNTS_PAST_DUE`    | An open account past due at the bureau.                                          |
| `B02_NON_PERFORMING_ACCOUNTS`     | Accounts classified non-performing at the bureau.                                |
| `B03_RECENT_SERIOUS_DELINQUENCY`  | A serious delinquency in the last 12 months.                                     |
| `B04_MANY_RECENT_ENQUIRIES`       | Many credit enquiries recently.                                                  |
| `B05_MANY_NEW_ACCOUNTS`           | Many accounts opened recently.                                                   |
| `B06_CLEAN_BUREAU_HISTORY`        | A long bureau history, never past due.                                           |
| `B07_BUREAU_SUMMARY_CONTRADICTED` | The bureau's summary disagrees with its own accounts (information only).         |
| `B08_BUREAU_DATA_STALE`           | The latest bureau data is over 6 months old and was not used (information only). |

New codes may be added; treat an unknown code as information and show its `detail`.

#### Several customers at once

Calculate up to 20 scores in one call with `POST /api/v1/credit-score` and `{ "user_ids": ["usr-kqhzwmtrpa", "usr-new01"] }`. Users your company doesn't have are left out of the answer.

### Read scores

***

| Action                    | Endpoint                                    |
| ------------------------- | ------------------------------------------- |
| The latest score          | `GET /api/v1/credit-score/:user_id`         |
| Every score, newest first | `GET /api/v1/credit-score/history/:user_id` |

Reading doesn't recalculate. Because the score updates each time you get a bureau report, the latest one stays current. The history is paged; see [Query Params](https://docs.tendar.co/documentation/getting-started/query-params.md).

### Repayment sharing

***

By default, your customers' repayments count in their scores at other Tendar lenders, and other lenders' repayments count in yours. Other lenders never see your name, only counts and amounts.

You can turn sharing off. It works **both ways**: your repayments stop counting elsewhere, and other lenders' stop counting in your scores.

```
GET /api/v1/credit-score/setting
PUT /api/v1/credit-score/setting
```

```json
{
  "share_repayments": false
}
```

### Errors

***

| Status | Message                                         | Cause                               |
| ------ | ----------------------------------------------- | ----------------------------------- |
| 400    | `the user_id field is required`                 | No `user_id`.                       |
| 400    | `the user_ids field must list 1 to 20 user ids` | Send between 1 and 20 IDs.          |
| 400    | `the share_repayments field is required`        | Send `true` or `false`.             |
| 404    | `user not found`                                | No user with that `user_id`.        |
| 404    | `credit score not found, calculate one first`   | The customer has never been scored. |

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

### Next steps

***

* [Eligibility](https://docs.tendar.co/documentation/credit-scoring/eligibility.md) — use the score in your credit policy.
* [Risk Assessment](https://docs.tendar.co/documentation/credit-scoring/risk-assessment.md) — add the customer's bank statement.
* [Blacklist](https://docs.tendar.co/documentation/credit-scoring/blacklist.md) — stop people who shouldn't get credit from borrowing.
