To create a quotation you need to make a POST call to the following url:
POST/v1/Quotation/Create
| Field | Type | Limit | Required | Description |
| request_type_code | string | 50 | Yes | Quotation request type: CREDIT_LIFE_INSURANCE |
| insurance_type_code | string | 50 | Yes | Insurance type: PERSONAL_LOAN |
| voucher_code | string | 50 | Optional | Voucher or promo code |
| policy_no_previous | string | 50 | Optional | Previous policy number, if any |
| lang_code | string | 2 | Optional | Request language: en, ar. Default: en |
| async | boolean | - | Optional | true: create the quotation and return at once, read offers later. false: return the offers in the response |
| include_data | boolean | - | Optional | Response includes additional data |
| include_result | boolean | - | Optional | Response includes offers |
| client_type_id | int | - | Optional | Website: 1, Mobile: 2, Kiosk: 3 |
| collector_track_id | string | 50 | Optional | Your own unique reference for this request |
| reference_by_id | Int64 | - | Optional | Bima customer id when the customer is logged in; otherwise 0 |
| os | string | 50 | Optional | Device operating system name, version |
| browser | string | 50 | Optional | Device browser name, version |
| schedule |
Policy period
object
| Field | Type | Limit | Required | Description |
| policy_term_id | Int64 | - | Optional | Policy term; default: the product's term |
| date_from | string | 10 | Optional | Policy start date, dd/MM/yyyy |
| date_to | string | 10 | Optional | Policy end date, dd/MM/yyyy |
|
| customer |
Customer
object
| Field | Type | Limit | Required | Description |
| country_code | string | 5 | Yes | Mobile dial code without +, e.g. 968 |
| national_no | string | 15 | Yes | Mobile number without the dial code. Oman: exactly 8 digits |
| contact_full_no | string | 20 | Yes | country_code + national_no, e.g. 96895542930 |
| area_code | string | 3 | Optional | Calculated from contact_full_no when empty |
| subscriber_code | string | 15 | Optional | Calculated from contact_full_no when empty |
| id_no | string | 20 | Yes | Customer civil / resident ID number |
| id_type | int | - | Yes | 1 = Person, 2 = Company |
| title_id | int | - | Optional | From the titles lookup |
| first_name | string | 25 | Optional | First name |
| middle_name | string | 25 | Optional | Middle name |
| last_name | string | 25 | Optional | Last name |
| email | string | 50 | Optional | Contact email |
| dob | string | 10 | Optional | Date of birth, dd/MM/yyyy |
| gender_id | int | - | Optional | 1 = Male, 2 = Female |
| nationality_country_id | int | - | Optional | From the nationalities lookup |
| region_id, city_id, town_id | Int64 | - | Optional | From the regions and cities lookup; otherwise 0 |
| pobox_no | string | 10 | Optional | P.O. Box number |
| address | string | 30 | Optional | Address |
| address2 | string | 30 | Optional | Address line 2 |
|
| credit_life |
Credit life (loan)
object
| Field | Type | Limit | Required | Description |
| relation_title_id | int | - | Yes | From the relation titles lookup |
| bank_id | int | - | Yes | From the banks lookup |
| insured_amount | number | - | Yes | Loan amount in OMR |
| tenure_in_months | int | - | Yes | Loan tenure in months |
| employment_type_id | int | - | Optional | From the employments lookup |
|
{
"request_type_code": "CREDIT_LIFE_INSURANCE",
"insurance_type_code": "PERSONAL_LOAN",
"lang_code": "en",
"voucher_code": "",
"policy_no_previous": "",
"reference_by_id": 0,
"customer": {
"id_no": "123654789",
"id_type": 1,
"id_expire_date": "",
"license_no": "",
"country_code": "968",
"area_code": "955",
"subscriber_code": "42930",
"national_no": "",
"contact_full_no": "",
"title_id": 1,
"first_name": "Saif",
"middle_name": "al",
"last_name": "Maluk 2",
"email": "saifal.maluk@bima.om",
"nationality_country_id": 1,
"nationality_country_code": "",
"nationality_country_name": "",
"residence_country_id": 0,
"dob": "19/12/1971",
"passport_no": "",
"gender_id": 1,
"gender_name": "",
"region_id": 1,
"region_name": "",
"city_id": 1,
"city_name": "",
"town_id": 1,
"pobox_no": "",
"address": "Muscat Oman",
"address2": ""
},
"os": "android",
"browser": "chrome",
"collector_track_id": "",
"client_type_id": 2,
"async": true,
"schedule": {
"policy_term_id": 0,
"date_from": "",
"date_to": ""
},
"request_data": [],
"coverage_items": [],
"insurers": [],
"vehicles": [],
"credit_life": {
"title_id": 0,
"relation_title_id": 1,
"bank_id": 1,
"insured_amount": 10000.0,
"tenure_in_months": 18,
"employment_type_id": 1
},
"business_activities": [],
"attributes_data": [],
"include_data": false,
"include_result": true
}