HubtelDevelopers

Get a consumer credit profile

POST
/api/v1/consumer-profile-detail

Returns a detailed credit profile: accounts, balances and payment behaviour. Requires customer 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/consumer-profile-detail" \  -H "Content-Type: application/json" \  -d '{    "ghanaCard": "GHA-000000000-0",    "identifierName": "",    "identifierNationality": "",    "identifierDob": "1999-06-15T00:00:00Z",    "identifierMobileNumber": "",    "currencyOfCredit": "",    "creditAmount": 1,    "purposeOfCheck": "",    "typeOfCreditFacility": "",    "lenderReferenceId": "",    "voterId": "",    "passportNumber": "",    "driverLicenseNumber": "",    "ssnitNumber": "",    "nhisNumber": "",    "tin": ""  }'
{  "message": "Your request for profile detail was successful",  "code": 200,  "data": {    "records": [      {        "demographicData": {          "ghanaCard": "GHA-000000000-0",          "fullName": "John Doe",          "dateOfBirth": "1999-11-17",          "gender": "Male",          "address": "North, Eastern",          "phoneNumbers": [            "233000000000"          ],          "email": "[email protected]"        },        "employmentHistory": [          {            "employmentType": "Self Employed",            "employerName": null,            "employerAddress1": null,            "employerAddress2": null,            "employerAddress3": null,            "employerAddress4": null,            "employerAddressPostalCode": null,            "dateOfEmployment": null,            "occupation": "Senior Software Engineer",            "employeePayrollNumber": null,            "incomeCurrency": "GHS",            "income": "1000",            "workTelephone": null          }        ],        "borrowerAddressHistory": [],        "nationalId": "GHA-0000000000-0",        "tin": [],        "nhis": [],        "ssnit": [          "E242489898902"        ],        "driverLicense": [],        "passport": [],        "voterId": [          "0000000000"        ]      }    ]  },  "subCode": "0",  "errors": null,  "responseCode": null}