Full Response Consumer API Integration guide
This guide outlines the specifications for integrating and utilizing the Consumer API, including authentication steps, token request flow, and data retrieval methods.
Authentication
Prerequisites
In order to obtain an API Token you first need to have client_id and client secret from the previous step.
Token Request Flow
To authenticate and obtain an OAuth token, follow the standard OAuth token request flow.
POST API URL
Grant Type
Use this grant type when the client is a server and does not require user authentication.
Requesting the Access Token
To request the Access Token, submit a POST request to the API URL, including the following body parameters in JSON format:
Handling the Token Response
Upon successful validation, the authorization server will respond with an access token:
Token Lifespan
Access tokens have a limited lifespan of 86400 seconds. Once the token expires, you can obtain a new one.
Request Borrower Data
Introduction
This endpoint facilitates the generation of a borrower's full data available by their phone number.
Note:
To utilize this endpoint, an access token is required. The procedure for obtaining one is detailed in the preceding section.
Borrower Data Request Flow
To obtain a Borrower data, follow the instructions below.
GET API URL
Authorization
Use the generated token as Bearer access token and include it into the request.
Token
eyJ0eXAiOiJKasd10sJhbGciOiJSUzI1NiJ9.eyJhdWQiOiI5YTc4MzVm...
Query Params
requestId
String
Yes
Unique identification code generated by the client
firstName
String
Yes
First Name
lastName
String
Yes
Last Name
dateOfBirth
Date
Yes
Date of Birth - YYYY-MM-DD
cellphoneNumber
String
Yes
Borrower's phone number, the format is 639XXXXXXXXX.
Handling the Response
Upon successful validation, the server will return one of two responses:
1. No match:
2. Match - data for all loans found in partners databases (full response) is returned
Last updated