Table of Contents
Imagine you’re an e-commerce site owner, and you just received an order from John Doe. But wait, is John Doe a real person, or is it just another fraudster trying to game your system? With ESPY’s new feature, you can now automatically validate if a phone number belongs to a real person or not. This revolutionary service is available on the ESPY API Service Platform and can be seamlessly integrated into e-commerce websites, online shops, online gaming web portals, and more.
The Magic Behind the Curtain: How It Works
At the heart of this feature lies the ESPY API, a powerful set of variable endpoints designed for data enrichment. By registering at IRBIS, developers can access a plethora of endpoints through the Developer page, validating most available endpoints and accessing the comprehensive API reference documentation.
Let’s break down the process of how you can build an automation system to validate phone numbers and determine if they belong to real people.
Step 1: Integrate with the Phone Lookup Endpoint
The first step is to integrate your system with the Phone Lookup
endpoint. This endpoint performs a lookup request and returns results from 10 different mobile apps where the phone number may have been registered. These apps provide valuable information, primarily the names associated with the phone number.
Tech Tip: Here’s a simple example of how to call the Phone Lookup endpoint:
javascript
const axios = require('axios');
const phoneLookup = async (phoneNumber) => {
try {
const response = await axios.get(`https://irbis.espysys.com/api/phone-lookup`, {
params: { key: ‘YOUR_API_KEY’, phone: phoneNumber }
});
console.log(response.data);
return response.data;
} catch (error) {
console.error(error);
}
};
phoneLookup('1234567890');
Example of Responce Body:
{
"requestId": "d116e5d5-4f5f-4d41-abfc-0ef54abdbc16",
"id": 197085,
"status": "progress",
"message": "Results will be available soon, Use API to retrieve Data"
}
Step 2: Integrate the Phone Validation Request Endpoint
The second step is to integrate the Phone Validation Request
endpoint. This endpoint triggers an AI microservice that compares the list of names received from the previous lookup and generates a decision message: “real person” or “fake.” It also provides a score from 0-10 indicating the likelihood of the phone number belonging to a real person.
Tech Tip: Here’s how to call the Phone Validation Request endpoint:
javascript
const axios = require('axios');
const phoneValidationRequest = async (lookupResult) => {
try {
const response = await axios.post(`https://irbis.espysys.com/api/phone-validation`, {
lookupId: lookupResult.id,
key: ‘YOUR_API_KEY’
});
console.log(response.data);
return response.data;
} catch (error) {
console.error(error);
}
};
phoneLookup('1234567890')
.then(lookupResult => phoneValidationRequest(lookupResult));
Example, of Result:
{
"verifier": {
"finalClassification": "Real Person",
"score": 1
}
Real-World Example: Meet the Fraud-Busting Superhero
Let’s say you own an online shop selling rare comic books. You receive an order from someone named “Bruce Wayne” (no, not the Batman). Before you ship out that rare first edition, you use the ESPY API to validate the phone number provided.
- Phone Lookup: The phone number is cross-referenced across multiple apps, and you get a list of names. You see “Bruce Wayne” appears on a couple of them
- Phone Validation Request: The AI microservice processes the names and returns a score of 9 with a message “real person.”
With a high confidence score, you can feel assured that Bruce Wayne is indeed a real person (or maybe Batman is really ordering comic books from your shop!).
To wrap up
Integrating ESPY’s new phone number validation feature into your e-commerce platform is a game-changer. Not only does it streamline the customer verification process, but it also significantly enhances your ability to combat fraud. With easy integration and powerful AI-driven insights, you can focus on growing your business while ESPY takes care of the due diligence.
Register now at IRBIS, explore the Developer page, and start leveraging this cutting-edge technology to secure your online transactions.
Stay safe, and happy selling!