Get a single insurance product
GET/v1/products/:id
This endpoint allows you to get a product using it's id
Request
Path Parameters
The ID of the product or the code of the product when the using_product_code
parameter is set to 1
Query Parameters
Required when calculate_premium
is set to 1
Possible values: >= 1
and <= 365
Number of days in a year that have trips (max of 365). Required for 'recuring' GIT products when calculate_premium
is set to 1
Number of trips per day. Required for 'recuring' GIT products when calculate_premium
is set to 1
Possible values: [single
, recurring
]
Default value: recurring
Frequency of trips. Required for GIT product when calculate_premium
is set to 1
Possible values: <= 12
Loan duration in months. Required for credit life products when calculate_premium
is set to
Possible values: <= 12
Travel duration in months. Required for travel products when calculate_premium
is set to 1
Possible values: [0
, 1
]
Set to 1 to calculate the premium value of the product. This is only necessary for relative products such as Goods In Transit (GIT).
Possible values: [0
, 1
]
Must be one of 1,0. Ideally, you should only use this with the value set to 1 only when the id
path contains the code of the product. Simply omit it when using the product's id.
The age of the policy holder. May be required for some product types when calculate_premium
is set to 1
Responses
- 200
- 404
OK
- application/json
- Schema
- Example (from schema)
Schema
data object
An individual insurance product or plan
The name of the product
The unique identifier for technical purposes
Unique Id of the product.
insurer object
An insurance provider
The unique code of the insurer
The name of the insurer
A link to the Insurer's logo
Insurer's terms and conditions
product type object
A major category of insurance e.g Health, Automobile, Life, Gadget, Goods in transit, etc
The generally accepted human friendly name
The unique identifier for technical purposes
list of the nefits covered.
Date of product creation
Price of product
Define the product premium tier.
Possible values: [monthly
, quarterly
, annually
]
Default value: annually
{
"data": {
"title": "Comprehensive Car Plan XYZ",
"code": "auto-com-xyz",
"id": 1,
"insurer": {
"code": "AXA",
"name": "Axa Mansard",
"logo_url": null,
"terms_conditions": null
},
"product type": {
"name": "Goods in Transit",
"slug": "GIT"
},
"cover-benefits": {},
"created-at": "string",
"price": 0,
"premium-type": "string",
"premium-rate-unit": 0,
"premium-rate": 0,
"premium": 0,
"partner-commision-rate": 0,
"min-premium": "string",
"premium-rules": "string",
"premium_frequency": "annually"
}
}
404 Not Found
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "Sorry, the Product you requested was not found"
}