Book Insurance


This method is used to book an insurance.

If you are using this endpoint within a loop we highly recommend adding a gap/delay between each iteration.

Endpoint

Method URI Headers
POST insurances/{insurance_id}/book default

Response

Field Type Description
success Boolean true or false
message String Message that gives information about the response

Response Examples

Successful

{
    "success": true,
    "data": {
        "id": 1234567891
    },
    "message": "Insurance has been booked"
}

Failed

{
    "success": false,
    "message": "This insurance already booked"
}
{
    "success": false,
    "message": "This insurance is already in progress"
}
{
    "success": false,
    "message": "There was an error in proceeding with this insurance"
}
{
    "success": false,
    "message": "Something went wrong. Please contact our support"
}