Fetch Product By ID
View detail information about a specific product using its ID .
GET /api/v1/client/products/:id
Headers
authorization : bearer token
sessionToken : client session token
Path params
Name | Description | Required | Type |
---|---|---|---|
id | Unique ID of a product | Required | string |
Sample response
name required | string The poduct's name |
code | string The code used by the insurer to identify the product |
description | string Short description of the product |
premiumRates | object (Map) |
category required | string Enum: "AUTO" "BANKERS_INDEMNITY" "BLANKET_BOND" "BONDS" "BOILER_OR_PRESSURE_VESSEL" "BURGLARY" "BUSINESS_INTERRUPTION" "MONEY" "DIRECTORS_OFFICERS_LIABILITY" "ELECTRONIC_EQUIPMENT" "EMPLOYERS_LIABILITY" "ERECTION_ALL_RISKS" "CONTRACTORS_ALL_RISKS" "FIDELITY_GUARANTEE" "GENERAL_LIABILITY" "GOODS_IN_TRANSIT" "GROUP_PERSONAL_ACCIDENT" "HOME" "MARINE" "PERSONAL_ACCIDENT" "PLANT_ALL_RISKS" "PLANT_AND_MACHINERY" "PROFESSIONAL_INDEMNITY" "PROPERTY_DAMAGE" "PUBLIC_LIABILITY" "TRAVEL" "AVIATION" "WORKMENS_COMPENSATION" "FIRE_AND_ALLIED_PERILS" "ASSETS_ALL_RISKS" "AGRICULTURAL" "STOCK_DETERIORATION" "MOTOR_TRADERS" "LIFE" "GROUP_LIFE_PERSONAL_ACCIDENT" "GROUP_LIFE" "GROUP_FUNERAL" "HEALTH" "PENSION" Category of the product |
subCategory required | string The sub category of the product |
benefits required | Array of strings Benefits of the product |
object (ProductCommissionDto) | |
status required | string Default: "ACTIVE" Enum: "ACTIVE" "DEACTIVATED" The status of the product (active or inactive). Policies can be created only if the product is active |
distribution required | string Default: "OFFLINE" Enum: "ONLINE" "OFFLINE" Whether the product is available in client applications (ONLINE) eg. mobile app or to only staffs (OFFLINE) |
id required | string Unique ID of the product |
Array of objects (CompanyRespDto) Agents & Brokers to which the product has also been assigned | |
required | object The insurer (owner company) of the product - is not null if product is an assigned one |
createdAt required | string <date-time> Date at which the product was created |
assignedAt | string <date-time> Date at which the product was assigned |
updatedAt required | string <date-time> Date at which the product was updated |
object The staff who created the product | |
object The staff who assigned the product | |
required | object (ProductCommissionDto) |
required | object (ProductCommissionDto) |
{- "name": "Motor Insurance",
- "code": "CLAGC",
- "description": "lorem ipsum dolor sit amet",
- "premiumRates": { },
- "category": "AUTO",
- "subCategory": "COMPREHENSIVE",
- "benefits": [
- "lorem ipsum dolor sit amet"
], - "otherCommission": {
- "value": 0.1,
- "type": "PERCENTAGE"
}, - "status": "ACTIVE",
- "distribution": "OFFLINE",
- "id": "619c0911b46b424f5f3e470f",
- "assignedTo": [
- {
- "subdomain": "transnational",
- "id": "619c0911b46b424f5f3e470f",
- "logo": {
- "id": "619c0911b46b424f5f3e470f",
- "createdAt": "2020-01-01T00:00:00.000Z",
- "updatedAt": "2020-05-05T00:00:00.000Z",
- "contentType": "image/jpeg",
- "size": "12345",
- "name": "file-name.jpg"
}, - "name": "string",
- "email": "string",
- "type": "INSURER",
- "kind": "NON_LIFE",
- "description": "string",
- "primaryColor": "string",
- "shortName": "string"
}
], - "insurer": {
- "subdomain": "transnational",
- "id": "619c0911b46b424f5f3e470f",
- "logo": {
- "id": "619c0911b46b424f5f3e470f",
- "createdAt": "2020-01-01T00:00:00.000Z",
- "updatedAt": "2020-05-05T00:00:00.000Z",
- "contentType": "image/jpeg",
- "size": "12345",
- "name": "file-name.jpg"
}, - "name": "string",
- "email": "string",
- "type": "INSURER",
- "kind": "NON_LIFE",
- "description": "string",
- "primaryColor": "string",
- "shortName": "string"
}, - "createdAt": "2020-05-05T00:00:00.000Z",
- "assignedAt": "2020-05-05T00:00:00.000Z",
- "updatedAt": "2020-05-05T00:00:00.000Z",
- "createdBy": {
- "id": "619c0911b46b424f5f3e470f",
- "createdAt": "2020-05-05T00:00:00.000Z",
- "updatedAt": "2020-05-05T00:00:00.000Z",
- "email": "janedoe@insurerity.com",
- "firstName": "Jane",
- "otherNames": "Wood",
- "lastName": "Doe",
- "phoneNumber": "janedoe@insurerity.com",
- "isActive": true,
- "type": "NORMAL_STAFF",
- "jobTitle": "Sales Manager",
- "position": "BRANCH_MANAGER",
- "address": "Fores hill Av.",
- "staffNo": "ACT-00123",
- "gender": "MALE",
- "dateOfBirth": "12/03/1990",
- "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
- "fullName": "John Doe",
- "department": {
- "description": "Accra Dansoman new branch",
- "id": "619fe0d0a6cda53de437178b",
- "createdAt": "2020-05-05T00:00:00.000Z",
- "updatedAt": "2020-05-05T00:00:00.000Z",
- "branch": {
- "id": "619fe0d0a6cda53de437178b",
- "createdAt": "2020-05-05T00:00:00.000Z",
- "updatedAt": "2020-05-05T00:00:00.000Z",
- "name": "Accra Branch",
- "address": "Accra, Ghana",
- "description": "Our new branch in Accra"
}, - "name": "Accra Dansoman Branch"
}, - "notifications": [ ]
}, - "assignedBy": {
- "id": "619c0911b46b424f5f3e470f",
- "createdAt": "2020-05-05T00:00:00.000Z",
- "updatedAt": "2020-05-05T00:00:00.000Z",
- "email": "janedoe@insurerity.com",
- "firstName": "Jane",
- "otherNames": "Wood",
- "lastName": "Doe",
- "phoneNumber": "janedoe@insurerity.com",
- "isActive": true,
- "type": "NORMAL_STAFF",
- "jobTitle": "Sales Manager",
- "position": "BRANCH_MANAGER",
- "address": "Fores hill Av.",
- "staffNo": "ACT-00123",
- "gender": "MALE",
- "dateOfBirth": "12/03/1990",
- "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
- "fullName": "John Doe",
- "department": {
- "description": "Accra Dansoman new branch",
- "id": "619fe0d0a6cda53de437178b",
- "createdAt": "2020-05-05T00:00:00.000Z",
- "updatedAt": "2020-05-05T00:00:00.000Z",
- "branch": {
- "id": "619fe0d0a6cda53de437178b",
- "createdAt": "2020-05-05T00:00:00.000Z",
- "updatedAt": "2020-05-05T00:00:00.000Z",
- "name": "Accra Branch",
- "address": "Accra, Ghana",
- "description": "Our new branch in Accra"
}, - "name": "Accra Dansoman Branch"
}, - "notifications": [ ]
}, - "standardCommission": {
- "value": 0.1,
- "type": "PERCENTAGE"
}, - "overriderCommission": {
- "value": 0.1,
- "type": "PERCENTAGE"
}
}