Insurance API

Insurance Authorization API

Endpoint: https://ourdapiomain/api/insurance_authorization

Request

		
{
    "token": "9d437c-9cd04a-6ee5cc-12345a-a31977",
    "agent_id": "Agent ID",
}
        

Response

		
{
    "status": "Success",
    "message": "Authorization Successfully",
    "results": {
        "login_url": "https://pos.insurancedekho.com/ott-pos/login?one-time-token=d9d1304577abcae52f515e6454c1243b"
    }
}
     

Insurance Fetch Balance Webhook API

Endpoint: https://your-domain/insurance_fetch_balance

Request

		
{
    "token": "ada033-0fc6bb-9df216-a6379f-1c7767",
    "secret": "gfSegfG7nMs0iSES",
    "ip_address": "145.16.135.140",
    "agent_id": "AXXXXP424658"
}
        

Response

		
{
    "status": "Success",
    "response_code": 1,
    "message": "Balance Fetch Successful",
    "results": {
        "balance": 232
    }
}

{
    "status": "Failed",
    "response_code": 0,
    "message": "Insufficient Wallet Balance",
    "results": {
        "balance": 0
    }
}
    

Insurance Wallet Debit Webhook API

Endpoint: https://your-domain/insurance_wallet_debit

Request

		
{
    "token": "25f706-c2vfd-2c17d2-0e108e-711ac2",
    "secret": "GgSe9G7ddMs0iSES",
    "ip_address": "145.16.135.140",
    "agent_id": "AXXXXP424658",
    "order_id": "24042700024900741575",
    "ref_id": "41h72c43cf",
    "amount": 845.00,
    "results": {
        "name": "MAHABUL ALAM",
        "email": "[email protected]",
        "mobile": "7585811607"
    }
}
   

Response

		
{
    "status": "Success",
    "response_code": 1,
    "message": "Transaction Successful"
}

{
    "status": "Failed",
    "response_code": 0,
    "message": "Transaction Unsuccessful"
}
      

Insurance Payout Webhook API

Endpoint: https://your-domain/insurance_payout

Request

		
{
    "token": "25f706-c29SSS7-2c17d2-0e108e-711ac2",
    "secret": "GgSSSSPnMs0iSES",
    "ip_address": "178.16.135.140",
    "agent_id": "AXXXXP424658",
    "order_id": "24042701272080008624",
    "ref_id": "331SSSc43cf",
    "txn_amount": 845.00,
    "payout_amount": 235,
    "results": {
        "policyBookingDate": "2024-04-24",
        "caseType": "Renewal Breakin",
        "customerName": "MAHABUL ALAM",
        "dealershipType": "Partner",
        "tpPremium": 714,
        "fuelType": "Petrol",
        "insurer": "Digit Insurance Company Limited",
        "isNcb": "No",
        "zeroOrNoDept": "No",
        "make": "Hero",
        "manufacturingDate": "2015-06-01",
        "model": "Hero Glamour",
        "modeOfPayment": "online",
        "policyEndDate": "2025-04-25",
        "bookingMode": "Online",
        "policyNumber": "D14F6917",
        "source": "PARTNER",
        "policyStartDate": "2024-04-25",
        "policyStatus": "Booked",
        "subSourceHierarchy": "PARTNER->EKENDRA",
        "tenure": 1,
        "policyType": "Third_Party",
        "registrationDate": "2015-07-03",
        "regNo": "WBFFFJ6584",
        "requestId": "14F548",
        "requestTime": "2024-04-24",
        "tax": 129,
        "variant": "1F58",
        "vehicleType": "Bike",
        "vehicleName": "Hero Hero Glamour Drum BS4",
        "vehicleSubType": "Bike",
        "vehicleUsageType": "Counter Signed",
        "seatingCapacity": 2,
        "registeredState": "West Bengal",
        "vehicleCC": 125,
        "tpTenure": 1,
        "policyIssueDate": "2024-04-24",
        "paymentDate": "2024-04-23",
        "netPremium": 714,
        "totalPrem": 843,
        "fourthYearRenewal": "Yes",
        "years": 8.82,
        "rtoCode": "WB12",
        "firstYearTpPremium": 714,
        "multiYearPolicy": "No",
        "rtoRegion": "WB",
        "channelName": "EKENDRA PAN SERVICES",
        "channelType": "Partner",
        "channelCity": "North 24 Parganas",
        "gcdCode": "GPFFDF0001",
        "ownerType": "Organisation",
        "isRenewal": "No",
        "makeHierarchy": "1->10->12",
        "modelHierarchy": "1->10->12->790",
        "rtoHierarchy": "1->12->WB12",
        "proposalId": "V29FCB05736E111dsdsdsdsd0DC9727B46C2BA163AC20FA2A6935A6832A93D2ECAF7348BB00FCF3FAB6E39D150CDF6",
        "commissionPoints": "215",
        "tenantId": "37",
        "leadId": "6627dsdsdsd399e6e521c1"
    }
}
      

Response

		
{
    "status": "Success",
    "response_code": 1,
    "message": "Transaction Successful"
}

{
    "status": "Failed",
    "response_code": 0,
    "message": "Transaction Unsuccessful"
}
     

Balance API

Endpoint: https://ourdapiomain.in/api/balance

Request

		
{
    "token": "333108-d1c474-ffa963-1bbaee-8e367c"
}
       

Response

{
    "status": true,
    "message": "Balance Fetched Successfully",
    "results": {
        "balance": 318.04
    }
}