Tutorials
FPT.AI Credit Scoring
API Usage Guide
Authentication
The Credit Scoring system has been connected to FPT Gateways, therefore, users need to create an account on Console and then generate an API key in order to send requests to the gateway (by default each new API key can only make 200 requests).
The API key needs to be embedded in the header of all API requests as follows:
api_key: generated_API_key
Scoring user by their phone number
Using Python
import requests
url = 'https://api.fpt.ai/dmp/creditscoring/v1'
headers = {
'api_key': 'xxxxxxxxxxxxxxxxx'
}
params = {
'phone': '0978477728',
'dltype': 1,
'source': 0
}
response = requests.get(url, headers=headers, params=params)
Using Shell
curl --location --request GET \
'https://api.fpt.ai/dmp/creditscoring/v1?phone=0978477728&dltype=2&source=0' \
--header 'api_key: xxxxxxxxxxxxxxxxx'
Using Postman software