Aiico
Connect any or all of the following endpoints to buy and manage products from AIICO.
Certain properties obtain their values from supplementary endpoints. Refer to the Auxiliary page for a list of these additional endpoints.
Buy Third-Party Auto
Use this end-point to buy third party auto insurance from AIICO.
POST
https://api.mycover.ai/v1/products/aiico/buy-third-party-auto
Request Body
{
"responseCode": 0,
"responseText": "Unauthorized",
"errorData": null,
"data": {}
}
{
"responseCode":1,
"responseText":"policy purchase successful",
"data":{
"id":"65b09302-26de-42b4-80d9-8b137130d3dd",
"first_name":"Flynn",
"last_name":"Knowles",
"email":"zagyfiwi@mailinator.com",
"phone":"+1 (637) 901-9226",
"dob":"2004-03-18",
"customer_id":"5789b330-2077-496b-bcf9-e75152f2b925",
"buyer_id":"5789b330-2077-496b-bcf9-e75152f2b925",
"product_id":"a72c4e3c-e868-4782-bb35-df6e3344ae6c",
"product_category_id":"978ced0d-0e05-4de6-b43a-b408c0e8b95e",
"purchase_id":"a9e83085-bc1d-44a7-b974-f68066e72a8e",
"distributor_id":"76d5970a-d46b-43df-beb3-8f3117b7a60f",
"provider_id":"63dbfce7-a743-47bd-bc49-b95703054aa1",
"activation_date":"01-Jan-0001",
"start_date":"01-Jan-0001",
"expiration_date":"01-Jan-0001",
"market_price":5000,
"genius_price":5000,
"profit":1000,
"meta":{
"vehicle_registration_number":"akd223gf",
"policy_number":"110502532201",
"certificate_url":null,
"provider_policy_id":0
},
"active":false,
"submitted_to_provider":false,
"created_at":"2022-03-08T15:34:58.682Z",
"updated_at":"2022-03-08T15:34:58.682Z"
}
}
Sample Request Payload
{
"vehicle_make": "Toyota",
"vehicle_model": "Prado",
"address": "close 4 festac town lagos",
"state": "Lagos",
"identification_name": "NIN",
"identification_url": "https://via.placeholder.com/300/09f/fff.png",
"registration_number": "akd223gf",
"engine_number": "52WVC10338",
"chassis_number": "5YJSA1DG9DFP14705",
"vehicle_color": "black",
"year_of_manufacture": "2018",
"title": "Mr",
"first_name": "john",
"last_name": "doe",
"email": "johndoe@gmail.com",
"phone_number": "07064378577",
"date_of_birth": "1986-12-31",
"product_id": "a72c4e3c-e868-4782-bb35-df6e3344ae6c",
"vehicle_category": "Car"
}
Buy Comprehensive Auto
Use this end-point to buy comprehensive auto insurance from AIICO.
POST
https://api.mycover.ai/v1/products/aiico/buy-comprehensive-auto
Request Body
{
"responseCode":1,
"responseText":"comprehensive policy purchase successful",
"data":{
"id":"d7fbc352-dad1-4a54-bf18-0a1734fe3d35",
"first_name":"Susan",
"last_name":"Blanchard",
"email":"noqar@mailinator.com",
"phone":"+1 (608) 506-9593",
"dob":"2004-03-11",
"customer_id":"a0b8eaf4-0437-4525-bc3f-01dc56cf3627",
"buyer_id":"a0b8eaf4-0437-4525-bc3f-01dc56cf3627",
"product_id":"24140c74-fc6f-42f5-a0d2-24800b22d80a",
"product_category_id":"978ced0d-0e05-4de6-b43a-b408c0e8b95e",
"purchase_id":"984f5d6a-ea82-4fea-b98f-bfad5bece767",
"distributor_id":"76d5970a-d46b-43df-beb3-8f3117b7a60f",
"provider_id":"63dbfce7-a743-47bd-bc49-b95703054aa1",
"activation_date":null,
"start_date":null,
"expiration_date":null,
"market_price":75000,
"genius_price":75000,
"profit":15000,
"meta":{
"vehicle_registration_number":"akd332hg",
"payload":{
"identificationName":"NIMC Card",
"identificationUrl":"https://s3.eu-west-2.amazonaws.com/staging.mycover.ai/5ed0f66d-3f29-483c-b5ac-f207eb1fecaf-susan_blanchard_1646758276792_screenshot-2021-08-16-at-3.58.28-pm.png",
"titleId":"0a439e44-98cf-e711-83b7-44850015c0e7",
"subclassSectCovtypeId":"06ee8b29-47e7-e711-a2be-005056a02281",
"productId":"f1326cce-47e7-e711-a2be-005056a02281",
"smsTel":"+1 (608) 506-9593",
"physicalAddrs":"Placeat in et dolor",
"pryEmail":"noqar@mailinator.com",
"dateOfBirth":"2004-03-11",
"lastName":"Blanchard",
"firstName":"Susan",
"premiumAmount":75000,
"vehicleAmount":2500000,
"color":"Red",
"chasisNo":"1NXBR32E97Z919065",
"engineNo":"1ZZ6686285",
"bodyType":"Car",
"yrManft":"2013",
"model":"Corolla",
"regNo":"akd332hg",
"make":"Toyota"
}
},
"active":false,
"submitted_to_provider":false,
"created_at":"2022-03-08T15:51:18.654Z",
"updated_at":"2022-03-08T15:51:18.654Z"
}
}
{
"responseCode": 0,
"responseText": "Unauthorized",
"errorData": null,
"data": {}
}
Sample Request Payload
{
"vehicle_make": "Toyota",
"vehicle_model": "Corolla",
"address": "close 4 festac town lagos",
"state": "Lagos",
"identification_name": "NIN",
"identification_url": "https://via.placeholder.com/300/09f/fff.png",
"engine_number": "52WVC10338",
"chassis_number": "1HGBH41JXMN109186",
"vehicle_color": "Black",
"year_of_manufacture": "2018",
"title": "Mr",
"vehicle_cost": 2500000,
"first_name": "Mary",
"last_name": "Olaleye",
"email": "0laleye.mary@gmail.com",
"phone_number": "07064378577",
"date_of_birth": "1985-03-23",
"product_id": "24140c74-fc6f-42f5-a0d2-24800b22d80a",
"vehicle_category": "Car"
}
Certain properties obtain their values from supplementary endpoints. Refer to the Auxiliary page for a list of these additional endpoints.
Last updated