Integration Guide
Eligibility API Integration Examples
Example 1 :- Real Implementation from Reference Beneficiary Toaster Backend (Check eligibility for a given user from the list of benefits)
Overview
Service Implementation
ContentService Integration
async checkBenefitsEligibility(userInfo: object, eligibilityData: Array<any>, strictCheck: boolean) {
const url = `${this.eligibility_base_uri}/check-eligibility?strictChecking=${strictCheck}`;
const response = await this.httpService.axiosRef.post(url, {
userProfile: userInfo,
benefitsList: eligibilityData,
}, {
headers: { 'Content-Type': 'application/json' }
});
return response.data;
}Input - 1. User Profile Data Structure
Input - 2. Benefit Schema Data Structure
Output - Response Structure
Example 2: Real Implementation from Reference Provider Backend (Check eligible users for a given application)
Overview
Service Implementation
Input - 1. User Profile Data Structure
Input - 2. Benefit Schema Data Structure
Output - Response Structure
Last updated
