Get Policy Product

Gets all of the available insurance policy products available to your channel.

Get a list of insurance policy products

get
Authorizations
Query parameters
pageSizeinteger · int32Optional

Number of result to display

Default: 50
pageIndexinteger · int32Optional

Page index

Default: 0
Header parameters
api_keyanyRequired
Responses
200
successful operation
application/json
get
GET /api/channel-service/v1/policy HTTP/1.1
Host: channel.sandbox.casava.co
api_key: YOUR_API_KEY
Accept: */*
[
  {
    "policyCode": "hospicash",
    "policyName": "health cash insurance ",
    "description": "policy description",
    "duration": 12,
    "installment": "MONTHLY",
    "autoIssue": false,
    "fieldGroups": [
      {
        "fieldGroupId": "fieldGroupId",
        "title": "field group name",
        "description": "field group description",
        "fields": [
          {
            "fieldId": "fieldId",
            "title": "field name",
            "fieldType": "string",
            "optional": true,
            "description": "field description",
            "min": 1,
            "max": 1
          }
        ]
      }
    ],
    "perils": [
      {
        "name": "peril name",
        "title": "policy peril title",
        "description": "policy peril description"
      }
    ]
  }
]

Sample Response

{
    "statusCode": 200,
    "message": "successful operation",
    "data": {
        "policy": [
            {
                "policyCode": "INCOMEPROTECT",
                "policyName": "Income Protection Insurance",
                "description": "Protect your job against unforeseen risk",
                "duration": 12,
                "installment": "MONTHLY",
                "autoIssue": true,
                "perils": [
                    {
                        "name": "personalaccident",
                        "title": "Personal Accident",
                        "description": "policy peril description"
                    },
                    {
                        "name": "personalaccident2",
                        "title": "Personal Accident",
                        "description": "policy peril description"
                    },
                    {
                        "name": "personalaccident3",
                        "title": "Personal Accident",
                        "description": "policy peril description"
                    }
                ],
                "fieldGroups": [
                    {
                        "fieldGroupId": "HOMEADDRESS",
                        "title": "Home Address ",
                        "description": "field groups for the home address of the policy holder ",
                        "fields": [
                            {
                                "fieldId": "STREETNUMBER",
                                "title": "Street Number",
                                "fieldType": "string",
                                "optional": false,
                                "description": "street number of the policy holder",
                                "min": 255,
                                "max": 255
                            },
                            {
                                "fieldId": "STREETNAME",
                                "title": "Street Name ",
                                "fieldType": "string",
                                "optional": false,
                                "description": "street name of the policy holder",
                                "min": 255,
                                "max": 255
                            },
                            {
                                "fieldId": "CITY",
                                "title": "City",
                                "fieldType": "string",
                                "optional": false,
                                "description": "city of the policy holder",
                                "min": 255,
                                "max": 255
                            },
                            {
                                "fieldId": "COUNTRY",
                                "title": "Country",
                                "fieldType": "string",
                                "optional": false,
                                "description": "country of the policy holder ",
                                "min": 255,
                                "max": 255
                            },
                            {
                                "fieldId": "STATE",
                                "title": "State",
                                "fieldType": "string",
                                "optional": false,
                                "description": "state of the policy holder",
                                "min": 255,
                                "max": 255
                            }
                        ]
                    },
                    {
                        "fieldGroupId": "IDENTITY",
                        "title": "Identification",
                        "description": "field groups for identification requirement of the policy holder ",
                        "fields": [
                            {
                                "fieldId": "IDTYPE",
                                "title": "Identification Type ",
                                "fieldType": "string",
                                "optional": true,
                                "description": "the allowed identification type for the policy holder ",
                                "min": 255,
                                "max": 255
                            },
                            {
                                "fieldId": "IDNUMBER",
                                "title": "Identification Number",
                                "fieldType": "string",
                                "optional": true,
                                "description": "the identification number attached to the identification type ",
                                "min": 255,
                                "max": 255
                            }
                        ]
                    }
                ]
            }
        ],
        "total": 1,
        "totalPages": 1,
        "currentPage": 0
    }
}

Last updated