Insurance GeneratePolicy
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
Definition and request parameters for Insurance GeneratePolicy Method
action
string
( query )
*required "generatePolicy" as a parameter
BookingId
Integer
Unique booking id of successful booking
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": "generatePolicy",
"BookingId": "1853094"
}
Response
The API returns an HTTP response, which generally includes the result of the request invocation
{
"Response": {
"ResponseStatus": 1,
"Error": {
"ErrorCode": 0,
"ErrorMessage": ""
},
"TraceId": "1d91c4e0-f879-4c76-8ad3-f9f3911f4c51",
"Itinerary": {
"BookingId": 1853094,
"InsuranceId": 23247,
"PlanType": 1,
"PlanName": "Axa Spl Smart Domestic Plan",
"PlanDescription": "Axa Spl Smart Domestic Plan",
"PlanCoverage": 4,
"CoverageDetails": null,
"PlanCategory": 1,
"PaxInfo": [
{
"PaxId": 27719,
"PolicyNo": "",
"ClaimCode": null,
"SiebelPolicyNumber": "",
"ReferenceId": "TBO-04112023165731390",
"DocumentURL": null,
"MaxAge": 70.00,
"MinAge": 1.00,
"Title": "Mr",
"FirstName": "Mukesh",
"LastName": "Sharma",
"Gender": "Male",
"DOB": "1985-10-15T00:00:00",
"BeneficiaryName": "Karthik",
"RelationShipToInsured": "Self",
"RelationToBeneficiary": "Brother",
"EmailId": "praveen@thewebconz.com",
"PhoneNumber": "9988776655",
"PassportNo": "KJHHJKHKJH",
"AddressLine1": "Lajpat Nagar",
"AddressLine2": "",
"Country": "India",
"State": "Delhi",
"City": "Delhi",
"PinCode": "110065",
"MajorDestination": "IN",
"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
},
"OldPolicyNumber": "",
"PolicyStatus": 2,
"ErrorMsg": ""
}
],
"PolicyStartDate": "2023-11-30T00:00:00",
"PolicyEndDate": "2023-11-30T23:59:59",
"CreatedOn": "2023-11-04T16:57:31",
"Source": "TrawellTag",
"IsDomestic": true,
"Status": 2,
"GSTIN": null
}
}
}









