API Information
Name: Revise Car Quote Plans
Description: It will update the quote.
Basic Info
Basic
Method: POST
Endpoint: <API_BASE_URL>/capi/api/v1-get-revise-car-quote-plan
---
REQUEST HEADERS:
x-api-token: <REQUIRED>
Content-Type: application/json
Request Body
JSON
{
"quoteUID": "ABCD1234", // required
"cylinder": 5, // no. of cylinders
"seatCapacity": 5, // seating capacity
"vehicleTypeId": 1, // check get-lookups api
"carMakeId": 128, // check get-lookups api
"carModelId": 1090, // check car-model-lookups api
"yearOfManufacture": "2014",
"carValue": 45, // sent in get-all-car-quote-plans api
"firstName": "John",
"lastName": "Doe",
"currentInsuranceProvider": "Other",
"typeOfInsuranceId": 1, // sent in get-all-car-quote-plans api as carTypeInsuranceId
"claimHistoryId": 4,
"emirateOfRegistrationId": 4,
"nationalityId": 82,
"uaeLicenseHeldForId": 3,
"dob": "1990-06-06",
"isBankFinanced": false,
"isModified": false,
"isGccStandard": true,
"yearOfFirstRegistration": "2013",
"currentInsuranceStatus": "ACTIVE_COMP", // enums: ACTIVE_TPL, ACTIVE_COMP, EXPIRED
"carTrimId": 91,
"filters": [
{
"field": "isDisabled",
"value": false
}
],
// optional field
"valuation": [
// ...
{
"planId": 8,
"carValue": 18000 // car valuation to update, against specific plan
},
{
"planId": 51,
"insurerTrimId": 1 // check get-car-trim-lookups api
}
]
}
Response Body
Success
JSON
{
"customerId": 0,
"firstName": "John",
"lastName": "Doe",
"mobile": "********89",
"email": "m***********t@insurancemarket.ae",
"cylinder": "5",
"vehicleTypeId": 1,
"carMakeId": 128,
"carModelId": 1090,
"carMakeText": "TOYOTA",
"carModelText": "COROLLA",
"carName": "TOYOTA COROLLA",
"yearOfManufacture": "2014",
"carValue": 45,
"seatingCapacity": 5,
"dob": "1990-06-06",
"nationalityId": 82,
"typeOfInsuranceId": 2,
"claimHistoryId": 4,
"emirateOfRegistrationId": 4,
"uaeLicenseHeldForId": 3,
"advisor": null,
"isBankFinanced": false,
"isModified": false,
"isGccStandard": true,
"currentlyInsuredWith": "Other",
"currentInsurance": "Other",
"yearOfFirstRegistration": "2013",
"currentInsuranceStatus": "ACTIVE_COMP",
"carTrimText": "GLI 1.8L",
"carTrimId": 1165,
"backHomeLicenseHeldForId": null,
"backHomeLicenseHeldForText": "",
"hasNcdSupportingDocuments": false,
"vehicleRegistrationTypeId": "VR",
"vehicleRegistrationTypeText": "Vehicle Renewal",
"source": "web",
"policyStartDate": null
}
Failed
JSON
{
"status": 400,
"code": 400,
"msg": "Error message",
"errors": [],
"errorType": "ERROR"
}
After Successful Response
Refetch plans by get-all-car-quote-plans api