# Credit Score

> The subject's Speedmap credit score (300 to 850), its band (POOR, AVERAGE, GOOD, EXCELLENT) and the total of their next repayments across lenders, by BVN. A quick affordability signal without the full report.

The subject's Speedmap credit score by BVN: a three-digit score from 300 to 850 (higher is lower risk), its band (`POOR` 300-499, `AVERAGE` 500-649, `GOOD` 650-749, `EXCELLENT` 750-850) and the total of the subject's next repayments across their lenders. An affordability signal without the full report.

`POST /v1/verify/credit-score`

- **Consent:** Your attestation (`client_attested`) that the subject consented, with a permissible `purpose`.

## Request

**Body parameters**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `bvn` | string | Yes | Format: 11 digits. |
| `purpose` | string | Yes | Permissible purpose under the Credit Reporting Act 2017: credit_application (assessing a new credit application), credit_review (reviewing existing credit), account_monitoring, employment_screening, tenancy_screening, insurance_underwriting, or subject_request (the subject asked for their own report). One of: `credit_application`, `credit_review`, `account_monitoring`, `employment_screening`, `tenancy_screening`, `insurance_underwriting`, `subject_request`. |
| `consent` | object | Yes | Your attestation that you obtained the subject's consent to pull their credit report for this purpose. |
| `consent.obtained` | boolean | Yes | Always `true`. |

- `purpose` and `consent: { "obtained": true }` are required on every request. Under the Credit Reporting Act 2017 a report may only be pulled for a permissible purpose, with the subject's consent; pull it only for the purpose you name.
- A subject with no score on file returns `status: "not_found"`.
- The score is PII-free, so it is in `summary` for every channel; `data` adds the masked BVN and the score range.
- If the report does not complete in time the response is `202` with `status: "pending"`. Credit reports cannot be re-queried, so reading the verification again closes it as failed (not billed): retry the request.

Send an `Idempotency-Key` header so a retried request is never billed twice. See [Idempotency](https://speedmap.io/docs/idempotency).

_cURL_

```bash
curl -X POST https://api.speedmap.io/v1/verify/credit-score \
  -H "Authorization: Bearer sk_test_..." \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "bvn": "22222222221",
  "purpose": "credit_application",
  "consent": {
    "obtained": true
  }
}'
```

_Node.js_

```javascript
const res = await fetch("https://api.speedmap.io/v1/verify/credit-score", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SPEEDMAP_API_KEY}`,
    "Content-Type": "application/json",
    "Idempotency-Key": crypto.randomUUID(),
  },
  body: JSON.stringify({
    "bvn": "22222222221",
    "purpose": "credit_application",
    "consent": {
      "obtained": true
    }
  }),
});

const verification = await res.json();
if (!res.ok) throw new Error(verification.error.message);
console.log(verification.status, verification.match);
```

_Python_

```python
import os, uuid, requests

res = requests.post(
    "https://api.speedmap.io/v1/verify/credit-score",
    headers={
        "Authorization": f"Bearer {os.environ['SPEEDMAP_API_KEY']}",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
        "bvn": "22222222221",
        "purpose": "credit_application",
        "consent": {
            "obtained": True
        }
    },
    timeout=30,
)
res.raise_for_status()
verification = res.json()
print(verification["status"], verification["match"])
```

## Response

A completed check returns `200` with a [verification object](https://speedmap.io/docs/verifications). `status` is `verified` or `not_found`. If the provider has not answered in time you get `202` with `status: "pending"`; [retrieve it later](https://speedmap.io/docs/verifications#pending-verifications) or wait for the `verification.completed` [webhook](https://speedmap.io/docs/webhooks).

**200 OK · assertion**

```json
{
  "reference_id": "spm_8171f3a87cbe221341f7185f",
  "object": "verification",
  "product": "credit_score",
  "method": "credit_score_bvn",
  "status": "verified",
  "match": null,
  "field_matches": null,
  "field_confidence": null,
  "mode": "sandbox",
  "reason": "credit_application",
  "subject": "*******2221",
  "summary": {
    "credit_score": 712,
    "credit_score_band": "GOOD",
    "total_next_repayment": 72300
  },
  "consent": {
    "mechanism": "client_attested",
    "consent_id": null,
    "timestamp": "2026-10-19T09:41:07.512Z"
  },
  "source": "api",
  "error": null,
  "billing": {
    "amount_kobo": 0,
    "currency": "NGN"
  },
  "latency_ms": 980,
  "created_at": "2026-10-19T09:41:07.512Z",
  "updated_at": "2026-10-19T09:41:07.874Z"
}
```

**summary**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `credit_score` | number \| null | No | Credit score, 300 to 850. |
| `credit_score_band` | string \| null | No | `POOR`, `AVERAGE`, `GOOD` or `EXCELLENT`. |
| `total_next_repayment` | number \| null | No | Sum of the subject's next repayments across lenders, naira. |

Full-tier accounts calling the REST API also receive `provider`, `provider_reference` and `data`, the normalized record. MCP, webhooks, lists and bulk results never include it. See [Response shaping](https://speedmap.io/docs/response-shaping).

**Full tier only**

```json
{
  "provider": "sandbox",
  "provider_reference": "SBX6CB753DB2C",
  "data": {
    "bvn": "*******2221",
    "credit_score": 712,
    "credit_score_band": "GOOD",
    "total_next_repayment": 72300,
    "score_range": {
      "min": 300,
      "max": 850
    }
  }
}
```

**data**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `bvn` | string | No | Masked to its last four digits. |
| `credit_score` | number \| null | No | As in `summary`. |
| `credit_score_band` | string \| null | No | As in `summary`. |
| `total_next_repayment` | number \| null | No | As in `summary`. |
| `score_range` | object | No | `{ min: 300, max: 850 }`. |

## Test values

Send these bodies with a sandbox key. More outcome triggers are on the [Sandbox](https://speedmap.io/docs/sandbox) page.

**Score 712 GOOD, next repayment ₦72,300 (Clarke Griffin)**

```json
{
  "bvn": "22222222221",
  "purpose": "credit_application",
  "consent": {
    "obtained": true
  }
}
```

**Score 488 POOR (John Murphy)**

```json
{
  "bvn": "22222222225",
  "purpose": "credit_review",
  "consent": {
    "obtained": true
  }
}
```

**Score 655 GOOD, no next repayment reported (Bellamy Blake)**

```json
{
  "bvn": "22222222222",
  "purpose": "credit_application",
  "consent": {
    "obtained": true
  }
}
```

**No score on file**

```json
{
  "bvn": "22222222220",
  "purpose": "credit_application",
  "consent": {
    "obtained": true
  }
}
```

## Errors

| Status | Code | Meaning |
| --- | --- | --- |
| 400 | `invalid_request` | The body failed validation. `details` lists each field. |
| 401 | `unauthorized` | Missing or invalid API key. |
| 402 | `insufficient_balance` | Live only: wallet balance is below the check price. |
| 403 | `not_entitled` | Your workspace is not enabled for this product or method. |
| 403 | `product_not_enabled` | Live keys: the service isn’t enabled on your account yet. Email support@speedmap.io and we’ll switch it on. |
| 409 | `idempotency_key_reused` | The `Idempotency-Key` was used with a different body. |
| 422 | `provider_rejected_request` | The upstream registry rejected the request. |
| 503 | `verification_unavailable` | Temporary failure. Retry, with the same or a new `Idempotency-Key`. |

All errors share one shape. See [Errors](https://speedmap.io/docs/errors) for the full list.

---

Source: https://speedmap.io/docs/products/credit_score
