Legal Entities
Legal entities are organizations or entities legally permitted to enter into insurance policy contracts. On this page, we'll dive into the different legal entity endpoints you can use to manage them programmatically.
The Legal Entity object
Legal entity objects represent a single legal entity in a commercial risk profile. They contain the following properties and relationships:
Commercial-only Properties
These properties are available only for commercial risk profiles.- Name
first_named_insured
- Type
- bool
- Filterable
- Description
Whether the organization is the first named insured on the policy
- Name
name
- Type
- string
- Filterable
- Sortable
- Description
The name that appears on all official documents for the related organization
- Name
description
- Type
- nullable string
- Sortable
- Description
A description of the organization and/or its operations
- Name
date_of_organization
- Type
- nullable string
- Filterable
- Sortable
- Description
The date on which the organization was established
- Name
state
- Type
- nullable string
- Filterable
- Sortable
- Description
The U.S. state in which the organization is legally incorporated
- Name
website
- Type
- nullable string
- Description
The web address of the organization
- Name
fein
- Type
- nullable string
- Sortable
- Description
The organization’s employer identification number (EIN) or Tax ID
- Name
dot_number
- Type
- nullable string
- Sortable
- Description
The Department of Transportation number, identifying the organization’s commercial vehicle(s)
- Name
annual_sales
- Type
- nullable int
- Filterable
- Sortable
- Description
The total USD amount of sales in goods services sold by the organization
- Name
annual_payroll
- Type
- nullable int
- Filterable
- Sortable
- Description
The total USD amount of wages paid by the organization to its employees
- Name
fiscal_day
- Type
- nullable int
- Filterable
- Sortable
- Description
The day beginning the organization’s fiscal year
- Name
fiscal_month
- Type
- nullable int
- Filterable
- Sortable
- Description
The month beginning the organization’s fiscal year
- Name
business_type
- Type
- nullable enum
- Filterable
- Sortable
- Description
The type or structure of the organization
- Name
C Corporation
- Description
- C Corporation
- Name
S Corporation
- Description
- S Corporation
- Name
Non-profit
- Description
- Non-profit
- Name
General Partnership
- Description
- General Partnership
- Name
Limited Liability Company
- Description
- Limited Liability Company
- Name
Sole Proprietorship
- Description
- Sole Proprietorship
- Name
Limited Liability Partnership
- Description
- Limited Liability Partnership
- Name
Limited Partnership
- Description
- Limited Partnership
- Name
DBA
- Description
- DBA
- Name
Trust
- Description
- Trust
- Name
Government
- Description
- Government
- Name
Municipality
- Description
- Municipality
- Name
notes
- Type
- nullable string
- Description
Any additional notes or comments about the organization
Meta
- Name
created
- Type
- timestamp
- Filterable
- Sortable
- Description
An ISO-8601 timestamp (UTC) indicating when the legal entity was created
- Name
updated
- Type
- timestamp
- Filterable
- Sortable
- Description
An ISO-8601 timestamp (UTC) indicating when the legal entity was last updated
Commercial-only Relations
Learn more about including relations.- Name
attachments
- Type
- Attachment[]
- Name
attachments.uploader
- Type
- User
- Description
The user who uploaded the attachment
List all legal entities
This endpoint allows you to retrieve a paginated list of all legal entities in the corresponding commercial risk profile.
Parameters
See the legal entity object for a list of all available filters and sorts.
Searchable
You can search for legal entities by providing a search query in the filter[search]
parameter.
The search query will be matched against a legal entity's name, description, FEIN, or DOT number.
Request
curl -G https://app.wunderite.com/api/v1/risks/{risk}/data/legal_entities \
-H "Authorization: Bearer {token}" \
-d filter[search]=Location \
-d per_page=50
Response
{ "data": [ { "object": "legal_entity", "uuid": "83eae6d0-5c59-4289-9736-a2393c4b5ae9", "data": { "first_named_insured": true, "name": "Pied Piper", "description": "Pied Piper is a cutting-edge tech startup specializing in data compression and decentralized internet protocols. Founded by Richard Hendricks and his team of brilliant engineers, Pied Piper aims to revolutionize the way data is stored, transferred, and accessed on the internet.", "date_of_organization": "2014-04-01",
Create legal entities
This endpoint allows you to create new legal entities in the corresponding commercial risk profile.
At least one legal entity object must be provided in the request body.
Required properties
See all available properties in the properties section.
- Name
name
- Type
- string
- Description
The name that appears on all official documents for the related organization
Caveats
First Named Insured
- Only one legal entity can have
first_named_insured
set totrue
in a risk profile. - If a risk profile has no first named insured, we will automatically assign the first legal entity as the first named insured if
first_named_insured
isfalse
or has no value. - Creating a legal entity with
first_named_insured
set totrue
will automatically set the previousfirst_named_insured
entity tofalse
, if it exists. - Attempting to create many legal entities with
first_named_insured
set totrue
in the same request will result in a validation error.
Request
curl -X POST "https://app.wunderite.com/api/v1/risks/{risk}/data/legal_entities" \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"data": [
{
"object": "legal_entity",
"data": {
"first_named_insured": true,
"name": "EZ Holding",
"description": "Property Holding Company for Acme",
"date_of_organization": "2020-01-01",
"state": "RI",
"website": "https:\/\/ezholding.com",
"fein": "84-1234567",
"business_type": "S Corporation"
}
}
]
}'
Response
{ "data": [ { "object": "legal_entity", "uuid": "75b12c61-1962-4533-bc9f-f77ddd060bfa", "data": { "first_named_insured": true, "name": "EZ Holding", "description": "Property Holding Company for Acme", "date_of_organization": "2020-01-01",
Update legal entities
This endpoint allows you to perform bulk updates on legal entities.
- At least one legal entity object must be provided in the request body. Each object must contain at least one property from the legal entity properties section.
- Properties that are not provided will not be updated.
- To clear a property, provide a
null
value.
Caveats
First Named Insured
- Only one legal entity can have
first_named_insured
set totrue
in a risk profile. - Updating a legal entity with
first_named_insured
set totrue
will automatically set the previousfirst_named_insured
entity tofalse
, if it exists. - Attempting to update many legal entities with
first_named_insured
set totrue
in the same request will result in a validation error.
Attempting to update a legal entity's first_named_insured
to false
will throw a validation error.
To remove the first_named_insured
flag from an entity, you must first update the other entity intended to have first_named_insured
set to true
.
Request
curl -X PATCH "https://app.wunderite.com/api/v1/risks/{risk}/data" \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"data": [
{
"object": "legal_entity",
"uuid": "83eae6d0-5c59-4289-9736-a2393c4b5ae9",
"data": {
"first_named_insured": true,
"name": "Pied Piper",
"description": "Pied Piper is a cutting-edge tech startup specializing in data compression and decentralized internet protocols. Founded by Richard Hendricks and his team of brilliant engineers, Pied Piper aims to revolutionize the way data is stored, transferred, and accessed on the internet.",
"date_of_organization": "2014-04-01",
"state": "CA",
"website": "https:\/\/www.pidpiper.com",
"fein": "458692037",
"dot_number": null,
"annual_sales": 13040020,
"annual_payroll": 11067020,
"fiscal_day": 1,
"fiscal_month": 1,
"business_type": "C Corporation",
"notes": null
}
}
]
}'
Response
{ "data": [ { "object": "legal_entity", "uuid": "83eae6d0-5c59-4289-9736-a2393c4b5ae9", "data": { "first_named_insured": true, "name": "Pied Piper", "description": "Pied Piper is a cutting-edge tech startup specializing in data compression and decentralized internet protocols. Founded by Richard Hendricks and his team of brilliant engineers, Pied Piper aims to revolutionize the way data is stored, transferred, and accessed on the internet.", "date_of_organization": "2014-04-01",
Delete legal entities
This endpoint allows you to bulk delete risk data, including legal entities.
At least one legal entity object must be provided in the request body to delete the corresponding legal entity.
Deleting a legal entity will also disassociate the entity from any vehicles that reference it. Deleting the first named insured legal entity will automatically assign the oldest legal entity as the first named insured.
Required properties
- Name
object
- Type
- string
- Description
The object type of the data to delete. Must be
legal_entity
in this case.
- Name
uuid
- Type
- string
- Description
The UUID of the legal entity to delete
Request
curl -X DELETE "https://app.wunderite.com/api/v1/risks/{risk}/data" \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"data": [
{
"object": "legal_entity",
"uuid": "83eae6d0-5c59-4289-9736-a2393c4b5ae9"
}
]
}'
Response
{
"data": [
{
"object": "legal_entity",
"uuid": "83eae6d0-5c59-4289-9736-a2393c4b5ae9",
"profile_type": "commercial"
}
]
}