List of Products
Fetch of list all the products available on your platform. This endpoint allows you to query all the products (including inactive products).
GET /api/v1/client/products
Headers
authorization : bearer token
session : client session token
Query Params
By using one or a combination of these parameters, you choose a specific product that should be added to the response.
Name | Setting | Description | Required | Type |
---|---|---|---|---|
assigned | Default: false | Get only products which have been assigned to brokers or agents | Not Required | boolean |
category | Example: category=AUTO | Filter products by category name | Not Required | string |
distribution | Enum: "ONLINE" "OFFLINE" Example: description=OFFLINE | Filter products by distribution | Not Required | string |
insurer | Example: insurer=GLICO Insurance | Filter products by insurer's name | Not Required | string |
limit | Default: 100 Example: limit=50 | Number of items to return per page | Not Required | string |
name | Example: name=Motor Comprehension | Filter products by name | Not Required | string |
page | Default: 1 Example: page=1 | Page number | Not Required | number |
subCategory | Example: subCategory=COMPREHENSIVE | Filter products by subcategory name | Not Required | string |
Response Sample
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"
}
}