Get credit scorecard
Credit Scoring
Get credit scorecard
Fetch the current credit profile for a customer by mobile number.
GET
Get credit scorecard
Returns the customer’s current credit grade, score, and pre-approved loan limit as held by the HaloPesa credit scoring engine. This endpoint is read-only — it has no side effects (no SMS, no database write).Documentation Index
Fetch the complete documentation index at: https://docs.api.bsa.ai/llms.txt
Use this file to discover all available pages before exploring further.
Path parameters
Customer’s mobile number in international format — exactly 12
digits starting with
255 (Tanzania country code). Example:
255762260621.Example
Response
200 OK
Fields
Echoes the queried mobile number.
Credit grade band. Common values:
A, B, C. Unscored customers
receive XX (see below).Numeric credit score on the HaloPesa scale.
Pre-approved loan limit in TZS.
0 for unscored customers.Upstream processing time. Diagnostic only — partners typically ignore it.
Unscored customers
A customer with no record yet is not an error. The upstream returns200 OK with:
halopesaGrade == "XX" (or finalCreditLimit == 0) to detect
this case.
Errors
| Code | When |
|---|---|
invalid_argument | mobile_number is not 12 digits starting with 255 |
unauthenticated | Token missing/invalid |
internal | Upstream credit service unavailable or returned an unhandled error |

