📊 Business Eligibility Check
Endpoint:
GET https://api.vlenseg.com/api/BusinessRequest/CheckEligibility
Overview:
This API checks if a user is eligible to create a new business request. It verifies digital identity, checks for pending requests, and ensures all criteria are met before allowing the user to proceed.
Workflow:
Send a GET request with the necessary headers.
Receive a response indicating eligibility status and any potential issues.
Handle response based on the eligibility data provided.
get
Responses
200
Success
get
/api/BusinessRequest/CheckEligibilityGET /api/BusinessRequest/CheckEligibility HTTP/1.1
Host:
Accept: */*
200
Success
{
"data": {
"isEligible": true,
"isDigitalIdentityVerified": true,
"hasPendingRequest": true,
"isEmailConfirmed": true
},
"error_code": 1,
"error_message": "text",
"error_descriptions": null
}async function checkEligibility() {
const url = "https://api.vlenseg.com/api/BusinessRequest/CheckEligibility";
const headers = {
"Content-Type": "application/json",
"ApiKey": "<your-api-key>",
"Authorization": "Bearer <accessToken>"
};
try {
const response = await fetch(url, { method: 'GET', headers });
if (response.ok) {
const data = await response.json();
console.log(data);
} else {
console.error(`Error: ${response.status} - ${response.statusText}`);
}
} catch (error) {
console.error('Fetch error:', error);
}
}
checkEligibility();
import requests
url = "https://api.vlenseg.com/api/BusinessRequest/CheckEligibility"
headers = {
"Content-Type": "application/json",
"ApiKey": "<your-api-key>",
"Authorization": "Bearer <accessToken>"
}
response = requests.get(url, headers=headers)
print(response.json())
curl -X GET "https://api.vlenseg.com/api/BusinessRequest/CheckEligibility" \
-H "Content-Type: application/json" \
-H "ApiKey: <your-api-key>" \
-H "Authorization: Bearer <accessToken>"Last updated