> AI documentation index: [/llms.txt](/llms.txt)

# Fenris API Documentation

This collection provides ready-to-use requests for the Fenris insurance prefill suite — covering
Auto, Property, Business, and Customer 360. Use it to explore the API, validate your integration,
and test requests against your Fenris-provided credentials.

**Full API documentation:** [documentation.fenrisd.com](https://documentation.fenrisd.com)


## Getting Started
Fenris is an API-driven service for the modern insurance company. The Fenris suite of APIs provides
the data and scores that inform insurance coverage decisions, evaluate risk, and improve the
experience of applying for, rating, and servicing insurance accounts. The APIs save research time
and minimize fillable form content errors by returning applicant data completed form fields for a
client (applicant) to confirm, instead of requiring the client to complete forms manually.

This documentation has been used with the OpenAPI 3 specification. Definitions of the response
fields are included under each service endpoint. Example requests and responses can be seen in the
right-hand panel for each endpoint. The example request JSON can be collapsed and expanded using the
minus and plus signs that appear on the right side of the JSON objects.


**Analytics Base Models**: We provide a set of base models that can be used to score an
applicant based on the information provided in the request. These models are available out of the box,
giving you insight immediately. When paired with our Analytics Outcomes service, the model will 
learn about your business and improve over time. Please reach out an ask us about our current base models.


Do you need an account to get started? Click [here](https://fenrisd.com/contact-us/)  to request credentials.

If you are stuck or have a question not covered in our documentation, please **send us an email at
hello@fenrisd.com**.

**Base URL:** `https://api.fenrisd.com`

## API Endpoints by Tag

### Personal Auto Insurance

#### Personal Auto Insurance Prefill

Test the Personal Auto Insurance Prefill service with our [**Personal Developer Data**](./personal_developer_data.csv).
The developer data are synthetically generated and contains no PII. Requests made with developer
data are not charged to your account.

## The Enhanced Personal Auto Insurance Prefill Response

There are two return options for the Personal Auto Insurance Prefill endpoint; a base response and an enhanced response. The
enhanced response includes everything in the based response along with additional enhanced vehicle
information. The response types are toggled with the _responseType_ parameter in the request body.

Setting the _responseType_ to **M** returns only the base data. This is the default. Setting the
_responseType_ to **C** returns both the base data and the enhanced vehicle information. Enhanced vehicle
information must be activated for your account. Please reach out to your account representative with questions.

The enhanced vehicle information is returned in the _vehiclesEnhanced_ field in the response. This field is
a list of vehicles found for the request, with each item in the list containing details for the vehicle,
including the vehicle's vin number and registration.

Examples of each type of response can be seen in the right-hand panel, under **Response samples**, by
toggling the options under Example. Additional details of the response fields can be seen in the
**Responses** section below under the 200 Response Schema. The _vehiclesEnhanced_ details can be seen by
clicking the expansion carrot.

##### POST `/services/personal/v1/autoprefill/search` — Prefill an auto insurance application

The Fenris Digital Personal Auto Insurance Prefill service provides information that can be used to quickly and
accurately populate an auto insurance application, such as drivers and vehicle information.

**Parameters:**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `Content-Type` | header | string | No | The body of the request is in JSON format, using UTF-8 character encoding |
| `Submission-Id` | header | string | No | A pass through field from the request header containing a client-specified identifier to tie back to client data and systems. If the client does not define this value, an auto-generated field is used. |
| `Authorization` | header | string | No | The token returned from authentication. See Authentication for more detail. |

**Request body** (`application/json`, required):

Schema: [`AutoPrefillRequest`](/schemas.md#autoprefillrequest)

```json
{
  "person": {
    "firstName": "Kyle",
    "lastName": "Murdock",
    "dateOfBirth": "05/20/1970"
  },
  "address": {
    "addressLine1": "18595 Old Aldrin Highway",
    "city": "Highlands Ranch",
    "state": "CO",
    "zipCode": "80126"
  },
  "responseType": "C"
}
```

**Responses:**

- `200` — Success — schema: [`AutoPrefillResponse`](/schemas.md#autoprefillresponse)

```json
{
  "requestId": "89b8ba5a-c85d-490f-85cc-10fcb61ca8aa",
  "submissionId": "89b8ba5a-c85d-490f-85cc-10fcb61ca8aa",
  "status": "Success",
  "matchDescription": "Artificial match",
  "addressDescription": "Artificial address matched",
  "primary": {
    "gender": "Male",
    "maritalStatus": "Married",
    "memberCode": "Primary Household Member",
    "parsedAddress": {
      "addressLine1": "18595 OLD ALDRIN HIGHWAY",
      "city": "HIGHLANDS RANCH",
      "state": "CO",
      "zipCode": "80126",
      "addressType": "Street Address"
    },
    "homeOwnerStatus": "Definite Owner",
    "lengthOfResidence": "6-10 yrs",
    "numberOfGenerations": 2,
    "presenceOf16Or17YearOlds": true,
    "babyBoomer": false,
    "dualIncomeNoKids": false,
    "millennial": false,
    "vehicleHouseholdNum": 3
  },
  "drivers": [
    {
      "firstName": "KYLE",
      "middleName": "",
      "lastName": "MURDOCK",
      "dateOfBirth": "05/20/1970",
      "age": 53,
      "gender": "Male",
      "maritalStatus": "Married",
      "memberCode": "Primary Household Member",
      "verificationDate": "06/04/2021"
    },
    {
      "firstName": "SHARON",
      "middleName": "",
      "lastName": "MURDOCK",
      "dateOfBirth": "12/08/1971",
      "age": 51,
      "gender": "Female",
      "maritalStatus": "Married",
      "memberCode": "Primary Household Member",
      "verificationDate": "06/04/2021"
    },
    {
      "firstName": "ANDY",
      "middleName": "",
      "lastName": "MURDOCK",
      "dateOfBirth": "03/10/2003",
      "age": 20,
      "gender": "Male",
      "maritalStatus": "Single",
      "memberCode": "Primary Household Member",
      "verificationDate": "06/04/2021"
    }
  ],
  "vehicles": [
    {
      "confidence": 90,
      "description": "2019 GMC SIERRA",
      "year": "2019",
      "make": "GMC",
      "model": "SIERRA",
      "type": "Truck",
      "fuelType": "Gas",
      "mileage": "40,001 - 50,000",
      "marketValue": 21217
    },
    {
      "confidence": 70,
      "description": "2016 HONDA ODYSSEY",
      "year": "2016",
      "make": "HONDA",
      "model": "ODYSSEY",
      "type": "Passenger Car",
      "fuelType": "Gas",
      "mileage": "40,001 - 50,000",
      "marketValue": 11588
    },
    {
      "confidence": 70,
      "description": "2012 NISSAN ROGUE",
      "year": "2012",
      "make": "NISSAN",
      "model": "ROGUE",
      "type": "Passenger Car",
      "fuelType": "Gas",
      "mileage": "90,001 - 100,000",
      "marketValue": 7774
    }
  ],
  "vehiclesEnhanced": [
    {
      "vin": "1GTU9FEL1KZ000000",
      "make": "GMC",
      "model": "SIERRA",
      "year": 2019,
      "color": "",
      "trim": "",
      "registeredState": "CO",
      "expirationDate": "2021-12-31",
      "plateType": "Unknown",
      "leaseIndicator": false,
      "brandedTitleIndicator": false,
      "price": 26900,
      "manufacturerBasePrice": 36500,
      "driveSystem": "",
      "registeredOwners": [
        {
          "surname": "MURDOCK",
          "givenName": "KYLE",
          "suffix": "",
          "businessName": "",
          "entityType": "Person",
          "ownerType": "Owner"
        },
        {
          "surname": "",
          "givenName": "",
          "suffix": "",
          "businessName": "AUTO FINANCE",
          "entityType": "Organization",
          "ownerType": "Lien Holder"
        }
      ],
      "vinChangeIndicator": "S",
      "bodyStyle": "TRUCK",
      "transactionDate": "2020-11-30",
      "plateNumber": "CO1234",
      "brandedTitleCode": "",
      "addressType": "Street Address",
      "addressLine1": "18595 OLD ALDRIN HIGHWAY",
      "city": "HIGHLANDS RANCH",
      "state": "CO",
      "zipCode": "80126",
      "weight": 5250,
      "type": "Truck",
      "confidence": 50
    },
    {
      "vin": "5FNRL5H22GB000000",
      "make": "HONDA",
      "model": "ODYSSEY",
      "year": 2016,
      "color": "",
      "trim": "",
      "registeredState": "CO",
      "expirationDate": "2021-12-31",
      "plateType": "Unknown",
      "leaseIndicator": false,
      "brandedTitleIndicator": false,
      "price": 12590,
      "manufacturerBasePrice": 32573,
      "driveSystem": "",
      "registeredOwners": [
        {
          "surname": "MURDOCK",
          "givenName": "KYLE",
          "suffix": "",
          "businessName": "",
          "entityType": "Person",
          "ownerType": "Owner"
        }
      ],
      "vinChangeIndicator": "S",
      "bodyStyle": "Minivan",
      "transactionDate": "2020-11-30",
      "plateNumber": "CO1235",
      "brandedTitleCode": "",
      "addressType": "Street Address",
      "addressLine1": "18595 OLD ALDRIN HIGHWAY",
      "city": "HIGHLANDS RANCH",
      "state": "CO",
      "zipCode": "80126",
      "weight": 5000,
      "type": "Passenger Car",
      "confidence": 77
    },
    {
      "vin": "JN8AS5MV0CW000000",
      "make": "NISSAN",
      "model": "ROGUE",
      "year": 2012,
      "color": "",
      "trim": "",
      "registeredState": "CO",
      "expirationDate": "2021-12-31",
      "plateType": "Unknown",
      "leaseIndicator": false,
      "brandedTitleIndicator": false,
      "price": 5999,
      "manufacturerBasePrice": 21530,
      "driveSystem": "",
      "registeredOwners": [
        {
          "surname": "MURDOCK",
          "givenName": "KYLE",
          "suffix": "",
          "businessName": "",
          "entityType": "Person",
          "ownerType": "Owner"
        }
      ],
      "vinChangeIndicator": "S",
      "bodyStyle": "SUV",
      "transactionDate": "2020-11-30",
      "plateNumber": "CO1236",
      "brandedTitleCode": "",
      "addressType": "Street Address",
      "addressLine1": "18595 OLD ALDRIN HIGHWAY",
      "city": "HIGHLANDS RANCH",
      "state": "CO",
      "zipCode": "80126",
      "weight": 4000,
      "type": "Passenger Car",
      "confidence": 100
    }
  ]
}
```
- `400` — Bad Request (see [Standard Error Responses](#standard-error-responses))
- `401` — Unauthenticated: authentication is missing or invalid (see [Standard Error Responses](#standard-error-responses))
- `403` — Forbidden: authenticated but not permitted (see [Standard Error Responses](#standard-error-responses))
- `404` — Not Found (see [Standard Error Responses](#standard-error-responses))
- `405` — Method Not Allowed (see [Standard Error Responses](#standard-error-responses))
- `415` — Unsupported Media Type (see [Standard Error Responses](#standard-error-responses))
- `500` — Internal Server Error (see [Standard Error Responses](#standard-error-responses))
- `502` — Bad Gateway: an upstream service returned an invalid response — schema: [`502`](/schemas.md#502)
- `503` — Service Unavailable: a required external resource is unavailable — schema: [`503`](/schemas.md#503)
- `504` — Gateway Timeout (see [Standard Error Responses](#standard-error-responses))

#### Plate To VIN

The Fenris Digital Plate To VIN service looks up vehicle registration data using a license plate number
and state, returning VIN and vehicle details for matched registrations.
Lookups are supported for all states except NY and PA, which do not permit registration lookups.

Test the Plate To VIN service with our [**Plate To Vin Developer Data**](./plate_to_vin_developer_data.csv).
The developer data are synthetically generated and contains no PII. Requests made with developer
data are not charged to your account.

##### POST `/services/personal/v1/plate2vin/search` — Look up vehicle data by license plate and state

Accepts one or more license plate/state pairs and returns vehicle registration data found for each plate.
Returns plates for all states except NY and PA, as these states do not allow vehicle registration lookups.
All requested plates are included in the results with one of the following statuses:

* **Found** - vehicle registration data was matched.
* **Not found** - no matching registration was found.
* **Not found - restricted state** - not allowed states are NY and PA.

**Parameters:**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `Content-Type` | header | string | No | The body of the request is in JSON format, using UTF-8 character encoding. |
| `Submission-Id` | header | string | No | A pass through field from the request header containing a client-specified identifier to tie back to client data and systems. If the client does not define this value, an auto-generated field is used. |
| `Authorization` | header | string | No | The token returned from authentication. See Authentication for more detail. |

**Request body** (`application/json`, required):

Schema: [`Plate2VinRequest`](/schemas.md#plate2vinrequest)

```json
{
  "plates": [
    {
      "state": "TX",
      "plate": "TX1234"
    },
    {
      "state": "OH",
      "plate": "OH2135"
    }
  ]
}
```

**Responses:**

- `200` — Success — schema: [`Plate2VinResponse`](/schemas.md#plate2vinresponse)

```json
{
  "requestId": "1fb4c776-bb61-4c37-9240-4c40dec7a8a8",
  "submissionId": "1fb4c776-bb61-4c37-9240-4c40dec7a8a8",
  "status": "Partial",
  "results": [
    {
      "inputState": "TX",
      "inputPlate": "TX1234",
      "status": "Found",
      "matchDescription": "Developer data match",
      "vehicles": [
        {
          "vin": "19VDE2E5XEE000000",
          "make": "ACURA",
          "model": "ILX",
          "year": 2014,
          "registeredState": "TX",
          "expirationDate": "2020-12-31",
          "plateType": "Unknown",
          "leaseIndicator": false,
          "brandedTitleIndicator": false,
          "registeredOwners": [
            {
              "surname": "EVERYWHERE",
              "givenName": "JENNY",
              "suffix": "",
              "businessName": "",
              "entityType": "Person",
              "ownerType": "Owner"
            }
          ],
          "vinChangeIndicator": "S",
          "bodyStyle": "SEDAN",
          "transactionDate": "2019-11-30",
          "addressType": "Street Address",
          "addressLine1": "63724 RAMSEY WAY",
          "city": "DALLAS",
          "state": "TX",
          "zipCode": "75246"
        }
      ]
    },
    {
      "inputState": "OH",
      "inputPlate": "OH2135",
      "status": "Not found",
      "matchDescription": "Not found",
      "vehicles": []
    }
  ]
}
```
- `400` — Bad Request (see [Standard Error Responses](#standard-error-responses))
- `401` — Unauthenticated: authentication is missing or invalid (see [Standard Error Responses](#standard-error-responses))
- `403` — Forbidden: authenticated but not permitted (see [Standard Error Responses](#standard-error-responses))
- `404` — Not Found (see [Standard Error Responses](#standard-error-responses))
- `405` — Method Not Allowed (see [Standard Error Responses](#standard-error-responses))
- `415` — Unsupported Media Type (see [Standard Error Responses](#standard-error-responses))
- `500` — Internal Server Error (see [Standard Error Responses](#standard-error-responses))
- `502` — Bad Gateway: an upstream service returned an invalid response — schema: [`502`](/schemas.md#502)
- `503` — Service Unavailable: a required external resource is unavailable — schema: [`503`](/schemas.md#503)
- `504` — Gateway Timeout (see [Standard Error Responses](#standard-error-responses))

#### VIN Decoder

##### GET `/services/personal/v1/vindecoder` — Decode a VIN

The VIN Decoder service provides automobile information for a requested VIN (Vehicle Identification Number).

**Parameters:**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `vin` | query | string | Yes | VIN to decode. |
| `Authorization` | header | string | No | A Bearer token for authentication. |
| `Submission-Id` | header | string | No | A pass through field from the request header containing a client-specified identifier to tie back to client data and systems. If the client does not define this value, an auto-generated field is used. |

**Responses:**

- `200` — Success — schema: [`VinDecoderResponse`](/schemas.md#vindecoderresponse)

```json
{
  "requestId": "ef13d6eb-a903-4587-9fa5-7f9ef4591ee9",
  "submissionId": "ef13d6eb-a903-4587-9fa5-7f9ef4591ee9",
  "status": "Success",
  "matchDescription": "VIN decoded clean. Check Digit (9th position) is correct",
  "make": "OLDSMOBILE",
  "model": "Alero",
  "modelYear": "1999",
  "trim": "GLS",
  "vehicleType": "Passenger Car",
  "bodyClass": "Sedan/Saloon",
  "vinDetails": {
    "manufacturerName": "GENERAL MOTORS LLC",
    "engineNumberofCylinders": "6",
    "errorCode": "0",
    "windows": "4",
    "displacement(L)": "3.4",
    "otherEngineInfo": "Name Plate: Chevrolet, Pontiac, Oldsmobile",
    "plantCountry": "UNITED STATES (USA)",
    "plantCompanyName": "NA-GM Corp",
    "doors": "4",
    "engineManufacturer": "LAN",
    "plantCity": "LANSING - SOUTH PLANT",
    "displacement(CC)": "3400.0",
    "frontAirBagLocations": "1st Row (Driver and Passenger)",
    "vehicleDescriptor": "1G3NF52E*XC",
    "fuelDelivery/FuelInjectionType": "Sequential Fuel Injection (SFI)",
    "engineConfiguration": "V-Shaped",
    "seatBeltType": "Manual",
    "displacement(CI)": "207.48072992208",
    "plantState": "MICHIGAN"
  }
}
```
- `400` — Bad Request (see [Standard Error Responses](#standard-error-responses))
- `401` — Unauthenticated: authentication is missing or invalid (see [Standard Error Responses](#standard-error-responses))
- `403` — Forbidden: authenticated but not permitted (see [Standard Error Responses](#standard-error-responses))
- `404` — Not Found (see [Standard Error Responses](#standard-error-responses))
- `405` — Method Not Allowed (see [Standard Error Responses](#standard-error-responses))
- `415` — Unsupported Media Type (see [Standard Error Responses](#standard-error-responses))
- `500` — Internal Server Error (see [Standard Error Responses](#standard-error-responses))
- `502` — Bad Gateway: an upstream service returned an invalid response — schema: [`502`](/schemas.md#502)
- `503` — Service Unavailable: a required external resource is unavailable — schema: [`503`](/schemas.md#503)
- `504` — Gateway Timeout (see [Standard Error Responses](#standard-error-responses))

#### Drivers License Lookup

Test the Drivers License Lookup service with our [**Personal Developer Data**](./personal_developer_data.csv).
The developer data are synthetically generated and contains no PII. Requests made with developer
data are not charged to your account.

##### POST `/services/driverslicense/v1/search` — Search for a drivers license number

The Fenris Digital Driver's License search service provides a driver's license number and state
for an input person.

**Parameters:**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `Submission-Id` | header | string | No | A pass through field from the request header containing a client-specified identifier to tie back to client data and systems. If the client does not define this value, an auto-generated field is used. |

**Request body** (`application/json`, required):

Schema: [`DriversLicenseSearchRequest`](/schemas.md#driverslicensesearchrequest)

```json
{
  "person": {
    "firstName": "Kyle",
    "lastName": "Murdock",
    "dateOfBirth": "05/20/1970"
  },
  "address": {
    "addressLine1": "18595 Old Aldrin Highway",
    "city": "Highlands Ranch",
    "state": "CO",
    "zipCode": "80126"
  }
}
```

**Responses:**

- `200` — Success — schema: [`DriversLicenseSearchResponse`](/schemas.md#driverslicensesearchresponse)

```json
{
  "requestId": "9c19139d-77c3-426c-aff4-00090b41900c",
  "submissionId": "9c19139d-77c3-426c-aff4-00090b41900c",
  "status": "Success",
  "licenseState": "CO",
  "licenseNumber": "349370820846",
  "maskedLicenseNumber": "********0846"
}
```
- `400` — Bad Request (see [Standard Error Responses](#standard-error-responses))
- `401` — Unauthenticated: authentication is missing or invalid (see [Standard Error Responses](#standard-error-responses))
- `403` — Forbidden: authenticated but not permitted (see [Standard Error Responses](#standard-error-responses))
- `404` — Not Found (see [Standard Error Responses](#standard-error-responses))
- `405` — Method Not Allowed (see [Standard Error Responses](#standard-error-responses))
- `415` — Unsupported Media Type (see [Standard Error Responses](#standard-error-responses))
- `500` — Internal Server Error (see [Standard Error Responses](#standard-error-responses))
- `502` — Bad Gateway: an upstream service returned an invalid response — schema: [`502`](/schemas.md#502)
- `503` — Service Unavailable: a required external resource is unavailable — schema: [`503`](/schemas.md#503)
- `504` — Gateway Timeout (see [Standard Error Responses](#standard-error-responses))

#### Driver Record Insights

The Fenris Digital Driver Record Insights service provides summary information of potential violations on a driver's
record. This includes a summary status of the driver's record, counts of the found minor and major
violations, the dates of the latest minor and major violations found, and a calculated rating factor for the
driver based on the found incidents. The rating factor is priority to Fenris, generated with industry
experts, and gives an estimate of how the driver's rates for different tiers of insurance policies may be
impacted. The Fenris Driver Record Insights service provides invaluable insights for streamlining applications and
quoting auto insurance policies.

Test the Driver Record Insights service with our [**Personal Developer Data**](./personal_developer_data.csv).
The developer data are synthetically generated and contains no PII. Requests made with developer
data are not charged to your account.

##### POST `/services/personal/v1/driverrecord/search` — Check for violations on driver's record

A request for a driver's record needs to include _**either**_ the address on the license of the person of
interest, _**or**_ the driver's license number and license state. The address component of the request is
not required if the driver's license is provided.

This information is primarily based on a search of court records and is not a replacement for a
complete Motor Vehicle Records (MVR) search. Because regulations vary across the United States, some states
provide more limited access to data. Driver Record Insights data is more limited in the following states; AR, CA, CO,
DC, DE, GA, HI, KS, LA, ME, MI, MN, MO, MT, NV, NH, NY, OH, OR, TN, WV, WY.

**Parameters:**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `Submission-Id` | header | string | No | A pass through field from the request header containing a client-specified identifier to tie back to client data and systems. If the client does not define this value, an auto-generated field is used. |

**Request body** (`application/json`, required):

Schema: [`DriverRecordRequest`](/schemas.md#driverrecordrequest)

```json
{
  "person": {
    "firstName": "Jenny",
    "lastName": "Everywhere",
    "dateOfBirth": "11/10/1962",
    "licenseNumber": "510395035146",
    "licenseState": "TX"
  }
}
```

**Responses:**

- `200` — Success — schema: [`DriverRecordResponse`](/schemas.md#driverrecordresponse)

```json
{
  "requestId": "1fb4c776-bb61-4c37-9240-4c40dec7a8a8",
  "submissionId": "1fb4c776-bb61-4c37-9240-4c40dec7a8a8",
  "status": "Minor Violations Found - Developer Data",
  "licenseSearchStatus": "Supplied",
  "minorCount": 2,
  "minorLatest": "12/15/2023",
  "majorCount": 0,
  "majorLatest": null,
  "accidentCount": 0,
  "accidentLatest": null,
  "duiCount": 0,
  "duiLatest": null,
  "ratingFactor": {
    "preferred": 2.3,
    "standard": 1.48,
    "nonStandard": 1.44,
    "fullSpectrum": 1.29
  }
}
```
- `400` — Bad Request (see [Standard Error Responses](#standard-error-responses))
- `401` — Unauthenticated: authentication is missing or invalid (see [Standard Error Responses](#standard-error-responses))
- `403` — Forbidden: authenticated but not permitted (see [Standard Error Responses](#standard-error-responses))
- `404` — Not Found (see [Standard Error Responses](#standard-error-responses))
- `405` — Method Not Allowed (see [Standard Error Responses](#standard-error-responses))
- `415` — Unsupported Media Type (see [Standard Error Responses](#standard-error-responses))
- `500` — Internal Server Error (see [Standard Error Responses](#standard-error-responses))
- `502` — Bad Gateway: an upstream service returned an invalid response — schema: [`502`](/schemas.md#502)
- `503` — Service Unavailable: a required external resource is unavailable — schema: [`503`](/schemas.md#503)
- `504` — Gateway Timeout (see [Standard Error Responses](#standard-error-responses))

### Commercial Insurance

#### Commercial Prefill

Test service with our [**Business Developer Data**](./business_developer_data.csv).
The developer data is synthetically generated and contains no PII. Requests made with developer
data are not charged to your account.

##### POST `/services/smb/v1/search` — Prefill information about a business.

Using only a business name and address, the Fenris Digital Business Insurance Prefill API locates and
returns extensive business details. This API leverages the Fenris best-in-class match rates to return a
robust set of data fields in a matter of seconds.

Our client's tell us that if they are the first to quote a business, they will have greater than 60% chance
of closing that lead. Business Insurance Prefill provides crucial time-saving results for agents and brokers
who are trying to gather applicant information and for underwriters who are key in the quote/close policy
phase.

## Business Search Details
The Commercial Insurance Prefill service works by matching a request including one or more business names,
and one or more business addresses to several data repositories.

When a request is received, the provided business name(s) are cleansed by removing common business terms
that are often swapped or abbreviated (e.g., Ltd, LLC, Inc.), and the address(es) are standardized to USPS
form using the Fenris address standardization service.

The cleansed names and addresses are then used to search the Fenris Commercial Reference Data.
This search attempts to find the business at the location(s) entered using fuzzy matching on the name(s).

If no match is found for the name _and_ address, the search is expanded by looking across the state for
businesses that match the input name (Note: many businesses have multiple names, and this is reflected in
the reference data that is searched).

If no match is found in the commercial reference data with either approach, then the same names and
addresses are used to search the Fenris consumer reference data.

While the Fenris reference data is being searched, the service also queries the Secretary of State data for
the state in the address field of the request. This search is based only on the business name and
the input state.

Every response carries a `financialHealth` object with the failure and delinquency risk scores of the
matched commercial record, using the same values as the financial information service. When several
candidates share one parent company, the scores are those of the first candidate. When no single
commercial record is matched, it holds the not-found values (`delinquencyPercentile` 997).

Once the searches are complete, the service aggregates all of the matched data from the sources and returns
it. There are three fields in the return that provide information about the results of the searches. They
are [`status`](#smb-status), [`matchDescription`](#smb-match-logic), and
[`addressDescription`](#smb-address-description)`.

**Parameters:**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `fenris-match-logic` | header | string | No |  |
| `Submission-Id` | header | string | No | A pass through field from the request header containing a client-specified identifier to tie back to client data and systems. If the client does not define this value, an auto-generated field is used. |

**Request body** (`application/json`, required):

Schema: [`BusinessRequest`](/schemas.md#businessrequest)

```json
{
  "names": [
    "Cherry on Top Cupcake",
    "Cherry on Top Bakery",
    "Cherry Cupcake Midtown",
    "Cherry Cupcakes"
  ],
  "address": {
    "addressLine1": "32301 Juergensen ST NW",
    "city": "Washington",
    "state": "DC",
    "zipCode": "20007"
  }
}
```

**Responses:**

- `200` — Success — schema: [`BusinessResponse`](/schemas.md#businessresponse)

```json
{
  "requestId": "ca63610a-255c-4948-9574-974835cb1672",
  "submissionId": "ca63610a-255c-4948-9574-974835cb1672",
  "status": "Success",
  "matchDescription": "Default match logic",
  "addressDescription": "Address verified",
  "name": "Cherry on Top Cupcake",
  "address": {
    "addressLine1": "32301 Juergensen ST NW",
    "city": "Washington",
    "state": "DC",
    "zipCode": "20007",
    "addressType": "Street Address"
  },
  "phone": "8002236862",
  "country": "United States",
  "headquarters": true,
  "employees": "1-20",
  "estimatedEmployees": 15,
  "estimatedPayroll": 1200000,
  "revenue": "$1 - 9.99 Million",
  "estimatedRevenue": 2556000,
  "operatingHours": "",
  "areaSquareMeters": 150,
  "parent": {
    "linkedInUrl": "https://www.linkedin.com/company/cherry-on-top-cupcake",
    "domain": "cherryontopcupcake.com",
    "website": "http://www.cherryontopcupcake.com",
    "alternateDomains": [],
    "alternateNames": [
      "Cherry on Top Cupcake",
      "Cherry on Top Bakery",
      "Cherry Cupcake Midtown",
      "Cherry Cupcakes"
    ],
    "numberOfContacts": 80,
    "primaryIndustry": "retail bakeries",
    "primaryNAICSCode": "311811",
    "otherNAICSCodes": [],
    "primarySICCode": "54610000",
    "otherSICCodes": [],
    "employees": "101-500",
    "estimatedEmployees": 120,
    "revenue": "$10 - 49.99 Million",
    "estimatedRevenue": 23000000,
    "yearEstablished": "2009",
    "entityType": "LLC",
    "normalizedIndustry": "Food and Beverages",
    "numberOfLocations": 9,
    "estimatedPayroll": 1700000
  },
  "financialHealth": {
    "failRate": 5,
    "failLevel": 2,
    "failReasons": [],
    "delinquencyScore": 420,
    "delinquencyClass": 4,
    "delinquencyPercentile": 30,
    "delinquencyReasons": [
      "Insufficient Information on or Lack of Non-Financial Accounts",
      "Number of Non-Financial Trades",
      "Years Company has Been in Business in Database",
      "Industry"
    ],
    "bankruptcy": "N"
  }
}
```
- `400` — Bad Request (see [Standard Error Responses](#standard-error-responses))
- `401` — Unauthenticated: authentication is missing or invalid (see [Standard Error Responses](#standard-error-responses))
- `403` — Forbidden: authenticated but not permitted (see [Standard Error Responses](#standard-error-responses))
- `404` — Not Found (see [Standard Error Responses](#standard-error-responses))
- `405` — Method Not Allowed (see [Standard Error Responses](#standard-error-responses))
- `415` — Unsupported Media Type (see [Standard Error Responses](#standard-error-responses))
- `500` — Internal Server Error (see [Standard Error Responses](#standard-error-responses))
- `502` — Bad Gateway: an upstream service returned an invalid response — schema: [`502`](/schemas.md#502)
- `503` — Service Unavailable: a required external resource is unavailable — schema: [`503`](/schemas.md#503)
- `504` — Gateway Timeout (see [Standard Error Responses](#standard-error-responses))

#### Commercial Prefill Financial Information

Test the Commercial Prefill Financial Information service with our [**Business Developer Data**](./business_developer_data.csv).
The developer data is synthetically generated and contains no PII. Requests made with developer
data are not charged to your account.

##### POST `/services/smb/v1/financial/search` — Retrieve information about the financial health of a business.

The Fenris Digital Business Financial Information API locates and returns details on the financial health
of the searched business, including scores estimating the businesses' risk of becoming severely delinquent
or filing for bankruptcy.

This API leverages the Fenris best-in-class match rates to return a robust set of data fields in a matter
of seconds.

**Parameters:**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `Submission-Id` | header | string | No | A pass through field from the request header containing a client-specified identifier to tie back to client data and systems. If the client does not define this value, an auto-generated field is used. |

**Request body** (`application/json`, required):

Schema: [`BusinessRequest`](/schemas.md#businessrequest)

```json
{
  "names": [
    "Cherry on Top Cupcake",
    "Cherry on Top Bakery",
    "Cherry Cupcake Midtown",
    "Cherry Cupcakes"
  ],
  "address": {
    "addressLine1": "32301 Juergensen ST NW",
    "city": "Washington",
    "state": "DC",
    "zipCode": "20007"
  }
}
```

**Responses:**

- `200` — Success — schema: [`CreditResponse`](/schemas.md#creditresponse)

```json
{
  "requestId": "7c344ebd-7f5e-4be9-864f-c9e478d71da9",
  "submissionId": "7c344ebd-7f5e-4be9-864f-c9e478d71da9",
  "status": "Success",
  "matchDescription": "Default match logic",
  "addressDescription": "Address verified",
  "name": "Cherry on Top Cupcake",
  "address": {
    "addressLine1": "32301 Juergensen ST NW",
    "city": "Washington",
    "state": "DC",
    "zipCode": "20007",
    "addressType": "Street Address"
  },
  "primaryNAICSCode": "311811",
  "otherNAICSCodes": [],
  "failRate": 5,
  "failLevel": 2,
  "failReasons": [],
  "creditScore": 420,
  "creditClass": 4,
  "creditPercentile": 30,
  "creditReasons": [
    "Insufficient Information on or Lack of Non-Financial Accounts",
    "Number of Non-Financial Trades",
    "Years Company has Been in Business in Database",
    "Industry"
  ],
  "bankruptcy": "N"
}
```
- `400` — Bad Request (see [Standard Error Responses](#standard-error-responses))
- `401` — Unauthenticated: authentication is missing or invalid (see [Standard Error Responses](#standard-error-responses))
- `403` — Forbidden: authenticated but not permitted (see [Standard Error Responses](#standard-error-responses))
- `404` — Not Found (see [Standard Error Responses](#standard-error-responses))
- `405` — Method Not Allowed (see [Standard Error Responses](#standard-error-responses))
- `415` — Unsupported Media Type (see [Standard Error Responses](#standard-error-responses))
- `500` — Internal Server Error (see [Standard Error Responses](#standard-error-responses))
- `502` — Bad Gateway: an upstream service returned an invalid response — schema: [`502`](/schemas.md#502)
- `503` — Service Unavailable: a required external resource is unavailable — schema: [`503`](/schemas.md#503)
- `504` — Gateway Timeout (see [Standard Error Responses](#standard-error-responses))

### Property Insurance

#### Property - Assessment Details

Test the Property - Assessment Details service with our [**Personal Developer Data**](./personal_developer_data.csv).
The developer data is synthetically generated and contains no PII. Requests made with developer
data are not charged to your account.

##### POST `/services/propertydetails/v1/search` — Search for details about a property

The Fenris Digital Property - Assessment Details API quickly and accurately provides a summary of
reported information on building characteristics, valuation, and mortgages. Searches can be performed using either a street address
or latitude/longitude coordinates.

**Parameters:**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `Submission-Id` | header | string | No | A pass through field from the request header containing a client-specified identifier to tie back to client data and systems. If the client does not define this value, an auto-generated field is used. |

**Request body** (`application/json`, required):

Schema: [`PropertyDetailsRequest`](/schemas.md#propertydetailsrequest)

```json
{
  "addressLine1": "18595 Old Aldrin Highway",
  "city": "Highlands Ranch",
  "state": "CO",
  "zipCode": "80126"
}
```

**Responses:**

- `200` — Success — schema: [`PropertyDetailsResponse`](/schemas.md#propertydetailsresponse)

```json
{
  "status": "SUCCESS",
  "matchDescription": "Artificial match",
  "matchDescriptionExtra": "Matched to address",
  "address": {
    "addressLine1": "18595 OLD ALDRIN HIGHWAY",
    "city": "HIGHLANDS RANCH",
    "state": "CO",
    "zipCode": "80126",
    "description": "Artificial address matched"
  },
  "document": {
    "buildingCharacteristics": {
      "address": null,
      "useType": "Single Family Residential",
      "airConditioning": "Central",
      "basement": "Unfinished Basement",
      "totalArea": 2345,
      "buildingClass": null,
      "buildingCondition": "Good",
      "buildingQuality": "C",
      "garageType": "Garage",
      "garageNumCars": 0,
      "lotSize": 7536,
      "bathrooms": 3,
      "partialBathrooms": 1,
      "bedrooms": 4,
      "totalRooms": 4,
      "stories": 0,
      "pool": null,
      "roofType": "Gable",
      "roofCovering": "Composition Shingle",
      "yearBuilt": 1996,
      "heatingType": "Central",
      "heatingFuelType": null,
      "construction": "Frame",
      "units": 1,
      "ownerOccupied": "Owner-occupied property (SFR/Condo)",
      "ownerName": "MURDOCK, KYLE & SHARON",
      "buildings": 0,
      "exteriorWall": null,
      "foundation": null,
      "architecturalStyle": null
    },
    "valuation": {
      "apn": "12354678",
      "marketValueMin": 558909,
      "marketValueMax": 657562,
      "landValue": 6920,
      "improvementValue": 29650,
      "assessmentYear": 2020,
      "assessedValue": 36570,
      "assessedMarketValue": 511457,
      "lastSalePrice": 0,
      "lastSaleDate": "2019-08-30"
    },
    "mortgage": {
      "loanToValue": 57.0058,
      "balance": 351113,
      "totalLienBalance": 351113,
      "loanAmount": 365400,
      "lender": "THE MORTGAGE CO",
      "loanType": "New Conventional",
      "titleCompany": "NONE AVAILABLE"
    }
  },
  "requestId": "08b5ab2d-4565-4fb7-960a-c8be48902cf8",
  "submissionId": "08b5ab2d-4565-4fb7-960a-c8be48902cf8"
}
```
- `400` — Bad Request (see [Standard Error Responses](#standard-error-responses))
- `401` — Unauthenticated: authentication is missing or invalid (see [Standard Error Responses](#standard-error-responses))
- `403` — Forbidden: authenticated but not permitted (see [Standard Error Responses](#standard-error-responses))
- `404` — Not Found (see [Standard Error Responses](#standard-error-responses))
- `405` — Method Not Allowed (see [Standard Error Responses](#standard-error-responses))
- `415` — Unsupported Media Type (see [Standard Error Responses](#standard-error-responses))
- `500` — Internal Server Error (see [Standard Error Responses](#standard-error-responses))
- `502` — Bad Gateway: an upstream service returned an invalid response — schema: [`502`](/schemas.md#502)
- `503` — Service Unavailable: a required external resource is unavailable — schema: [`503`](/schemas.md#503)
- `504` — Gateway Timeout (see [Standard Error Responses](#standard-error-responses))

#### Property - Hazards, Perils, Crime

Test the Property - Hazards, Perils, Crime service with our
[**Personal Developer Data**](./personal_developer_data.csv). Responses are real property risk data
relocated to the developer addresses, with nearby facility details obscured. Requests made with developer
data are not charged to your account.

##### POST `/services/property/v2/risks/search` — Access hazard, peril, and crime risk data for a property

Returns geographic risk data for a property. Searches can be performed using either a street address or latitude/longitude coordinates.

**Parameters:**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `Submission-Id` | header | string | No | A pass through field from the request header containing a client-specified identifier to tie back to client data and systems. If the client does not define this value, an auto-generated field is used. |

**Request body** (`application/json`, required):

Schema: [`PropertyRequest`](/schemas.md#propertyrequest)

```json
{
  "addressLine1": "7365 Vrain St",
  "city": "Westminster",
  "state": "CO",
  "zipCode": "80030"
}
```

**Responses:**

- `200` — OK — schema: [`RisksV2Response`](/schemas.md#risksv2response)

```json
{
  "requestId": "786efa47-5d47-479a-bc12-b0c26e7e3047",
  "submissionId": "786efa47-5d47-479a-bc12-b0c26e7e3047",
  "status": "SUCCESS",
  "matchDescription": "Developer data match rooftop location",
  "location": {
    "address": {
      "address": "7365 Vrain St",
      "city": "Westminster",
      "state": "CO",
      "zipCode": "80030"
    },
    "googleMapsUrl": "https://www.google.com/maps/search/?api=1&query=39.830641,-105.048596",
    "coordinates": {
      "latitude": 39.830641,
      "longitude": -105.048596
    },
    "elevationFeet": 5303.2,
    "downslopeAspect": {
      "bearingDegrees": 108.9,
      "direction": "ESE"
    },
    "slope": {
      "angleDegrees": 1.2,
      "gradePercent": 2.1
    },
    "topographicPosition": {
      "landform": "lower_slope",
      "relativeElevationFeet": -7.3
    }
  },
  "fireRisk": {
    "fireProtection": {
      "quality": "Excellent",
      "aaisRating": "Protected 1",
      "fireStations": [
        {
          "address": {
            "address": "3948 Fake St",
            "city": "Westminster",
            "state": "CO",
            "zipCode": "80030"
          },
          "coordinates": {
            "latitude": 39.829,
            "longitude": -105.04
          },
          "distanceMiles": 0.5,
          "driving": {
            "distanceMiles": 0.8,
            "durationSeconds": 168
          },
          "name": "Westminster Fire Department Station 1",
          "volunteer": false
        },
        {
          "address": {
            "address": "6845 Not Real Ave",
            "city": "Arvada",
            "state": "CO",
            "zipCode": "80003"
          },
          "coordinates": {
            "latitude": 39.821,
            "longitude": -105.073
          },
          "distanceMiles": 1.4,
          "driving": {
            "distanceMiles": 2.2,
            "durationSeconds": 332
          },
          "name": "Arvada Fire Protection District Station 4",
          "volunteer": false
        },
        {
          "address": {
            "address": "3365 Imaginary Blvd",
            "city": "Denver",
            "state": "CO",
            "zipCode": "80221"
          },
          "coordinates": {
            "latitude": 39.815,
            "longitude": -105.031
          },
          "distanceMiles": 1.2,
          "driving": {
            "distanceMiles": 2.1,
            "durationSeconds": 335
          },
          "name": "Adams County Fire Rescue Station 12",
          "volunteer": false
        }
      ],
      "hydrants": [
        {
          "count": 1,
          "radiusMiles": 0.05
        },
        {
          "count": 8,
          "radiusMiles": 0.09
        },
        {
          "count": 23,
          "radiusMiles": 0.19
        }
      ]
    },
    "structureFire": {
      "frequency": {
        "annualizedFrequency": 0.49,
        "expectedFiresPer10kHouseholds": 8.98,
        "national": {
          "rating": "Moderate",
          "percentile": 55
        },
        "state": {
          "rating": "High",
          "percentile": 69
        }
      },
      "overall": {
        "fireLossIndexPer10kHomes": 0.4,
        "national": {
          "rating": "Moderate",
          "percentile": 38
        },
        "state": {
          "rating": "Moderate",
          "percentile": 52
        }
      },
      "severity": {
        "expectedDamageRatio": 0.0443,
        "national": {
          "rating": "Very Low",
          "percentile": 8
        },
        "state": {
          "rating": "Very Low",
          "percentile": 8
        }
      }
    }
  },
  "medicalServices": {
    "quality": "Very Good",
    "ambulanceServices": [
      {
        "address": {
          "address": "6100 Fake St",
          "city": "Arvada",
          "state": "CO",
          "zipCode": "80002"
        },
        "coordinates": {
          "latitude": 39.794,
          "longitude": -105.065
        },
        "distanceMiles": 2.1,
        "name": "Rural - Metro of Colorado Ambulance"
      },
      {
        "address": {
          "address": "6100 Not Real Ave",
          "city": "Denver",
          "state": "CO",
          "zipCode": "80002"
        },
        "coordinates": {
          "latitude": 39.794,
          "longitude": -105.065
        },
        "distanceMiles": 2.1,
        "name": "American Medical Response"
      },
      {
        "address": {
          "address": "10655 Imaginary Blvd",
          "city": "Northglenn",
          "state": "CO",
          "zipCode": "80233"
        },
        "coordinates": {
          "latitude": 39.89,
          "longitude": -104.978
        },
        "distanceMiles": 4.9,
        "name": "HCA HealthONE AirLife EMS Northglenn"
      }
    ],
    "hospitalsAndMedicalCenters": [
      {
        "address": {
          "address": "9191 Fake St",
          "city": "Thornton",
          "state": "CO",
          "zipCode": "80229"
        },
        "coordinates": {
          "latitude": 39.863,
          "longitude": -104.985
        },
        "distanceMiles": 3.8,
        "name": "North Suburban Medical Center"
      },
      {
        "address": {
          "address": "3455 Not Real Ave",
          "city": "Wheat Ridge",
          "state": "CO",
          "zipCode": "80033"
        },
        "coordinates": {
          "latitude": 39.766,
          "longitude": -105.089
        },
        "distanceMiles": 4.1,
        "name": "Children's Hospital Colorado Outpatient and Urgent Care, Wheat Ridge"
      },
      {
        "address": {
          "address": "3400 Imaginary Blvd",
          "city": "Wheat Ridge",
          "state": "CO",
          "zipCode": "80033"
        },
        "coordinates": {
          "latitude": 39.765,
          "longitude": -105.088
        },
        "distanceMiles": 4.1,
        "name": "West Pines Behavioral Health Care"
      }
    ],
    "urgentCareCenters": [
      {
        "address": {
          "address": "5044 Fake St",
          "city": "Westminster",
          "state": "CO",
          "zipCode": "80031"
        },
        "coordinates": {
          "latitude": 39.862,
          "longitude": -105.052
        },
        "distanceMiles": 1.7,
        "name": "Rocky Mountain Urgent Care - Westminster"
      },
      {
        "address": {
          "address": "7450 Not Real Ave",
          "city": "Arvada",
          "state": "CO",
          "zipCode": "80002"
        },
        "coordinates": {
          "latitude": 39.79,
          "longitude": -105.08
        },
        "distanceMiles": 2.7,
        "name": "Nextcare Urgent Care - Arvada"
      },
      {
        "address": {
          "address": "10170 Imaginary Blvd",
          "city": "Westminster",
          "state": "CO",
          "zipCode": "80021"
        },
        "coordinates": {
          "latitude": 39.881,
          "longitude": -105.074
        },
        "distanceMiles": 3,
        "name": "Northwest Regional Ambulatory Surgery Center"
      }
    ]
  },
  "naturalRisks": {
    "naturalDisasterResilience": {
      "quality": "Fair",
      "nationalPercentile": 36.01
    },
    "avalanche": {
      "risk": {
        "rating": "Very Low"
      },
      "expectedAnnualLoss": {
        "rating": "Very Low",
        "historicLossRatio": "Very Low"
      }
    },
    "coastalFlooding": {
      "risk": {
        "rating": "Very Low"
      },
      "expectedAnnualLoss": {
        "rating": "Very Low",
        "historicLossRatio": "Very Low"
      },
      "details": {
        "distanceToCoastMiles": 823.62,
        "nearestCoastName": "Pacific",
        "stormSurge": {
          "categoryBreakdown": {
            "category1": {
              "inundated": false,
              "leveed": false
            },
            "category2": {
              "inundated": false,
              "leveed": false
            },
            "category3": {
              "inundated": false,
              "leveed": false
            },
            "category4": {
              "inundated": false,
              "leveed": false
            },
            "category5": {
              "inundated": false,
              "leveed": false
            }
          }
        },
        "surgeableWaterDistanceMiles": 750.48
      }
    },
    "coldWave": {
      "risk": {
        "rating": "High",
        "nationalPercentile": 86.77
      },
      "annualizedFrequency": 1.26,
      "expectedAnnualLoss": {
        "rating": "High",
        "historicLossRatio": "Very Low",
        "nationalPercentile": 50.13
      }
    },
    "derecho": {
      "risk": {
        "rating": "Low"
      }
    },
    "earthquake": {
      "risk": {
        "rating": "Low",
        "nationalPercentile": 50.63
      },
      "annualizedFrequency": 0.0005,
      "expectedAnnualLoss": {
        "rating": "Low",
        "historicLossRatio": "Very Low",
        "nationalPercentile": 36.4
      },
      "details": {
        "groundShaking": {
          "hazardCurve": [
            {
              "mmi": 4.81,
              "mmiHigh": 4.95,
              "mmiLow": 4.65,
              "mmiRomanRange": "V",
              "peakGroundAccelerationG": 0.055,
              "probabilityOfExceedance": "10% in 50 years",
              "returnPeriodYears": 475,
              "richterMagnitude": 4.5
            },
            {
              "mmi": 5.51,
              "mmiHigh": 5.6,
              "mmiLow": 5.41,
              "mmiRomanRange": "V-VI",
              "peakGroundAccelerationG": 0.085,
              "probabilityOfExceedance": "5% in 50 years",
              "returnPeriodYears": 975,
              "richterMagnitude": 5
            },
            {
              "mmi": 6.47,
              "mmiHigh": 6.52,
              "mmiLow": 6.42,
              "mmiRomanRange": "VI-VII",
              "peakGroundAccelerationG": 0.155,
              "probabilityOfExceedance": "2% in 50 years",
              "returnPeriodYears": 2475,
              "richterMagnitude": 5.5
            }
          ],
          "mmi": 6.47,
          "mmiRoman": "VI",
          "richterMagnitude": 5.5
        },
        "liquefactionZone": {
          "rating": "Very Low"
        }
      }
    },
    "femaFlood": {
      "risk": {
        "rating": "Low"
      },
      "details": {
        "distanceToNearestFloodZone": {
          "distanceMiles": 0.01,
          "floodZone": "A",
          "specialFloodHazardArea": true
        },
        "femaFloodClaims": {
          "costExposure": {
            "rating": "Very Low",
            "ratio": 0
          },
          "frequencyExposure": {
            "rating": "Very Low",
            "ratio": 0
          }
        }
      }
    },
    "frozenPipes": {
      "risk": {
        "rating": "Moderate",
        "nationalPercentile": 33.65
      }
    },
    "hail": {
      "risk": {
        "rating": "Very High",
        "nationalPercentile": 99.03
      },
      "annualizedFrequency": 8.12,
      "expectedAnnualLoss": {
        "rating": "Very High",
        "historicLossRatio": "Very Low",
        "nationalPercentile": 96.82
      }
    },
    "heatwave": {
      "risk": {
        "rating": "Low",
        "nationalPercentile": 28.56
      },
      "annualizedFrequency": 1,
      "expectedAnnualLoss": {
        "rating": "Low",
        "historicLossRatio": "Very Low",
        "nationalPercentile": 50.51
      }
    },
    "hurricane": {
      "risk": {
        "rating": "Very Low"
      },
      "expectedAnnualLoss": {
        "rating": "Very Low",
        "historicLossRatio": "Very Low"
      }
    },
    "iceDam": {
      "risk": {
        "rating": "Very Low"
      },
      "details": {
        "averageGustSpeedMph": 50,
        "averageMinimumTemperatureFahrenheit": 5,
        "iceLoadInches": 0.25
      }
    },
    "iceStorm": {
      "risk": {
        "rating": "Very Low",
        "nationalPercentile": 24.47
      },
      "annualizedFrequency": 0.01,
      "expectedAnnualLoss": {
        "rating": "Very Low",
        "historicLossRatio": "Very Low",
        "nationalPercentile": 30.29
      }
    },
    "landslide": {
      "risk": {
        "rating": "Very Low",
        "nationalPercentile": 34.89
      },
      "annualizedFrequency": 0.0001,
      "expectedAnnualLoss": {
        "rating": "Very Low",
        "historicLossRatio": "Very Low",
        "nationalPercentile": 63.59
      }
    },
    "lightning": {
      "risk": {
        "rating": "High",
        "nationalPercentile": 86.46
      },
      "annualizedFrequency": 53.08,
      "expectedAnnualLoss": {
        "rating": "High",
        "historicLossRatio": "Very Low",
        "nationalPercentile": 26.8
      }
    },
    "mold": {
      "risk": {
        "rating": "Very Low",
        "nationalPercentile": 9.25
      }
    },
    "radon": {
      "risk": {
        "rating": "High",
        "nationalPercentile": 100
      }
    },
    "riverineFlooding": {
      "risk": {
        "rating": "Low",
        "nationalPercentile": 22.49
      },
      "annualizedFrequency": 0.64,
      "expectedAnnualLoss": {
        "rating": "Low",
        "historicLossRatio": "Very Low",
        "nationalPercentile": 7.57
      },
      "details": {
        "floodDepth": {
          "hundredYearFloodFeet": 0,
          "tenYearFloodFeet": 0
        },
        "nearestDrainageProximity": {
          "distanceToDrainageMiles": 0.03,
          "heightAboveDrainageFeet": 5.4
        }
      }
    },
    "sinkhole": {
      "risk": {
        "rating": "Very Low"
      }
    },
    "snowLoad": {
      "risk": {
        "rating": "Very High"
      },
      "details": {
        "snowLoadPoundsPerSqft": 100
      }
    },
    "soil": {
      "details": {
        "dominantSoilDescription": "Very young, undeveloped soils. May be sandy or rocky, and often drains well.",
        "drainagePotential": "Low",
        "frostHeavingPotential": "Moderate",
        "runoffPotential": "Low",
        "siteSuitabilityHomeNoBasement": "Very limited",
        "siteSuitabilityHomeWithBasement": "Very limited",
        "siteSuitabilitySepticTank": "Very limited"
      }
    },
    "strongWind": {
      "risk": {
        "rating": "Moderate",
        "nationalPercentile": 68.5
      },
      "annualizedFrequency": 1.14,
      "expectedAnnualLoss": {
        "rating": "Moderate",
        "historicLossRatio": "Very Low",
        "nationalPercentile": 49.65
      }
    },
    "termiteInfestation": {
      "risk": {
        "rating": "Low"
      }
    },
    "tornado": {
      "risk": {
        "rating": "Moderate",
        "nationalPercentile": 65.63
      },
      "annualizedFrequency": 0.0008,
      "expectedAnnualLoss": {
        "rating": "Moderate",
        "historicLossRatio": "Very Low",
        "nationalPercentile": 63.11
      }
    },
    "tsunami": {
      "risk": {
        "rating": "Very Low"
      },
      "expectedAnnualLoss": {
        "rating": "Very Low",
        "historicLossRatio": "Very Low"
      }
    },
    "volcanicActivity": {
      "risk": {
        "rating": "Very Low",
        "nationalPercentile": 70.63
      },
      "annualizedFrequency": 0.0001,
      "expectedAnnualLoss": {
        "rating": "Very Low",
        "historicLossRatio": "Very Low",
        "nationalPercentile": 46.48
      }
    },
    "wildfire": {
      "risk": {
        "rating": "Very Low",
        "nationalPercentile": 46.94
      },
      "annualizedFrequency": 9e-06,
      "expectedAnnualLoss": {
        "rating": "Very Low",
        "historicLossRatio": "Very Low",
        "nationalPercentile": 51.59
      },
      "details": {
        "fuelLoading": {
          "description": "Urban",
          "fuelLoadingCategory": 0,
          "fuelTypeBreakdown": {
            "agriculturalPercent": 0,
            "brushPercent": 0,
            "chaparralPercent": 0,
            "dormantBrushHardwoodSlashPercent": 0,
            "hardwoodLitterOrOpenPineWithGrassPercent": 0,
            "heavyLoggingSlashPercent": 0,
            "lightLoggingSlashPercent": 0,
            "mediumLoggingSlashPercent": 0,
            "nonBurnablePercent": 0,
            "shortGrassPercent": 0,
            "southernRoughPercent": 0,
            "tallGrassPercent": 0,
            "timberLitterWithHeavyDeadPercent": 0,
            "timberLitterWithNormalDeadPercent": 0,
            "timberWithGrassUnderstoryPercent": 0,
            "urbanPercent": 100
          }
        },
        "fuelLoadingExpandedRangeHalfMile": {
          "description": "Urban",
          "fuelLoadingCategory": 0,
          "fuelTypeBreakdown": {
            "agriculturalPercent": 0,
            "brushPercent": 0,
            "chaparralPercent": 0,
            "dormantBrushHardwoodSlashPercent": 0,
            "hardwoodLitterOrOpenPineWithGrassPercent": 0,
            "heavyLoggingSlashPercent": 0,
            "lightLoggingSlashPercent": 0,
            "mediumLoggingSlashPercent": 0,
            "nonBurnablePercent": 0,
            "shortGrassPercent": 0,
            "southernRoughPercent": 0,
            "tallGrassPercent": 0,
            "timberLitterWithHeavyDeadPercent": 0,
            "timberLitterWithNormalDeadPercent": 0,
            "timberWithGrassUnderstoryPercent": 0,
            "urbanPercent": 100
          }
        },
        "fuelLoadingExpandedRangeOneMile": {
          "description": "Urban",
          "fuelLoadingCategory": 0,
          "fuelTypeBreakdown": {
            "agriculturalPercent": 0,
            "brushPercent": 0,
            "chaparralPercent": 0,
            "dormantBrushHardwoodSlashPercent": 0,
            "hardwoodLitterOrOpenPineWithGrassPercent": 0,
            "heavyLoggingSlashPercent": 0,
            "lightLoggingSlashPercent": 0,
            "mediumLoggingSlashPercent": 0,
            "nonBurnablePercent": 0,
            "shortGrassPercent": 0,
            "southernRoughPercent": 0,
            "tallGrassPercent": 0,
            "timberLitterWithHeavyDeadPercent": 0,
            "timberLitterWithNormalDeadPercent": 0,
            "timberWithGrassUnderstoryPercent": 0,
            "urbanPercent": 100
          }
        },
        "historicWildfirePerimetersIn": [],
        "katabaticWindRegion": {
          "description": "This location is in an area prone to severe downslope winds that may greatly impact wildfire behavior.",
          "name": "Central Rockies"
        }
      }
    },
    "winterWeather": {
      "risk": {
        "rating": "High",
        "nationalPercentile": 89.54
      },
      "annualizedFrequency": 13.74,
      "expectedAnnualLoss": {
        "rating": "High",
        "historicLossRatio": "Very Low",
        "nationalPercentile": 72.92
      }
    }
  },
  "manMadeRisks": {
    "airQuality": {
      "risk": {
        "rating": "Very High",
        "nationalPercentile": 85.5
      },
      "details": {
        "fineParticulate": "Low",
        "ozone": "Very High"
      }
    },
    "airports": [],
    "aviationNoise": {
      "risk": {
        "rating": "Very Low"
      },
      "details": {
        "dailyEquivalentSoundLevelDb": 0
      }
    },
    "combustibleExposure": {
      "crudeOilPipelines": [],
      "electricalTransmissionLines": [
        {
          "distanceMiles": 1.6,
          "owner": "Public Service Co of Colorado",
          "status": "NOT AVAILABLE",
          "type": "AC; OVERHEAD",
          "voltageKv": 69
        },
        {
          "distanceMiles": 1.8,
          "owner": "Public Service Co of Colorado",
          "status": "NOT AVAILABLE",
          "type": "AC; OVERHEAD",
          "voltageKv": 69
        },
        {
          "distanceMiles": 1.8,
          "owner": "Public Service Co of Colorado",
          "status": "NOT AVAILABLE",
          "type": "AC; OVERHEAD",
          "voltageKv": 115
        }
      ],
      "hglPipelines": [],
      "naturalGasPipelines": [],
      "powerPlants": [
        {
          "address": {
            "address": "14601 Fake St",
            "city": "Thornton",
            "state": "CO",
            "zipCode": "80023"
          },
          "allEnergySources": "Solar",
          "capacityMegawatts": 4.6,
          "coordinates": {
            "latitude": 39.885,
            "longitude": -104.982
          },
          "distanceMiles": 4.6,
          "name": "Amazon Denver DEN3",
          "primaryEnergySource": "Solar"
        }
      ]
    },
    "contaminationExposure": {
      "asbestosFacilities": [],
      "brownfields": [
        {
          "address": {
            "address": "4690 Fake St",
            "city": "Westminster",
            "state": "CO",
            "zipCode": "80030"
          },
          "coordinates": {
            "latitude": 39.835,
            "longitude": -105.047
          },
          "distanceMiles": 0.2,
          "name": "Pousky"
        },
        {
          "address": {
            "address": "101 Not Real Ave",
            "city": "Westminster",
            "state": "CO",
            "zipCode": "80030"
          },
          "coordinates": {
            "latitude": 39.822,
            "longitude": -105.052
          },
          "distanceMiles": 0.5,
          "name": "Pca1 Junkyard"
        },
        {
          "address": {
            "address": "3950 Imaginary Blvd",
            "city": "Westminster",
            "state": "CO",
            "zipCode": "80030"
          },
          "coordinates": {
            "latitude": 39.827,
            "longitude": -105.04
          },
          "distanceMiles": 0.5,
          "name": "Pca3 Park Shops"
        }
      ],
      "drugLabs": [
        {
          "address": {
            "address": "100 Fake St",
            "city": "Westminster",
            "state": "CO"
          },
          "coordinates": {
            "latitude": 39.83,
            "longitude": -105.04
          },
          "date": "2006-01-01",
          "distanceMiles": 0.6
        },
        {
          "address": {
            "address": "101 Not Real Ave",
            "city": "Westminster",
            "state": "CO"
          },
          "coordinates": {
            "latitude": 39.84,
            "longitude": -105.05
          },
          "date": "2007-01-01",
          "distanceMiles": 0.7
        },
        {
          "address": {
            "address": "102 Imaginary Blvd",
            "city": "Westminster",
            "state": "CO"
          },
          "coordinates": {
            "latitude": 39.84,
            "longitude": -105.04
          },
          "date": "2004-01-01",
          "distanceMiles": 0.7
        }
      ],
      "petroleumRefineries": [],
      "superfundSites": [
        {
          "address": {
            "address": "5201 Fake St",
            "city": "Arvada",
            "state": "CO",
            "zipCode": "80002"
          },
          "coordinates": {
            "latitude": 39.799,
            "longitude": -105.054
          },
          "distanceMiles": 1.7,
          "name": "Twins Inn"
        },
        {
          "address": {
            "address": "5500 Not Real Ave",
            "city": "Arvada",
            "state": "CO",
            "zipCode": "80002"
          },
          "coordinates": {
            "latitude": 39.797,
            "longitude": -105.059
          },
          "distanceMiles": 1.9,
          "name": "Arvada Treatment Center"
        },
        {
          "address": {
            "address": "6704 Imaginary Blvd",
            "city": "Arvada",
            "state": "CO",
            "zipCode": "80004"
          },
          "coordinates": {
            "latitude": 39.819,
            "longitude": -105.096
          },
          "distanceMiles": 2.6,
          "name": "Arvada Mercury Spill"
        }
      ],
      "toxicReleaseFacilities": [
        {
          "coordinates": {
            "latitude": 39.802,
            "longitude": -105.047
          },
          "distanceMiles": 1.5,
          "name": "Brenntag Arvada",
          "releases": {
            "air": false,
            "land": false,
            "water": false
          }
        },
        {
          "coordinates": {
            "latitude": 39.799,
            "longitude": -105.053
          },
          "distanceMiles": 1.7,
          "name": "Ready Mixed Concrete Plant 11",
          "releases": {
            "air": false,
            "land": false,
            "water": false
          }
        },
        {
          "coordinates": {
            "latitude": 39.798,
            "longitude": -105.059
          },
          "distanceMiles": 1.8,
          "name": "Smyrna Ready Mix Concrete LLC - Arvada Ready Mix",
          "releases": {
            "air": false,
            "land": false,
            "water": false
          }
        }
      ],
      "undergroundStorageTanks": [
        {
          "address": {
            "address": "7255 Fake St",
            "city": "Arvada",
            "state": "CO",
            "zipCode": "80003"
          },
          "coordinates": {
            "latitude": 39.829,
            "longitude": -105.053
          },
          "distanceMiles": 0.3,
          "leaking": true,
          "name": "Shoenberg Farms"
        },
        {
          "address": {
            "address": "7584 Not Real Ave",
            "city": "Westminster",
            "state": "CO",
            "zipCode": "80003"
          },
          "coordinates": {
            "latitude": 39.834,
            "longitude": -105.053
          },
          "distanceMiles": 0.3,
          "leaking": true,
          "name": "PDQ #812"
        },
        {
          "address": {
            "address": "7171 Imaginary Blvd",
            "city": "Arvada",
            "state": "CO",
            "zipCode": "80003"
          },
          "coordinates": {
            "latitude": 39.827,
            "longitude": -105.053
          },
          "distanceMiles": 0.3,
          "leaking": true,
          "name": "Shamrock 628"
        }
      ],
      "wasteFacilities": [
        {
          "active": true,
          "coordinates": {
            "latitude": 39.802,
            "longitude": -105.052
          },
          "distanceMiles": 1.5,
          "name": "LDK Enterprises, LLC",
          "type": "Demolition Landfill",
          "wasteTypesAccepted": "construction and demolition debris"
        }
      ]
    },
    "crime": {
      "risk": {
        "rating": "High",
        "nationalPercentile": 94.35
      },
      "details": {
        "lawEnforcementResponse": {
          "quality": "Very Good"
        },
        "lawEnforcementFacilities": [
          {
            "address": {
              "address": "9110 Fake St",
              "city": "Westminster",
              "state": "CO",
              "zipCode": "80031"
            },
            "coordinates": {
              "latitude": 39.862,
              "longitude": -105.049
            },
            "distanceMiles": 1.6,
            "name": "Westminster Police Department",
            "type": "Police Station"
          },
          {
            "address": {
              "address": "8110 Not Real Ave",
              "city": "Arvada",
              "state": "CO",
              "zipCode": "80003"
            },
            "coordinates": {
              "latitude": 39.844,
              "longitude": -105.078
            },
            "distanceMiles": 1.7,
            "name": "Arvada Police Department Lake Arbor Community Station",
            "type": "Police Station"
          },
          {
            "address": {
              "address": "2380 Imaginary Blvd",
              "city": "Federal Heights",
              "state": "CO",
              "zipCode": "80260"
            },
            "coordinates": {
              "latitude": 39.859,
              "longitude": -105.016
            },
            "distanceMiles": 2.3,
            "name": "Federal Heights Police Department",
            "type": "Police Station"
          }
        ],
        "aggravatedAssault": {
          "rating": "Moderate",
          "nationalPercentile": 83.04
        },
        "burglary": {
          "rating": "Moderate",
          "nationalPercentile": 85.67
        },
        "larceny": {
          "rating": "High",
          "nationalPercentile": 93.43
        },
        "motorVehicleTheft": {
          "rating": "Very High",
          "nationalPercentile": 98.84
        },
        "murder": {
          "rating": "Moderate",
          "nationalPercentile": 74.21
        },
        "personal": {
          "rating": "Moderate",
          "nationalPercentile": 83.31
        },
        "property": {
          "rating": "High",
          "nationalPercentile": 95.24
        },
        "rape": {
          "rating": "Moderate",
          "nationalPercentile": 87.48
        },
        "robbery": {
          "rating": "Moderate",
          "nationalPercentile": 81.72
        }
      }
    },
    "crimeExpandedRangeHalfMile": {
      "risk": {
        "rating": "Moderate",
        "nationalPercentile": 86.51
      },
      "details": {
        "aggravatedAssault": {
          "rating": "Low",
          "nationalPercentile": 65.37
        },
        "burglary": {
          "rating": "Moderate",
          "nationalPercentile": 76.34
        },
        "larceny": {
          "rating": "Moderate",
          "nationalPercentile": 86.4
        },
        "motorVehicleTheft": {
          "rating": "High",
          "nationalPercentile": 95.53
        },
        "murder": {
          "rating": "Low",
          "nationalPercentile": 65.46
        },
        "personal": {
          "rating": "Moderate",
          "nationalPercentile": 67.76
        },
        "property": {
          "rating": "Moderate",
          "nationalPercentile": 88.73
        },
        "rape": {
          "rating": "Moderate",
          "nationalPercentile": 75.32
        },
        "robbery": {
          "rating": "Moderate",
          "nationalPercentile": 73.54
        }
      }
    },
    "crimeExpandedRangeOneMile": {
      "risk": {
        "rating": "Moderate",
        "nationalPercentile": 87.18
      },
      "details": {
        "aggravatedAssault": {
          "rating": "Low",
          "nationalPercentile": 64.97
        },
        "burglary": {
          "rating": "Moderate",
          "nationalPercentile": 77.94
        },
        "larceny": {
          "rating": "Moderate",
          "nationalPercentile": 88
        },
        "motorVehicleTheft": {
          "rating": "High",
          "nationalPercentile": 94.9
        },
        "murder": {
          "rating": "Low",
          "nationalPercentile": 55.94
        },
        "personal": {
          "rating": "Low",
          "nationalPercentile": 66.69
        },
        "property": {
          "rating": "Moderate",
          "nationalPercentile": 89.48
        },
        "rape": {
          "rating": "Moderate",
          "nationalPercentile": 70.82
        },
        "robbery": {
          "rating": "Moderate",
          "nationalPercentile": 72.13
        }
      }
    },
    "dataCenters": [],
    "frackingEarthquake": {
      "risk": {
        "rating": "Very Low"
      }
    },
    "mineSubsidence": {
      "risk": {
        "rating": "Very Low"
      }
    },
    "oilTrainDerailment": {
      "risk": {
        "rating": "High"
      }
    },
    "railNoise": {
      "risk": {
        "rating": "Very Low"
      },
      "details": {
        "dailyEquivalentSoundLevelDb": 0
      }
    },
    "roadNoise": {
      "risk": {
        "rating": "Very Low"
      },
      "details": {
        "dailyEquivalentSoundLevelDb": 0
      }
    },
    "waterQuality": {
      "risk": {
        "rating": "Low",
        "nationalPercentile": 17.1
      },
      "details": {
        "groundwater": {
          "rating": "Low"
        },
        "groundwaterArsenic": {
          "rating": "Very Low"
        },
        "hardness": {
          "rating": "Low",
          "nationalPercentile": 46.9
        },
        "pfas": {
          "rating": "Very High",
          "nationalPercentile": 99.9
        },
        "surfaceWater": {
          "rating": "Low"
        },
        "tapWater": {
          "rating": "Low"
        }
      }
    }
  },
  "damagingEvents": []
}
```
- `400` — Bad Request (see [Standard Error Responses](#standard-error-responses))
- `401` — Unauthenticated: authentication is missing or invalid (see [Standard Error Responses](#standard-error-responses))
- `403` — Forbidden: authenticated but not permitted (see [Standard Error Responses](#standard-error-responses))
- `404` — Not Found (see [Standard Error Responses](#standard-error-responses))
- `405` — Method Not Allowed (see [Standard Error Responses](#standard-error-responses))
- `415` — Unsupported Media Type (see [Standard Error Responses](#standard-error-responses))
- `500` — Internal Server Error (see [Standard Error Responses](#standard-error-responses))
- `502` — Bad Gateway: an upstream service returned an invalid response — schema: [`502`](/schemas.md#502)
- `503` — Service Unavailable: a required external resource is unavailable — schema: [`503`](/schemas.md#503)
- `504` — Gateway Timeout (see [Standard Error Responses](#standard-error-responses))

#### Property - Replacement Cost

Test the Property - Replacement Cost service with our [**Personal Developer Data**](./personal_developer_data.csv).
The developer data is synthetically generated and contains no PII. Requests made with developer
data are not charged to your account.

##### POST `/services/property/v1/replacementcost/search` — Access details about a property's replacement cost.

The Fenris Digital Property - Replacement Cost API quickly and accurately provides a
summary of replacement cost information on a given building.
Searches can be performed using either a street address or latitude/longitude coordinates.

**Parameters:**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `Submission-Id` | header | string | No | A pass through field from the request header containing a client-specified identifier to tie back to client data and systems. If the client does not define this value, an auto-generated field is used. |

**Request body** (`application/json`, required):

Schema: [`PropertyRequest`](/schemas.md#propertyrequest)

```json
{
  "addressLine1": "18595 Old Aldrin Highway",
  "city": "Highlands Ranch",
  "state": "CO",
  "zipCode": "80126"
}
```

**Responses:**

- `200` — Success — schema: [`ReplacementCost`](/schemas.md#replacementcost)

```json
{
  "status": "SUCCESS",
  "requestId": "c203665b-de49-412e-a8ea-9b8084ef1dae",
  "submissionId": "c203665b-de49-412e-a8ea-9b8084ef1dae",
  "matchDescription": "Default match logic",
  "architecturalStyle": "California Ranch",
  "constructionQuality": "above average / upgraded",
  "physicalShape": "rectangular",
  "constructionType": "framing, wood",
  "exterior": "vinyl siding",
  "roofCovering": "metal other than standing seam",
  "roofConfiguration": "hip",
  "foundationType": "poured concrete",
  "numStories": 1,
  "siteSlope": null,
  "locale": "suburban",
  "yearBuilt": "1964",
  "livingAreaSqFt": 888,
  "costBreakdown": {
    "architectFeesAndPermits": 17000,
    "houseMaterialsAndLabor": 150000,
    "overhead": 21000,
    "profit": 21000,
    "costWithoutDebrisRemoval": 209000,
    "debrisRemoval": 10000,
    "costIncludingDebrisRemoval": 219000
  },
  "costDetails": null,
  "replacementCost": 209000,
  "locationType": "Residential"
}
```
- `400` — Bad Request (see [Standard Error Responses](#standard-error-responses))
- `401` — Unauthenticated: authentication is missing or invalid (see [Standard Error Responses](#standard-error-responses))
- `403` — Forbidden: authenticated but not permitted (see [Standard Error Responses](#standard-error-responses))
- `404` — Not Found (see [Standard Error Responses](#standard-error-responses))
- `405` — Method Not Allowed (see [Standard Error Responses](#standard-error-responses))
- `415` — Unsupported Media Type (see [Standard Error Responses](#standard-error-responses))
- `500` — Internal Server Error (see [Standard Error Responses](#standard-error-responses))
- `502` — Bad Gateway: an upstream service returned an invalid response — schema: [`502`](/schemas.md#502)
- `503` — Service Unavailable: a required external resource is unavailable — schema: [`503`](/schemas.md#503)
- `504` — Gateway Timeout (see [Standard Error Responses](#standard-error-responses))

#### Property - Roof Replacement Cost

Test the Property - Roof Replacement Cost service with our [**Personal Developer Data**](./personal_developer_data.csv).
The developer data is synthetically generated and contains no PII. Requests made with developer
data are not charged to your account.

##### POST `/services/property/v1/replacementcost/roof/search` — Access details about a property's roof replacement cost.

The Fenris Digital Property - Roof Replacement Cost API provides an estimate of the cost
to replace a property's roof, including cost range and roof area.
Searches can be performed using either a street address or latitude/longitude coordinates.

**Parameters:**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `Submission-Id` | header | string | No | A pass through field from the request header containing a client-specified identifier to tie back to client data and systems. If the client does not define this value, an auto-generated field is used. |

**Request body** (`application/json`, required):

Schema: [`PropertyRequest`](/schemas.md#propertyrequest)

```json
{
  "addressLine1": "7392 Zachary St",
  "city": "Wauwatosa",
  "state": "WI",
  "zipCode": "53213"
}
```

**Responses:**

- `200` — Success — schema: [`RoofReplacementCost`](/schemas.md#roofreplacementcost)

```json
{
  "status": "SUCCESS",
  "requestId": "c203665b-de49-412e-a8ea-9b8084ef1dae",
  "submissionId": "c203665b-de49-412e-a8ea-9b8084ef1dae",
  "matchDescription": "Rooftop location",
  "address": {
    "addressLine1": "7392 Zachary St",
    "city": "Wauwatosa",
    "state": "WI",
    "zipCode": "53213"
  },
  "costRange": {
    "min": 8160,
    "max": 17340
  },
  "roofMaterial": "shingle",
  "defaultMaterialUsed": false,
  "roofAreaSquareFeet": 2040.05
}
```
- `400` — Bad Request (see [Standard Error Responses](#standard-error-responses))
- `401` — Unauthenticated: authentication is missing or invalid (see [Standard Error Responses](#standard-error-responses))
- `403` — Forbidden: authenticated but not permitted (see [Standard Error Responses](#standard-error-responses))
- `404` — Not Found (see [Standard Error Responses](#standard-error-responses))
- `405` — Method Not Allowed (see [Standard Error Responses](#standard-error-responses))
- `415` — Unsupported Media Type (see [Standard Error Responses](#standard-error-responses))
- `500` — Internal Server Error (see [Standard Error Responses](#standard-error-responses))
- `502` — Bad Gateway: an upstream service returned an invalid response — schema: [`502`](/schemas.md#502)
- `503` — Service Unavailable: a required external resource is unavailable — schema: [`503`](/schemas.md#503)
- `504` — Gateway Timeout (see [Standard Error Responses](#standard-error-responses))

### Customer Insights

#### Customer 360

Test the Customer 360 service with our [**Personal Developer Data**](./personal_developer_data.csv).
The developer data is synthetically generated and contains no PII. Requests made with developer
data are not charged to your account.

##### POST `/services/lifeprefill/v1/search` — Access general information about an individual or household.

The Customer 360 API quickly and accurately populates household information into
application forms, making the insurance application process seamless.

The Customer 360 service returns information that can also be used to advise an agent or system about the
financial and family status of the applicant. This includes information such as the presence of children
and mortgage data. This information can be used to make sure that the applicant has the coverage that
fits their needs.

**Parameters:**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `Submission-Id` | header | string | No | A pass through field from the request header containing a client-specified identifier to tie back to client data and systems. If the client does not define this value, an auto-generated field is used. |

**Request body** (`application/json`, required):

Schema: [`LifePrefillRequest`](/schemas.md#lifeprefillrequest)

```json
{
  "person": {
    "firstName": "Kyle",
    "lastName": "Murdock",
    "dateOfBirth": "05/20/1970"
  },
  "address": {
    "addressLine1": "18595 Old Aldrin Highway",
    "city": "Highlands Ranch",
    "state": "CO",
    "zipCode": "80126"
  }
}
```

**Responses:**

- `200` — Success — schema: [`LifePrefillResponse`](/schemas.md#lifeprefillresponse)

```json
{
  "requestId": "2eb08998-e8f9-45ec-985a-1d28130ce173",
  "submissionId": "2eb08998-e8f9-45ec-985a-1d28130ce173",
  "status": "Success",
  "matchDescription": "Artificial match",
  "addressDescription": "Artificial address matched",
  "primary": {
    "firstName": "KYLE",
    "lastName": "MURDOCK",
    "dateOfBirth": "05/20/1970",
    "age": 53,
    "gender": "Male",
    "maritalStatus": "Married",
    "memberCode": "Primary Household Member",
    "address": {
      "addressLine1": "18595 OLD ALDRIN HIGHWAY",
      "city": "HIGHLANDS RANCH",
      "state": "CO",
      "zipCode": "80126",
      "addressType": "Street Address"
    },
    "homeOwnerStatus": "Definite Owner",
    "lengthOfResidence": "6-10 yrs",
    "occupation": "Professional/Technical"
  },
  "householdInfo": {
    "numberOfGenerations": 2,
    "babyBoomer": false,
    "dualIncomeNoKids": false,
    "genX": true,
    "millennial": false,
    "numberOfAdults": 3,
    "presenceChildren": true,
    "children": {
      "totalChildren": 2,
      "children0to2": 0,
      "children3to5": 0,
      "children6to10": 0,
      "children11to15": 1,
      "children16to17": 1,
      "childrenUnknownAge": 0
    },
    "hobbies": [
      "Baking",
      "Scrapbooking",
      "Woodworking"
    ]
  },
  "financialInfo": {
    "income": "$150,000 - $174,999",
    "netWorth": "$250,000 - $499,999",
    "wealthResources": "$25,000 - $49,999",
    "investmentResources": "Less than $4,999",
    "liquidResources": "$15,000 - $19,999",
    "shortTermLiability": "$5,000 - $9,999",
    "mortgageData": {
      "firstMortgageAmount": 500000,
      "secondMortgageAmount": null,
      "originalMortgageAmount": 500000,
      "homeEquityLoan": null,
      "interestRate": "3.80%",
      "interestRateType": "Fixed Rate Loan",
      "loanType": "Conventional",
      "loanDate": "04/20/2013",
      "refiIndicator": false
    },
    "equityInfo": {
      "salePrice": 450000,
      "marketValue": 600000,
      "assessedValue": 550000,
      "currentLoanToValue": "",
      "equity": 250000,
      "saleDate": "04/20/2013"
    },
    "investments": []
  },
  "householdMembers": [
    {
      "firstName": "KYLE",
      "lastName": "MURDOCK",
      "dateOfBirth": "05/20/1970",
      "age": 53,
      "gender": "Male",
      "maritalStatus": "Married",
      "memberCode": "Primary Household Member"
    },
    {
      "firstName": "SHARON",
      "lastName": "MURDOCK",
      "dateOfBirth": "12/08/1971",
      "age": 51,
      "gender": "Female",
      "maritalStatus": "Married",
      "memberCode": "Primary Household Member"
    },
    {
      "firstName": "ANDY",
      "lastName": "MURDOCK",
      "dateOfBirth": "03/10/2003",
      "age": 20,
      "gender": "Male",
      "maritalStatus": "Single",
      "memberCode": "Primary Household Member"
    }
  ]
}
```
- `400` — Bad Request (see [Standard Error Responses](#standard-error-responses))
- `401` — Unauthenticated: authentication is missing or invalid (see [Standard Error Responses](#standard-error-responses))
- `403` — Forbidden: authenticated but not permitted (see [Standard Error Responses](#standard-error-responses))
- `404` — Not Found (see [Standard Error Responses](#standard-error-responses))
- `405` — Method Not Allowed (see [Standard Error Responses](#standard-error-responses))
- `415` — Unsupported Media Type (see [Standard Error Responses](#standard-error-responses))
- `500` — Internal Server Error (see [Standard Error Responses](#standard-error-responses))
- `502` — Bad Gateway: an upstream service returned an invalid response — schema: [`502`](/schemas.md#502)
- `503` — Service Unavailable: a required external resource is unavailable — schema: [`503`](/schemas.md#503)
- `504` — Gateway Timeout (see [Standard Error Responses](#standard-error-responses))

#### FenrisProfile+

##### POST `/services/truprofile/v1/profile` — Assess contact quality

When dealing with internet lead generation, you can expect invalid contacts containing errors due to
typos on forms or intentionally false information. What if you could practically ensure valid leads with
accurate contact information? The Fenris Digital ("Fenris") Profile+ service validates the contact
information on leads to ensure that you are contacting real people instead of wasting time trying to
contact people who don't exist, at fake addresses, with autogenerated, made-up email addresses. The
first chance a client has to evaluate whether they can contact a lead occurs when they first receive the
POST data. By using **FenrisProfile+** service, clients get instant feedback on the quality of the contact
information so that they can route the request to the appropriate channel or return the lead to the seller.

## How does it work?
The **FenrisProfile+** Service works by comparing the input contact information such as person's
name, postal address, e-mail address, phone number to Fenris' reference database of more than 250
million individuals and 130 million households to determine whether the input person exists in its
reference data to determine the viability of making contact with the lead. These results are also passed
to Fenris' proprietary Profile+ scoring engine to compute a score that enables quick assessment on
the viability of outreach to each lead based on all of the input contact data submitted.

## What are the benefits?
We match each lead to our proprietary, multi-sourced database covering more than 97% of the US
population, evaluating validity for each element so you can sift out fraudulent entries. You can decide at
that point to purchase or return the lead, or you can run validated leads through the Fenris data
enrichment and lead scoring APIs for an even more granular assessment of lead quality and likelihood to
buy.

## Usage
The FenrisProfile+ endpoint receives a lead's contact data and returns information on the validity of the
elements submitted. Note that **all items in the request are optional**. Information will be provided only for
the submitted elements.

## Developer Data
Test the FenrisProfile+ service with our [**Personal Developer Data**](./personal_developer_data.csv).
The developer data is synthetically generated and contains no PII. Requests made with developer
data are not charged to your account.

**Parameters:**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `fenris-model-type` | header | string | No | Allows users with a deployed tailored model to use the generic FenrisProfile+ model by specify generic as the value. |
| `Submission-Id` | header | string | No | A pass through field from the request header containing a client-specified identifier to tie back to client data and systems. If the client does not define this value, an auto-generated field is used. |

**Request body** (`application/json`, required):

Schema: [`ProfileRequest`](/schemas.md#profilerequest)

```json
{
  "person": {
    "firstName": "Kyle",
    "lastName": "Murdock",
    "dateOfBirth": "05/20/1970"
  },
  "address": {
    "addressLine1": "18595 Old Aldrin Highway",
    "city": "Highlands Ranch",
    "state": "CO",
    "zipCode": "80126"
  },
  "email": "hello@fenrisd.com",
  "phone": "123-123-4567",
  "ipAddress": "1.2.3.4",
  "lineOfBusiness": "auto"
}
```

**Responses:**

- `200` — Success — schema: [`ProfileResponse`](/schemas.md#profileresponse)

```json
{
  "requestId": "dd6dfe57-0b92-4319-8bfc-7c6ab6823b84",
  "submissionId": "dd6dfe57-0b92-4319-8bfc-7c6ab6823b84",
  "status": "Success - Developer Data",
  "address": {
    "standardized": true,
    "singleDeliveryPoint": true,
    "residential": true,
    "addressFound": true,
    "householdFound": true,
    "personAtAddress": true
  },
  "person": {
    "recognizedFirstName": true,
    "recognizedLastName": true,
    "personFound": true,
    "dateOfBirthVerified": true
  },
  "phone": {
    "valid": false,
    "mobileOrLandline": false
  },
  "email": {
    "valid": true
  },
  "ipAddress": {
    "valid": true,
    "notKnownProxy": true
  }
}
```
- `400` — Bad Request (see [Standard Error Responses](#standard-error-responses))
- `401` — Unauthenticated: authentication is missing or invalid (see [Standard Error Responses](#standard-error-responses))
- `403` — Forbidden: authenticated but not permitted (see [Standard Error Responses](#standard-error-responses))
- `404` — Not Found (see [Standard Error Responses](#standard-error-responses))
- `405` — Method Not Allowed (see [Standard Error Responses](#standard-error-responses))
- `415` — Unsupported Media Type (see [Standard Error Responses](#standard-error-responses))
- `500` — Internal Server Error (see [Standard Error Responses](#standard-error-responses))
- `502` — Bad Gateway: an upstream service returned an invalid response — schema: [`502`](/schemas.md#502)
- `503` — Service Unavailable: a required external resource is unavailable — schema: [`503`](/schemas.md#503)
- `504` — Gateway Timeout (see [Standard Error Responses](#standard-error-responses))

### Scoring & Analytics

#### Lead Insights

The Fenris Lead Insight Service designed to insure that the leads you are buying meet your parameters of
quality before they are purchased. Using anonymous data, the Fenris Lead Insight Service generates a
score indicating the probability of a lead will convert. This insight allows you to route the request to
the appropriate channel or return the lead to the seller.

Highly customizable, the Fenris Lead Insight service houses both generic line of business models for
probability to convert as well as tailored customer models for assessing the quality of a lead.

For a model trained with your data, our data scientists tailor our machine learning algorithms to the
criteria that you use in your business to define a high-quality lead. Once the tailored model is trained and
deployed, the new lead information can be seamlessly scored in a matter of milliseconds.

##### POST `/services/leadinsight/v1/home/{type}` — Score a Home Insurance Lead

Score a Home Insurance lead with the specified model type specified, e.g. returnlikelihood, sellability, quotability.

**Parameters:**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `type` | path | string | Yes |  |
| `Submission-Id` | header | string | No | A pass through field from the request header containing a client-specified identifier to tie back to client data and systems. If the client does not define this value, an auto-generated field is used. |

**Request body** (`application/json`, required):

Schema: [`HomeLeadInsightRequest`](/schemas.md#homeleadinsightrequest)

**Responses:**

- `200` — Success — schema: [`LeadInsightResponse`](/schemas.md#leadinsightresponse)
- `400` — Bad Request (see [Standard Error Responses](#standard-error-responses))
- `401` — Unauthenticated: authentication is missing or invalid (see [Standard Error Responses](#standard-error-responses))
- `403` — Forbidden: authenticated but not permitted (see [Standard Error Responses](#standard-error-responses))
- `404` — Not Found (see [Standard Error Responses](#standard-error-responses))
- `405` — Method Not Allowed (see [Standard Error Responses](#standard-error-responses))
- `415` — Unsupported Media Type (see [Standard Error Responses](#standard-error-responses))
- `500` — Internal Server Error (see [Standard Error Responses](#standard-error-responses))
- `502` — Bad Gateway: an upstream service returned an invalid response — schema: [`502`](/schemas.md#502)
- `503` — Service Unavailable: a required external resource is unavailable — schema: [`503`](/schemas.md#503)
- `504` — Gateway Timeout (see [Standard Error Responses](#standard-error-responses))

##### POST `/services/leadinsight/v1/commercial/{type}` — Score a Commercial Insurance Lead

Score a Commercial Insurance lead with the specified model type specified, e.g. returnlikelihood, sellability, quotability.

**Parameters:**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `type` | path | string | Yes |  |
| `Submission-Id` | header | string | No | A pass through field from the request header containing a client-specified identifier to tie back to client data and systems. If the client does not define this value, an auto-generated field is used. |

**Request body** (`application/json`, required):

Schema: [`CommercialLeadInsightRequest`](/schemas.md#commercialleadinsightrequest)

**Responses:**

- `200` — Success — schema: [`LeadInsightResponse`](/schemas.md#leadinsightresponse)
- `400` — Bad Request (see [Standard Error Responses](#standard-error-responses))
- `401` — Unauthenticated: authentication is missing or invalid (see [Standard Error Responses](#standard-error-responses))
- `403` — Forbidden: authenticated but not permitted (see [Standard Error Responses](#standard-error-responses))
- `404` — Not Found (see [Standard Error Responses](#standard-error-responses))
- `405` — Method Not Allowed (see [Standard Error Responses](#standard-error-responses))
- `415` — Unsupported Media Type (see [Standard Error Responses](#standard-error-responses))
- `500` — Internal Server Error (see [Standard Error Responses](#standard-error-responses))
- `502` — Bad Gateway: an upstream service returned an invalid response — schema: [`502`](/schemas.md#502)
- `503` — Service Unavailable: a required external resource is unavailable — schema: [`503`](/schemas.md#503)
- `504` — Gateway Timeout (see [Standard Error Responses](#standard-error-responses))

##### POST `/services/leadinsight/v1/auto/{type}` — Score an Auto Insurance Lead

Score an Auto Insurance lead with the specified model type specified, e.g. returnlikelihood, sellability, quotability.

**Parameters:**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `type` | path | string | Yes |  |
| `Submission-Id` | header | string | No | A pass through field from the request header containing a client-specified identifier to tie back to client data and systems. If the client does not define this value, an auto-generated field is used. |

**Request body** (`application/json`, required):

Schema: [`AutoLeadInsightRequest`](/schemas.md#autoleadinsightrequest)

**Responses:**

- `200` — Success — schema: [`LeadInsightResponse`](/schemas.md#leadinsightresponse)
- `400` — Bad Request (see [Standard Error Responses](#standard-error-responses))
- `401` — Unauthenticated: authentication is missing or invalid (see [Standard Error Responses](#standard-error-responses))
- `403` — Forbidden: authenticated but not permitted (see [Standard Error Responses](#standard-error-responses))
- `404` — Not Found (see [Standard Error Responses](#standard-error-responses))
- `405` — Method Not Allowed (see [Standard Error Responses](#standard-error-responses))
- `415` — Unsupported Media Type (see [Standard Error Responses](#standard-error-responses))
- `500` — Internal Server Error (see [Standard Error Responses](#standard-error-responses))
- `502` — Bad Gateway: an upstream service returned an invalid response — schema: [`502`](/schemas.md#502)
- `503` — Service Unavailable: a required external resource is unavailable — schema: [`503`](/schemas.md#503)
- `504` — Gateway Timeout (see [Standard Error Responses](#standard-error-responses))

##### POST `/services/leadinsight/v1/life/{type}` — Score a Life Insurance Lead

Score a Life Insurance lead with the specified model type specified, e.g. returnlikelihood, sellability, quotability.

**Parameters:**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `type` | path | string | Yes |  |
| `Submission-Id` | header | string | No | A pass through field from the request header containing a client-specified identifier to tie back to client data and systems. If the client does not define this value, an auto-generated field is used. |

**Request body** (`application/json`, required):

Schema: [`LifeLeadInsightRequest`](/schemas.md#lifeleadinsightrequest)

**Responses:**

- `200` — Success — schema: [`LeadInsightResponse`](/schemas.md#leadinsightresponse)
- `400` — Bad Request (see [Standard Error Responses](#standard-error-responses))
- `401` — Unauthenticated: authentication is missing or invalid (see [Standard Error Responses](#standard-error-responses))
- `403` — Forbidden: authenticated but not permitted (see [Standard Error Responses](#standard-error-responses))
- `404` — Not Found (see [Standard Error Responses](#standard-error-responses))
- `405` — Method Not Allowed (see [Standard Error Responses](#standard-error-responses))
- `415` — Unsupported Media Type (see [Standard Error Responses](#standard-error-responses))
- `500` — Internal Server Error (see [Standard Error Responses](#standard-error-responses))
- `502` — Bad Gateway: an upstream service returned an invalid response — schema: [`502`](/schemas.md#502)
- `503` — Service Unavailable: a required external resource is unavailable — schema: [`503`](/schemas.md#503)
- `504` — Gateway Timeout (see [Standard Error Responses](#standard-error-responses))

##### POST `/services/leadinsight/v1/health/{type}` — Score a Health Insurance Lead

Score a Health Insurance lead with the specified model type specified, e.g. returnlikelihood, sellability, quotability.

**Parameters:**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `type` | path | string | Yes |  |
| `Submission-Id` | header | string | No | A pass through field from the request header containing a client-specified identifier to tie back to client data and systems. If the client does not define this value, an auto-generated field is used. |

**Request body** (`application/json`, required):

Schema: [`HealthLeadInsightRequest`](/schemas.md#healthleadinsightrequest)

**Responses:**

- `200` — Success — schema: [`LeadInsightResponse`](/schemas.md#leadinsightresponse)
- `400` — Bad Request (see [Standard Error Responses](#standard-error-responses))
- `401` — Unauthenticated: authentication is missing or invalid (see [Standard Error Responses](#standard-error-responses))
- `403` — Forbidden: authenticated but not permitted (see [Standard Error Responses](#standard-error-responses))
- `404` — Not Found (see [Standard Error Responses](#standard-error-responses))
- `405` — Method Not Allowed (see [Standard Error Responses](#standard-error-responses))
- `415` — Unsupported Media Type (see [Standard Error Responses](#standard-error-responses))
- `500` — Internal Server Error (see [Standard Error Responses](#standard-error-responses))
- `502` — Bad Gateway: an upstream service returned an invalid response — schema: [`502`](/schemas.md#502)
- `503` — Service Unavailable: a required external resource is unavailable — schema: [`503`](/schemas.md#503)
- `504` — Gateway Timeout (see [Standard Error Responses](#standard-error-responses))

#### Applicant Insights

Many smaller and medium-sized companies don't have access to data science resources and the breadth of data
needed to create effective machine-learning models. The Fenris Scoring API Suite hosts a set of both
industry generic and tailored machine learning models to give our customers a competitive edge when it comes
to understanding their leads and prospective customers.

The generic propensity to buy models housed in this suite can identify the leads in your sales funnel who are
10x more likely to make a purchase, with the models tuned by line of business or product
line. We currently offer base models for standard auto and non-standard auto insurance, and we are actively
developing models for other lines of business and product lines.

Once on one of our models, we can further tailor the model to your business by training it with your own data.
Using our Outcomes Service we can take your historical lead data and the outcomes of those leads to train a model
that is specific to your business needs. Our data scientists tailor our machine learning algorithms to the
criteria that you use in your business to define a high-quality lead. Once a model is trained and deployed,
when a request to score a lead is sent to the service we match the lead to our proprietary database to
create an enriched prospect profile. This improves the predictive power of the model by augmenting your lead
data with our own attributes. The enriched data is scored using your tailored model to segment the lead
based on predicted propensity to buy your insurance product.

##### POST `/services/scores/v1/scoreprospect/{outcome}/{lineOfBusiness}/{productLine}` — Generate a score

Return a score for the requested person and address. Please see the model documentation provided by Fenris
for specific parameters and endpoint.

**Parameters:**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `outcome` | path | string | Yes | The outcome to be predicted (i.e., the target variable of the model). |
| `lineOfBusiness` | path | string | Yes | The insurance line of business for this model. |
| `productLine` | path | string | Yes | The product line within the line of business for the model to consider. |
| `Submission-Id` | header | string | No | A pass through field from the request header containing a client-specified identifier to tie back to client data and systems. If the client does not define this value, an auto-generated field is used. |

**Request body** (`application/json`, required):

Schema: [`ProspectScoringRequest`](/schemas.md#prospectscoringrequest)

**Responses:**

- `200` — Success — schema: [`ProspectScoringResponse`](/schemas.md#prospectscoringresponse)
- `400` — Bad Request (see [Standard Error Responses](#standard-error-responses))
- `401` — Unauthenticated: authentication is missing or invalid (see [Standard Error Responses](#standard-error-responses))
- `403` — Forbidden: authenticated but not permitted (see [Standard Error Responses](#standard-error-responses))
- `404` — Not Found (see [Standard Error Responses](#standard-error-responses))
- `405` — Method Not Allowed (see [Standard Error Responses](#standard-error-responses))
- `415` — Unsupported Media Type (see [Standard Error Responses](#standard-error-responses))
- `500` — Internal Server Error (see [Standard Error Responses](#standard-error-responses))
- `502` — Bad Gateway: an upstream service returned an invalid response — schema: [`502`](/schemas.md#502)
- `503` — Service Unavailable: a required external resource is unavailable — schema: [`503`](/schemas.md#503)
- `504` — Gateway Timeout (see [Standard Error Responses](#standard-error-responses))

#### Commercial Scores

Many smaller and medium-sized companies don't have access to data science resources and the breadth of data
needed to create effective machine-learning models. The Fenris Commercial Scoring API Suite hosts a set of both
industry generic and tailored machine learning models to give our customers a competitive edge when it comes
to understanding their leads and prospective customers.

For a model trained with your data, our data scientists tailor our machine learning algorithms to the
criteria that you use in your business to define a high-quality lead. Once a model is trained and deployed,
when a request to score a lead is sent to the service we match the lead to our proprietary database to
create an enriched prospect profile. This improves the predictive power of the model by augmenting your lead
data with our own attributes. The enriched data is scored using your tailored model to segment the lead
based on predicted propensity to buy your insurance product.

##### POST `/services/commercialscores/v1/scoreprospect/{outcome}/{lineOfBusiness}/{productLine}` — Generate a score

Return a score for the requested business. Please see the model documentation provided by Fenris
for specific parameters and endpoint.

**Parameters:**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `outcome` | path | string | Yes | The outcome to be predicted (i.e., the target variable of the model). |
| `lineOfBusiness` | path | string | Yes | The insurance line of business for this model. |
| `productLine` | path | string | Yes | The product line within the line of business for the model to consider. |
| `Submission-Id` | header | string | No | A pass through field from the request header containing a client-specified identifier to tie back to client data and systems. If the client does not define this value, an auto-generated field is used. |

**Request body** (`application/json`, required):

Schema: [`CommercialScoringRequest`](/schemas.md#commercialscoringrequest)

**Responses:**

- `200` — Success — schema: [`CommercialScoringResponse`](/schemas.md#commercialscoringresponse)
- `400` — Bad Request (see [Standard Error Responses](#standard-error-responses))
- `401` — Unauthenticated: authentication is missing or invalid (see [Standard Error Responses](#standard-error-responses))
- `403` — Forbidden: authenticated but not permitted (see [Standard Error Responses](#standard-error-responses))
- `404` — Not Found (see [Standard Error Responses](#standard-error-responses))
- `405` — Method Not Allowed (see [Standard Error Responses](#standard-error-responses))
- `415` — Unsupported Media Type (see [Standard Error Responses](#standard-error-responses))
- `500` — Internal Server Error (see [Standard Error Responses](#standard-error-responses))
- `502` — Bad Gateway: an upstream service returned an invalid response — schema: [`502`](/schemas.md#502)
- `503` — Service Unavailable: a required external resource is unavailable — schema: [`503`](/schemas.md#503)
- `504` — Gateway Timeout (see [Standard Error Responses](#standard-error-responses))

### Outcomes

#### Outcome Service

##### POST `/services/analytics/v1/outcomes` — Submit an outcome

Submit an outcome after requesting a score or prefill. Include the originalRequestId or the
originalSubmissionId of the previous request, but not both. The `outcome` field may be omitted when at
least one additional outcome field has a non-empty value.

**Request body** (`application/json`, required):

Schema: [`OutcomeRequest`](/schemas.md#outcomerequest)

**Responses:**

- `201` — Outcome submitted successfully
- `400` — Bad Request (see [Standard Error Responses](#standard-error-responses))
- `401` — Unauthenticated: authentication is missing or invalid (see [Standard Error Responses](#standard-error-responses))
- `403` — Forbidden: authenticated but not permitted (see [Standard Error Responses](#standard-error-responses))
- `404` — Not Found (see [Standard Error Responses](#standard-error-responses))
- `405` — Method Not Allowed (see [Standard Error Responses](#standard-error-responses))
- `415` — Unsupported Media Type (see [Standard Error Responses](#standard-error-responses))
- `500` — Internal Server Error (see [Standard Error Responses](#standard-error-responses))
- `502` — Bad Gateway: an upstream service returned an invalid response — schema: [`502`](/schemas.md#502)
- `503` — Service Unavailable: a required external resource is unavailable — schema: [`503`](/schemas.md#503)
- `504` — Gateway Timeout (see [Standard Error Responses](#standard-error-responses))

### Developer Resources

#### Authentication

For help getting authentication set up, **please see our [authentication documentation](https://documentation.fenrisd.com/authentication.html) .**

Once you have your authentication set up, please **note that access lasts only 24 hours per
generated token**. You can make a request for any service you have access to with an example request
for that service, found in the right-hand panel of the documentation.

#### Developer Data

The Fenris Developer Data Collection is a set of artificial data records that can be used to test
the Fenris services. The service's responses to records from the artificial data are guaranteed to
be constant, so that your integration tests will not break. Since the data in the set is
synthetically generated, no personally identifying information (PII) is present, and the data can be
shared openly. Best of all, your account is never charged for requests made with the developer data.

You can **download our developer data** here:

* [Personal Developer Data](./personal_developer_data.csv)
* [Business Developer Data](./business_developer_data.csv)
* [Plate To Vin Developer Data](./plate_to_vin_developer_data.csv)

#### Postman

[Postman](https://www.postman.com/product/what-is-postman/)  is a
third-party all-in-one API platform that can be helpful for testing and working with APIs. We host a
[Postman collection](https://documenter.getpostman.com/view/53869477/2sBXitBS4b)  that uses the Fenris Developer Data to make example
requests. For help getting started with Postman, please see the [Postman documentation](https://learning.postman.com/docs/getting-started/first-steps/sending-the-first-request/) .

## Getting Started

### 1. Set Up Your Environment

Before making requests, configure a Postman environment with your Fenris-provided credentials:

1. In Postman, click the **+** button in the left sidebar and select **Environment** from the dropdown menu.
2. Give your new environment a name (e.g., "Fenris API").
3. Add the following variables — set `client_secret` to type **Secret** to mask the value in the Postman UI and prevent it from being shared in exports:

   | Variable | Type | Value |
   |---|---|---|
   | `client_id` | Default | Your Fenris Client ID |
   | `client_secret` | **Secret** | Your Fenris Client Secret |

4. Click **Save**.
5. Select your new environment from the environment dropdown in the top-right corner of Postman.

### 2. Fire a Request

Once your environment is active, you're ready to go. This collection includes a pre-request script
that handles authentication automatically — before each request, the script checks whether a valid
token exists and fetches a new one if it is missing or expired. You do not need to run the **Get
Bearer Token** request manually.

## Questions?

Contact our customer success team at
[customersuccess@fenrisd.com](mailto:customersuccess@fenrisd.com).

## How Variables Work

Postman uses double-curly-brace syntax (e.g., `{{client_id}}`) as placeholders in requests. When a
request is sent, Postman replaces these placeholders with the actual values from your environment or
the collection.

Variables are resolved in this order of precedence: **environment → collection**. This means values
you set in your environment always win over the defaults stored in the collection.

This collection uses two kinds of variables:

**Variables you provide (in your environment):**

| Variable | Description |
|---|---|
| `client_id` | Your Fenris Client ID |
| `client_secret` | Your Fenris Client Secret |

**Variables managed automatically by the pre-request script:**

| Variable | Description |
|---|---|
| `current_access_token` | The active bearer token, fetched and refreshed automatically |
| `access_token_expiry` | The expiry timestamp of the current token — the script uses this to decide when to fetch a new one |

You never need to set or update the managed variables manually — the script handles them for you
each time you send a request.

#### Making a Request

The Fenris suite of services is comprised entirely of REST APIs. Representational State Transfer
(REST) is a set of guidelines to manage communications on networks, including the Internet. One of
the many benefits of using this pattern is that most development teams will be familiar with the
protocol. You can read more about RESTful APIs
[here](https://www.freecodecamp.org/news/how-to-use-rest-api/).

### The Components of a RESTful API Client Request
The first component of a RESTful API request is the **unique resource identifier**. For all Fenris
Services, this is the URL (Uniform Resource Locator). This is what allows the request to be routed
to the correct service. This is also known as the request endpoint. The URL for each service can be
found in the right-hand column of the documentation.

The next component of the request is the **Method**. The method lets the service know what the
request needs to do. The current Fenris services support GET and POST requests, depending on the
particular endpoint and desired process. GET allows for the access of resources at a specified URL.
POST is used to send data to the service. POST requests are used to prevent information from being
exposed in the URL.

The appropriate method for each request is described in the right-hand column of the documentation,
to the left of the service endpoint, or in the left-hand navigation menu, next to the highlighted
service.

The **Request Headers** component of a request is the metadata sent from the client to the server.
This contains information about authentication and the format of the request, and the response.

The data used to create the request is provided in the body of the request.

Additional parameters can give the service additional details, such as a query of path parameters.

### Using the Submission ID in a Request
Every Fenris API request has an optional `submission-id` parameter. This parameter is echoed
directly back in the response. This value may be used to track your internal processes or systems
associated with the request. For example, let's say you have multiple lead scores and want to use
Fenris Profile+ to evaluate the contact information and quality of the leads without losing the
ability to route the lead back to its original source. While making a request to Fenris Profile+,
you can include the `submission-id` parameter in your request's header to specify the original
source, and that same string will be returned in the response's `submissionId` field.

#### Sending Test Requests
The `submission-id` parameter can also be used to mark a request as a test request by using the
prefix `test` in the value of the submission ID.

#### Echo Service

The echo API is a simple "Hello World!" service that echoes the message sent to it.
It is designed to assist developers in testing authentication and connectivity to the Fenris API
platform.

##### POST `/services/echo/v1/echo` — Echo a Message

Echoes the message sent to it. A useful service for testing authentication and connectivity.

**Parameters:**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `Submission-Id` | header | string | No | A pass through field from the request header containing a client-specified identifier to tie back to client data and systems. If the client does not define this value, an auto-generated field is used. |

**Request body** (`application/json`, required):

Schema: [`EchoRequest`](/schemas.md#echorequest)

**Responses:**

- `200` — Success — schema: [`EchoResponse`](/schemas.md#echoresponse)

```json
{
  "requestId": "3800a4cd-1372-48ce-a6fa-2b7fe5888258",
  "submissionId": "3800a4cd-1372-48ce-a6fa-2b7fe5888258",
  "status": "SUCCESS",
  "message": "Hello Fenris!"
}
```
- `400` — Bad Request (see [Standard Error Responses](#standard-error-responses))
- `401` — Unauthenticated: authentication is missing or invalid (see [Standard Error Responses](#standard-error-responses))
- `403` — Forbidden: authenticated but not permitted (see [Standard Error Responses](#standard-error-responses))
- `404` — Not Found (see [Standard Error Responses](#standard-error-responses))
- `405` — Method Not Allowed (see [Standard Error Responses](#standard-error-responses))
- `415` — Unsupported Media Type (see [Standard Error Responses](#standard-error-responses))
- `500` — Internal Server Error (see [Standard Error Responses](#standard-error-responses))
- `502` — Bad Gateway: an upstream service returned an invalid response — schema: [`502`](/schemas.md#502)
- `503` — Service Unavailable: a required external resource is unavailable — schema: [`503`](/schemas.md#503)
- `504` — Gateway Timeout (see [Standard Error Responses](#standard-error-responses))

## Standard Error Responses

These responses are shared across most Fenris endpoints.

### 400

The body of the request failed validation. The request might be missing a required field, use an unsupported format, or contain a value that could not be read.

| Field | Type | Required | Description |
|---|---|---|---|
| `type` | string | Yes | A URI identifying the kind of error. `about:blank` when no more specific type applies. |
| `title` | string | Yes | The title of the error. |
| `status` | enum: `400` | Yes | The error code. |
| `detail` | string | Yes | Additional information on the error. |
| `instance` | string | Yes | The path of the request. |
| `message` | string | No | A short error key, such as `error.validation`. Not returned when the request body could not be read. |
| `path` | string | No | The path of the request; same value as `instance`. Not returned when the request body could not be read. |
| `fieldErrors` | array of object | No | Validation errors tied to a specific field of the request. |
| `objectErrors` | array of object | No | Validation errors that apply to the request as a whole rather than to a single field. |
| `requestId` | string | Yes | The request Id. |
| `submissionId` | string | Yes | The submission Id. |

### 401

The request made was unauthorized.

| Field | Type | Required | Description |
|---|---|---|---|
| `timestamp` | string | No | The timestamp of the original request. |
| `status` | enum: `401` | No | The error code. |
| `error` | enum: `Unauthorized` | No |  |
| `path` | string | No | The path of the request. |

### 403

There was a problem with authentication. This could be due to not having a license for the product, the license being expired, or exceeding a demo quota.

| Field | Type | Required | Description |
|---|---|---|---|
| `type` | string | No |  |
| `title` | string | No | The title of the error. |
| `status` | enum: `403` | No | The error code. |
| `detail` | string | No | Additional information on the error. |
| `path` | string | No | The path of the request. |
| `requestId` | string | No | The request Id. |
| `submissionId` | string | No | The submission Id. |
| `message` | string | No | The error message returned by the service. |

### 404

Wrong endpoint

| Field | Type | Required | Description |
|---|---|---|---|
| `timestamp` | string | No | The timestamp of the original request. |
| `status` | enum: `404` | No | The error code. |
| `error` | enum: `Not Found` | No |  |
| `path` | string | No | The path of the request. |

### 405

The method is not allowed. This could be due to a service restarting, using the incorrect REST method, or incorrect url.

| Field | Type | Required | Description |
|---|---|---|---|
| `type` | string | No |  |
| `title` | string | No | The title of the error. |
| `status` | enum: `405` | No | The error code. |
| `detail` | string | No | Additional information on the error. |
| `path` | string | No | The path of the request. |
| `requestId` | string | No | The request Id. |
| `submissionId` | string | No | The submission Id. |
| `message` | string | No | The error message returned by the service. |

### 415

The Content-Type value is not supported; application/json is required.

| Field | Type | Required | Description |
|---|---|---|---|
| `type` | string | No |  |
| `title` | string | No | The title of the error. |
| `status` | enum: `415` | No | The error code. |
| `detail` | string | No | Additional information on the error. |
| `path` | string | No | The path of the request. |
| `requestId` | string | No | The request Id. |
| `submissionId` | string | No | The submission Id. |
| `message` | string | No | The error message returned by the service. |

### 500

An unexpected error occured.

| Field | Type | Required | Description |
|---|---|---|---|
| `type` | string | No |  |
| `title` | string | No | The title of the error. |
| `status` | enum: `500` | No | The error code. |
| `detail` | string | No | Additional information on the error. |
| `path` | string | No | The path of the request. |
| `requestId` | string | No | The request Id. |
| `submissionId` | string | No | The submission Id. |
| `message` | string | No | The error message returned by the service. |

### 504

Gateway Timeout

| Field | Type | Required | Description |
|---|---|---|---|
| `timestamp` | string | No | The timestamp of the original request. |
| `status` | enum: `504` | No | The error code. |
| `error` | enum: `Gateway timeout` | No |  |
| `path` | string | No | The path of the request. |
