The Unofficial Credit Info Tanzania API wrapper for Nodejs.
- CreditInfo Tanzania website
- WSDL (requires Basic Auth authentication)
Install via npm (soon enough)
npm i @debugger_supreme/credintinfo
or install a particular beta version
npm install --save @debugger_supreme/creditinfo@0.0.1-beta.0
Configure your api username and password in .env
file as follows
CREDIT_INFO_USERNAME=your_api_username
CREDIT_INFO_PASSWORD=your_api_password
The package config file comes with default API url pointing to production
.
CREDIT_INFO_WSDL=https://ws.creditinfo.co.tz/WsReport/v5.39/service.svc?wsdl
To point to test
environment set the CREDIT_INFO_WSDL key in your .env
file to point to test url given. (See below)
CREDIT_INFO_WSDL=https://wstest.creditinfo.co.tz/WsReport/v5.39/service.svc?wsdl
Remember
- The WSDL url should end with a
?wsdl
suffix, don't forget to add this if you haven't already. - You need to first configure correct Authentication details above for your respective environment, as the WSDL url is secured with Basic Auth.
- SearchIndividual Report done
- Driving License Report coming soon
- Vehicle Report coming soon
- Exception Handling coming soon
Method SearchIndividualAsync(params)
queries client information by FullName | PhoneNumber | IdNumber | IdNumberType
import CreditInfo from "@debugger_supreme/creditinfo";
const client = new CreditInfo({
username: proces.env.CREDIT_INFO_USERNAME,
password: process.env.CREDIT_INFO_PASSWORD,
endpoint:
"https://wstest.creditinfo.co.tz/WsReport/v5.39/service.svc?singleWSDL",
});
client
.SearchIndividualAsync({
query: {
Parameters: {
FullName: "Alli Hassan Mwinyi",
},
},
})
.then(function (results) {
console.log({ results: results[0] });
});
- SearchIndividual Report
- Driving License Report
- Vehicle Report
- [ ]Exception Handling
This package is bootstrapped with the help of express-api-starter.