HubtelDevelopers

Get a compact credit report

POST
/api/v1/credit-profile-summary

Returns a summary of a consumer's credit profile. Requires consent; operated by mycreditscore.com.gh.

Authorization

basicAuth
AuthorizationBasic <token>

Base64 of API ID:API Key from your mycreditscore.com.gh Lenders Portal account (not your Hubtel payment keys).

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/credit-profile-summary" \  -H "Content-Type: application/json" \  -d '{    "ghanaCard": "GHA-000000000-2",    "identifierName": "",    "identifierNationality": "",    "identifierDob": "1997-06-04T00:00:00Z",    "identifierMobileNumber": "",    "currencyOfCredit": "",    "creditAmount": 1,    "purposeOfCheck": "",    "typeOfCreditFacility": "",    "lenderReferenceId": "",    "voterId": "",    "passportNumber": "",    "driverLicenseNumber": "",    "ssnitNumber": "",    "nhisNumber": "",    "tin": ""  }'
{  "message": "Your request for credit profile summary was successful",  "code": 200,  "data": {    "records": [      {        "creditProfileSummary": {          "totalAccounts": {            "OTHERS": 0,            "GHS": 240,            "USD": 0,            "GBP": 0,            "EUR": 0          },          "totalActiveAccounts": {            "OTHERS": 0,            "GHS": 3,            "USD": 0,            "GBP": 0,            "EUR": 0          },          "totalClosedAccounts": {            "OTHERS": 0,            "GHS": 237,            "USD": 0,            "GBP": 0,            "EUR": 0          },          "totalMonthlyInstallment": {            "OTHERS": 0,            "GHS": 740,            "USD": 0,            "GBP": 0,            "EUR": 0          },          "totalOutstandingDebt": {            "OTHERS": 0,            "GHS": 243,            "USD": 0,            "GBP": 0,            "EUR": 0          },          "totalAccountsInArrears": {            "OTHERS": 0,            "GHS": 0,            "USD": 0,            "GBP": 0,            "EUR": 0          },          "totalArrearAmount": {            "OTHERS": 0,            "GHS": 0,            "USD": 0,            "GBP": 0,            "EUR": 0          },          "totalAccountsInGoodStanding": {            "OTHERS": 0,            "GHS": 240,            "USD": 0,            "GBP": 0,            "EUR": 0          },          "totalJudgementDebts": {            "OTHERS": 0,            "GHS": 0,            "USD": 0,            "GBP": 0,            "EUR": 0          },          "totalJudgementAmount": {            "OTHERS": 0,            "GHS": 0,            "USD": 0,            "GBP": 0,            "EUR": 0          },          "lastJudgementDate": {            "OTHERS": null,            "GHS": null,            "USD": null,            "GBP": null,            "EUR": null          },          "totalDishonouredCheques": {            "OTHERS": 0,            "GHS": 0,            "USD": 0,            "GBP": 0,            "EUR": 0          },          "totalDishonouredChequeAmount": {            "OTHERS": 0,            "GHS": 0,            "USD": 0,            "GBP": 0,            "EUR": 0          },          "lastBouncedChequeDate": {            "OTHERS": null,            "GHS": null,            "USD": null,            "GBP": null,            "EUR": null          }        },        "nationalId": "GHA-000000000-2",        "tin": [],        "nhis": [],        "ssnit": [          "E10876767220019"        ],        "driverLicense": [],        "passport": [],        "voterId": [          "880000003358"        ]      }    ]  },  "subCode": "0",  "errors": null,  "responseCode": null}