Skip to main content
Version: Next

Innboforsikring (Contents Insurance)

Work in Progress

This documentation is under development and may be updated.

API Documentation for Contents Insurance integration with the Consumer Council's insurance service.

Request from Consumer Council

When the Consumer Council sends a request to the insurance company, it will be in JSON format. This request contains information about the person to be insured, as well as details about the specific contents insurance offer that has been requested.

Example Request

{
"id": "string",
"person": {
"pid": "string",
"firstName": "string",
"lastName": "string",
"addresses": [
{
"source": "string",
"streetName": "string",
"postalCode": "string",
"postalLocation": "string"
}
],
"memberships": [
{
"membershipId": "string",
"membershipName": "string"
}
]
},
"offerRequest": [
{
"id": "678aufj",
"type": "innbo",
"data": {
"coverage": "standard",
"addons": ["sykkeldekning", "tilleggsdekning"],
"currentAccidents": 0,
"lastAccidentDate": "string",
"residence": {
"type": "string",
"constructionYear": 1990,
"constructionType": "string",
"rented": false,
"rentedBTA": 0,
"rentedBRA": 0,
"roomsBelowGround": false,
"intruderAlarm": {
"present": false,
"approved": false
},
"fireAlarm": {
"present": false,
"emergencyResponse": false
},
"waterAlarm": {
"present": false,
"emergencyResponse": false,
"approvedStopper": false,
"automaticStopper": false
},
"insuredAmount": "string"
}
}
}
],
"requestAt": "2024-10-16T12:06:00Z"
}

Request Field Descriptions

Root Level Fields

FieldTypeDescription
idstringThe unique ID for the request
requestAtstringThe date and time when the request was sent

Person Object

FieldTypeDescription
pidstringThe personal identification number of the person to be insured. Example: "01019612345"
firstNamestringThe first name of the person to be insured. Example: "Ole"
lastNamestringThe last name of the person to be insured. Example: "Nordmann"
addressesarrayInformation about the address of the person to be insured
membershipsarrayInformation about various memberships of the person to be insured

Address Object

FieldTypeDescription
sourcestringSource of the address. Example: "National Registry"
streetNamestringStreet name of the address. Example: "Ole Nordmanns Gate 1"
postalCodestringPostal code of the address. Example: "0123"
postalLocationstringPostal location of the address. Example: "OSLO"

Membership Object

FieldTypeDescription
membershipIdstringThe ID of the membership. Example: "MEMB-001"
membershipNamestringThe name of the membership. Example: "Tekna"

Offer Request Object

FieldTypeDescription
idstringThe unique ID for the offer request. Example: "678aufj"
typestringType of product. Value: "innbo"
dataobjectData for the offer

Offer Data Object

FieldTypeDescription
coveragestringCoverage for the insurance. Values: "standard", "utvidet"
addonsarrayAdditional services. Example: ["sykkeldekning", "tilleggsdekning"]
currentAccidentsnumberNumber of accidents. Example: 0
lastAccidentDatestringDate of the last accident. Example: "2023-05-15"
residenceobjectInformation about the residence

Residence Object

FieldTypeDescription
typestringType of residence. Values: "Enebolig", "Vertikaldelt tomannsbolig", "Horisontaldelt tomannsbolig", "Rekkehus", "Leilighet"
constructionYearnumberYear the building was constructed. Example: 1990
constructionTypestringType of construction. Values: "Tre", "Mur", "Betong"
rentedbooleanWhether the residence is rented. Example: false
rentedBTAnumberRented gross area (BTA). Example: 0
rentedBRAnumberRented usable area (BRA). Example: 0
roomsBelowGroundbooleanWhether there are rooms below ground level. Example: false
insuredAmountstringInsured amount. Example: "1000000"

Intruder Alarm Object

FieldTypeDescription
presentbooleanWhether an intruder alarm is present. Example: false
approvedbooleanWhether the alarm is approved. Example: false

Fire Alarm Object

FieldTypeDescription
presentbooleanWhether a fire alarm is present. Example: false
emergencyResponsebooleanWhether connected to emergency response. Example: false

Water Alarm Object

FieldTypeDescription
presentbooleanWhether a water alarm is present. Example: false
emergencyResponsebooleanWhether connected to emergency response. Example: false
approvedStopperbooleanWhether there is an approved water stopper. Example: false
automaticStopperbooleanWhether the stopper is automatic. Example: false

Response from Insurance Company

This is a description of how the response from the insurance company should be structured.

Example Response

{
"id": "string",
"company": "string",
"totalPrice": 0,
"totalDiscount": 0,
"totalOriginalPrice": 0,
"discountDescription": "string",
"products": [
{
"id": "string",
"type": "innbo",
"productName": "string",
"prices": {
"price": 0,
"discount": 0,
"originalPrice": 0,
"tfa": 0.0
},
"productDetails": {
"coverage": "string",
"ipidUrls": [
{
"description": "string",
"url": "string"
}
],
"termsUrls": [
{
"description": "string",
"url": "string"
}
]
},
"offer": {
"insuredAmount": "string",
"deductible": 0
}
}
],
"purchaseUrl": "string",
"receivedAt": "string",
"responseAt": "string"
}

Response Field Descriptions

Root Level Fields

FieldTypeDescription
idstringThe unique ID for the request
companystringThe name of the insurance company. Example: "Forsikringsselskap"
totalPricenumberTotal price for all products after discount. Example: 3600
totalDiscountnumberTotal discount for all products. Example: 400
totalOriginalPricenumberTotal original price for all products before discount. Example: 4000
discountDescriptionstringDescription of the discount. Example: "Medlemsrabatt Tekna"

Products Array

FieldTypeDescription
idstringThe unique ID for the product. Example: "I-123456789"
typestringType of product. Value: "innbo"
productNamestringThe name of the product. Example: "Innboforsikring Utvidet"

Prices Object

FieldTypeDescription
pricenumberPrice for the product after discount. Example: 3600
discountnumberDiscount for the product. Example: 400
originalPricenumberOriginal price for the product before discount. Example: 4000
tfanumberTFA fee for the product. Example: 0.0

Product Details Object

FieldTypeDescription
coveragestringCoverage for the product. Example: "utvidet"
ipidUrlsarrayList of URLs to IPID documents
termsUrlsarrayList of URLs to terms and conditions

IPID/Terms URL Object

FieldTypeDescription
descriptionstringDescription of the document. Example: "Produktinformasjon innboforsikring"
urlstringURL to the document. Example: "https://example.com/ipid-innbo.pdf"

Offer Object

FieldTypeDescription
insuredAmountstringInsured amount for the product. Example: "1000000"
deductiblenumberDeductible for the product. Example: 4000

Additional Response Fields

FieldTypeDescription
purchaseUrlstringURL for purchasing the products. Example: "https://example.com/purchase/innbo"
receivedAtstringTime when the request was received. Example: "2024-10-16 12:06:00"
responseAtstringTime when the response was sent. Example: "2024-10-16T12:06:05Z"

Error Handling

In case of errors, the company should respond with an appropriate HTTP status code and the following body:

{
"error": {
"code": "string",
"message": "string"
}
}

See Car Insurance Error Handling for the list of error codes.