Tutorials
FPT.AI - Chấm điểm tín dụng
Hướng dẫn sử dụng API
Xác thực
Hệ thống Credit Scoring được kết nối với FPT Gateways, vì vậy nhà phát triển cần tạo tài khoản tại Console và tạo API key để sử dụng được API này (mặc định API key mới chỉ sử dụng được 200 requests)
API key phải được đặt ở headers của tất cả các request như sau:
api_key: generated_API_key
Đánh giá người dùng qua số điện thoại
Dùng 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)
Dùng Shell
curl --location --request GET \
'https://api.fpt.ai/dmp/creditscoring/v1?phone=0978477728&dltype=2&source=0' \
--header 'api_key: xxxxxxxxxxxxxxxxx'
Dùng phần mềm Postman