Get quotations created
GET/v1/quotes
This endpoint allows you to get a listing of the quotes that were created successfully.
Request
Query Parameters
Possible values: [paid
, pending
]
Filter the results by status. Value is one of 'paid' or 'pending'
search for quotes using product title or customer name
The child partner key to get all quotes belonging to the child partner
Responses
- 200
- 400
OK
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
data object[]
The unique ID of the quote.
unique reference of the quote.
the current status of the quote.
the amount due for payment by partner, excluding the partner's commission
A provisional date when the policy coverage is due to start
The cost of purchasing the product by policy holder, including the partner's commission.
An optional identifier for the asset the insurance covers. You may set this to a value that uniquley identifies the asset on your database.
The currency of all monetary parameters.
The name of your company
product 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
customer object
The the customer's information
Unique identifier for the customer on your system
The customer's email address
links object
meta object
{
"data": [
{
"id": 2,
"ref": "q-partner-one-1",
"status": "paid",
"amount_due": 1470,
"policy_start_date": "2022-04-06T00:00:00.000000Z",
"product_price": 1500,
"asset_ref": "T2354354",
"currency": "GHS",
"created_at": "2022-04-06T10:34:20.000000Z",
"company_name": "Curacel Inc.",
"product": {
"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"
},
"customer": {
"ref": "string",
"email": "string",
"phone": "408-867-5309",
"first_name": "Jane",
"last_name": "Doe"
}
}
],
"links": {
"first": "https://api.grow.curacel.co/quotes?page=1",
"last": "https://api.grow.curacel.co/quotes?page=3",
"prev": "https://api.grow.curacel.co/quotes?page=1",
"next": "https://api.grow.curacel.co/quotes?page=3"
},
"meta": {
"current_page": 2,
"from": 1,
"total": 3
}
}
Bad request.
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "400 Bad Request (Client Error)"
}