Skip to main content
Version: 1.0.1

Reiseforsikring (Travel Insurance)

Work in Progress

This documentation is under development and may be updated.

API Documentation for Travel 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 travel 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": "reise",
"data": {
"coverage": "standard",
"addons": ["30 dager ekstra"],
"insured": "person",
"oldestChild": 30,
"currentAccidents": 0,
"lastAccidentDate": "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: "reise"
dataobjectData for the offer

Offer Data Object

FieldTypeDescription
coveragestringCoverage for the insurance. Values: "standard", "utvidet"
addonsarrayAdditional services for the insurance. Example: ["30 dager ekstra"]
insuredstringWho is insured. Values: "person", "person+partner", "person+familie"
oldestChildnumberAge of oldest child (if family coverage). Example: 30
currentAccidentsnumberNumber of accidents. Example: 0
lastAccidentDatestringDate of the last accident. Example: "2023-05-15"

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": "reise",
"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": {
"insured": "string",
"deductible": 0,
"daysCovered": 90
}
}
],
"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: 1200
totalDiscountnumberTotal discount for all products. Example: 150
totalOriginalPricenumberTotal original price for all products before discount. Example: 1350
discountDescriptionstringDescription of the discount that has been given. Example: "Medlemsrabatt Tekna"

Products Array

FieldTypeDescription
idstringThe unique ID for the product. Example: "R-123456789"
typestringType of product. Value: "reise"
productNamestringThe name of the product. Example: "Reiseforsikring Utvidet"

Prices Object

FieldTypeDescription
pricenumberPrice for the product after discount. Example: 1200
discountnumberDiscount for the product. Example: 150
originalPricenumberOriginal price for the product before discount. Example: 1350
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 reiseforsikring"
urlstringURL to the document. Example: "https://example.com/ipid-reise.pdf"

Offer Object

FieldTypeDescription
insuredstringWho is insured. Example: "person+familie"
deductiblenumberDeductible for the product. Example: 1000
daysCoverednumberNumber of days covered. Example: 90

Additional Response Fields

FieldTypeDescription
purchaseUrlstringURL for purchasing the products. Example: "https://example.com/purchase/reise"
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.