Skip to content

Insurance Quote

POST
/open/sales/insurance/quote

Get the premium of each motor insurance cover for a start date and number of seats. Use the premium of the cover you sell as premium when you sell the policy. Nothing is charged by a quote.

history

Request History

Your request history will appear here.

Headers

X-API-USER stringrequired

Your Moolre username.

X-API-KEY stringrequired

Your Private API Key for the paying wallet.

Content-Type stringrequired

Send application/json.

Body Params

accountnumberstringrequired

Your insurance agent wallet account number.

start_datestringrequired

Date the policy starts, as YYYY-MM-DD. A date in the past is priced as today.

seatsintegerrequired

Number of seats of the vehicle, a whole number from 1 to 100.

Responses

Premiums for each cover available for the details. Prices change, so a quote is only good for the start date it was asked for.

{
  "status": "1",
  "code": "IQ20",
  "message": "Insurance quote",
  "data": {
    "start_date": "2026-12-01",
    "seats": 5,
    "period_months": 12,
    "currency": "GHS",
    "covers": [
      {
        "cover_type": "third_party",
        "cover_code": "T",
        "premium": "1250.00"
      },
      {
        "cover_type": "third_party_fire_theft",
        "cover_code": "F",
        "premium": "1980.50"
      },
      {
        "cover_type": "comprehensive",
        "cover_code": "C",
        "premium": "3400.00"
      }
    ]
  },
  "go": null,
  "meta": {
    "requestid": "req_c68f4c66115c26725c796242",
    "notices": []
  }
}
statusstring
1 when the quote was returned.
codestring
IQ20.
data.start_datestring
Start date priced, as YYYY-MM-DD (today when you sent a past date).
data.seatsinteger
Seats the quote is for.
data.period_monthsinteger
Cover period priced: 12 months.
data.currencystring
GHS.
data.coversarray
One item per cover: cover_type (use as policy.cover_type), cover_code and premium as a decimal string.

Nothing is priced. data names the field to fix. See the codes below.

{
  "status": "0",
  "code": "ASQ01",
  "message": "start_date must be a valid date as YYYY-MM-DD.",
  "data": "start_date",
  "go": null,
  "meta": {
    "requestid": "req_c68f4c66115c26725c796242",
    "notices": []
  }
}

Fields every response can carry

On failures, read code, message and data (the first failing field). meta is always present and holds requestid (also the X-Request-Id header), notices and, only on idempotent replays, replayed. There is no outcome field: use status, code and data.txstatus. Send X-Moolre-Http-Status: strict to receive real HTTP status codes. See Responses and request IDs and Errors and status codes.

Language

curl --request POST \     --url 'https://api.moolre.com/open/sales/insurance/quote' \     --header 'X-API-USER: Your Username' \     --header 'X-API-KEY: YOUR_API_KEY' \     --header 'Content-Type: application/json' \     --data '{  "accountnumber": "",  "start_date": "",  "seats": 5}'

Response

Body

{  "status": "0",  "code": "ASQ01",  "message": "start_date must be a valid date as YYYY-MM-DD.",  "data": "start_date",  "go": null,  "meta": {    "requestid": "req_c68f4c66115c26725c796242",    "notices": []  }}