Search Available Insurance Options with Coverage Details

This method provides availability of Insurance option with the insurance cover details on the behalf of PlanType, PlanCoverage and dates selected. Client need to pass the PlanType, PlanCoverage, TravelStartDate and passenger details in request in response will get the available Insurance option with the insurance cover details.

Parameters

Name

Description

Accept

string

( header )

*required application/json

Accept - Encoding

string

( header )

*required gzip

Authorization

string

( header )

Must be Your PID

Must be Your API Key

Customer-Ip

string

( header )

*required IP address of the customer, as captured by your integration. Send IPV4 addresses only.

Ensure your integration passes the customer’s IP, not your own. This value helps determine their location and other settings.

Also used for fraud recovery and other important analytics.

Definition and request parameters for Insurance Search Method

action

string

( query )

*required "search" as a parameter

PlanCategory

Enumeration

Define insurance PlanType is single trip or AnnualMultiTrip (Ex: SingleTrip = 1, AMT = 2)

PlanCoverage

Enumeration

Define the category of plan whether its Domestic, Overseas and studentoversea plan.

Possible values can be
DomesticTravelPolicy = 1, OverseasTravelInsurance = 2, StudentOverseasInsurance = 3, SchengenOverseasInsurance = 4, InboundTravelPolicy = 5, CancellationInsurance = 6

PlanType

Enumeration

Define whether plan coverage area is US, NON us and India

(Ex: US = 1 Non_US = 2, WorldWide = 3 India = 4 Asia = 5 Canada = 6 Australia = 7 SchenegenCountries = 8)

TravelStartDate

Date Time

Start Date of the requested Format: (yyyy/mm/dd)

NoOfPax

Integer

Number of passenger for which insurance requested

PaxAge[]

Array

Passenger Age

REQUEST

API Endpoint: https://www.abengines.com/api/v1/travel-api/insurance/

header: array(
'Content-Type:application/json',
'Accept-encoding: gzip',
'PID:'ADD-PID-KEY',
'x-api-key:'ADD-API-YOUR-KEY'
);

POST: 
{
    "action": "search",
    "PlanCategory": "1",
    "PlanCoverage": "4",
    "PlanType": "1",
    "TravelStartDate": "2023-11-30",
    "NoOfPax": "1",
    "PaxAge": [
        "25"
    ]
}
					 

Response

The API returns an HTTP response, which generally includes the result of the request invocation

{
    "Response": {
        "ResponseStatus": 1,
        "Error": {
            "ErrorCode": 0,
            "ErrorMessage": ""
        },
        "TraceId": "26006c8e-0e10-4984-a0c3-19007253ae61",
        "Results": [
            {
                "PlanCode": "820ed27f-49df-4c00-9464-ed9664ef3c9d",
                "ResultIndex": 1,
                "PlanType": 1,
                "PlanName": "Axa Spl Smart Domestic Plan",
                "PlanDescription": "Axa Spl Smart Domestic Plan",
                "PlanCoverage": 4,
                "CoverageDetails": [
                    {
                        "Coverage": "a) Medical expenses",
                        "SumInsured": "10000",
                        "Excess": "100"
                    }
                ],
                "PlanCategory": 1,
                "PremiumList": [
                    {
                        "PassengerCount": 1,
                        "MinAge": 1,
                        "MaxAge": 70,
                        "Price": {
                            "Currency": "INR",
                            "GrossFare": 161,
                            "PublishedPrice": 161,
                            "PublishedPriceRoundedOff": 161,
                            "OfferedPrice": 112.7,
                            "OfferedPriceRoundedOff": 112.7,
                            "CommissionEarned": 48.3,
                            "TdsOnCommission": 19.32,
                            "ServiceTax": 0,
                            "SwachhBharatTax": 0,
                            "KrishiKalyanTax": 0
                        },
                        "CancellationCharge": 40
                    }
                ],
                "Price": {
                    "Currency": "INR",
                    "GrossFare": 161,
                    "PublishedPrice": 161,
                    "PublishedPriceRoundedOff": 161,
                    "OfferedPrice": 112.7,
                    "OfferedPriceRoundedOff": 112.7,
                    "CommissionEarned": 48.3,
                    "TdsOnCommission": 19.32,
                    "ServiceTax": 0,
                    "SwachhBharatTax": 0,
                    "KrishiKalyanTax": 0
                },
                "PolicyStartDate": "2023-11-30T00:00:00",
                "PolicyEndDate": "2023-11-30T23:59:59"
            }
        ]
    }
}