attach_form_to_policy_type
Code
attach_form_to_policy_type › Request Body
policy_type_idPolicy Type to attach the form to.
file_nameFile name, stored as the File record's title.
file_base64Base64 encoded file content. Limited to 10MB decoded.
mime_typeFile MIME type. Defaults to application/pdf.
Print-flag metadata. Only the 7 policy-type-level fields are accepted (PolicyTypeFormMetadataSchema) - item-only fields are not declared on this schema and are dropped, not persisted.
attach_form_to_policy_type › Responses
successattach_form_to_policy_type_item
Code
attach_form_to_policy_type_item › Request Body
policy_type_item_idPolicy Type Item to attach the form to.
file_nameFile name, stored as the File record's title.
file_base64Base64 encoded file content. Limited to 10MB decoded.
mime_typeFile MIME type. Defaults to application/pdf.
Print-flag metadata. All 14 fields are accepted (PolicyTypeItemFormMetadataSchema).
attach_form_to_policy_type_item › Responses
successcopy_policy_type
API method to copy a policy type to a new effective date and state.
Code
copy_policy_type › Request Body
policy_type_idfrom_effective_date_idto_effective_date_idfrom_state_idto_state_idvalidate_onlycopy_policy_type › Responses
successmessagedatacreate_effective_date
Code
create_effective_date › Request Body
effective_dateThe effective date
idThe id of the effective date
descriptionThe description of the effective date
policy_type_idsThe policy type ids
policy_type_external_system_referencesThe policy type external system references
forceWhen true, skips all validations during effective date creation
create_effective_date › Responses
Data related to the created effective date
successIndicates if the request was successful
create_policy_type
Code
create_policy_type › Request Body
effective_date_idUUID of the Effective Date
location_idUUID of the Location (State)
Line of Business. Provide ID to use existing line, or name to create a new line.
create_policy_type › Responses
successIndicates if the request was successful
create_policy_type_item
Code
create_policy_type_item › Request Body
nameName of the Line Item
categoryCategory of the Line Item (Policy or Risk)
typeType of the Line Item
requirement_typeRequirement type of the Line Item
idID to be set for the Line Item (optional)
external_system_referenceExternal System Reference for the Line Item
descriptionDescription of the Line Item
system_tagsSystem-specific tags associated with the Line Item
has_limitIndicates if the Line Item has a limit
has_rate_or_deductibleIndicates if the Line Item has a rate or deductible
has_loss_payeeIndicates if the Line Item has a loss payee
allow_multiplesIndicates if multiple instances of this Line Item are allowed
premium_fully_billedIndicates if the premium is fully billed
premium_fully_earned_at_inceptionIndicates if the premium is fully earned at inception
premium_added_to_other_itemIndicates if the premium is added to another item
disallow_submit_boundIndicates if submitting bound is disallowed
display_on_dec_asHow the item should be displayed on declaration
dec_font_sizeFont size for declaration
dec_font_boldIndicates if the font should be bold in declaration
dec_font_italicIndicates if the font should be italic in declaration
dec_aliasesAliases for declarations display
do_not_display_in_dec_rating_informationIndicates if the item should not be displayed in declaration rating information
do_not_display_in_dec_when_zero_premiumIndicates if the item should not be displayed in declaration when premium is zero
display_in_dec_as_incl_when_zero_premiumIndicates if the item should be displayed as included in declaration when premium is zero
show_limit_and_premium_on_decIndicates if limit and premium should be shown on declaration
dividend_factorDividend factor for the Line Item
show_in_builderSpecifies where the item should be shown in the builder
hide_in_britequoteIndicates if the item should be hidden in BriteQuote
limit_availabilitySpecifies the limit availability for the Line Item
loss_exposureIndicates if the item represents a loss exposure
loss_free_creditDetails about loss-free credit
no_commission_paid_on_line_itemIndicates if no commission is paid on this Line Item
override_limitIndicates if the limit can be overridden
not_applicable_for_agency_billingIndicates if the item is not applicable for agency billing
prevent_from_being_deletedIndicates if the item should be prevented from being deleted
display_user_inputs_above_rate_categoriesIndicates if user inputs should be displayed above rate categories
renewal_amountRenewal amount for the Line Item
default_loss_reserveDefault loss reserve amount
default_adjusting_reserveDefault adjusting reserve amount
default_legal_reserveDefault legal reserve amount
modifies_other_items_on_renewalIndicates if this item modifies other items on renewal
not_rated_by_prorata_and_factorIndicates if the item is not rated by pro-rata and factor
Rate chain for the Line Item
renewal_split_bySpecifies how renewal is split
Zip code factors for renewal
renewal_factor_item_idsLine item IDs whose limit this item inflates at renewal (inflation guard targets)
round_methodRounding method for calculations
round_toSpecifies to what decimal place to round
round_pro_rataIndicates if pro-rata should be rounded
scheduled_itemDetails about scheduled item
skip_persistent_builder_when_added_mandatorilyIndicates if persistent builder should be skipped when added mandatorily
skip_persistent_builder_when_new_category_addedIndicates if persistent builder should be skipped when new category is added
disallow_submit_bound_if_limit_exceedsIndicates if submitting bound should be disallowed if limit exceeds
submit_bound_upper_limitUpper limit for submitting bound
pro_rate_feeIndicates if fee should be pro-rated
sort_orderSort order for the Line Item
claim_coverage_party_typeSpecifies the claim coverage party type
calculate_item_commission_rateIndicates if item commission rate should be calculated
commission_rate_evalCommission rate evaluation
erp_enabledIndicates if Extended Reporting Period (ERP) is enabled for this Line Item
default_erp_duration_daysDefault duration in days for the Extended Reporting Period (ERP)
erp_line_item_idReference to the Line Item used for ERP calculations
create_policy_type_item › Responses
successIndicates if the request was successful
create_sub_line
Code
create_sub_line › Request Body
policy_type_idUUID of the parent policy type this subline belongs to
nameName of the Subline
categoryCategory of the Subline (Policy or Risk)
requirement_typeRequirement type of the Subline
typeType of the Subline
idUnique identifier for the Subline
external_system_referenceExternal System Reference for the Line Item
allow_multiplesIndicates if multiple instances of this Subline are allowed
name_edit_allowedIndicates if editing the name of the Subline is allowed
sort_orderSort order for the Subline
descriptionDescription of the Subline
system_tagsSystem tags associated with the Subline
hide_fromSpecifies where the Subline should be hidden from
List of line items associated with this Subline
create_sub_line › Responses
successIndicates if the request was successful
delete_sub_line
API method to delete a subline (and cascade-delete its child items).
Code
delete_sub_line › Request Body
idUUID of the subline to delete
delete_sub_line › Responses
successIndicates if the request was successful
get_effective_date
get_policies_with_sub_line
API method to get all policies using a specified (by id) subline.
Code
get_policies_with_sub_line › Request Body
sub_line_idUUID of the subline whose affected policies should be returned
limitMaximum number of policies to return. 0 means all.
get_policies_with_sub_line › Responses
successIndicates if the request was successful
get_policy_type
Code
get_policy_type › Request Body
idUUID of the Policy Type
get_policy_type › Responses
successIndicates if the request was successful
get_policy_type_item
Code
get_policy_type_item › Request Body
idUUID of the Policy Type Item (line item)
get_policy_type_item › Responses
successIndicates if the request was successful
get_policy_type_minimal
Code
get_policy_type_minimal › Request Body
idUUID of the Policy Type
get_policy_type_minimal › Responses
successIndicates if the request was successful
get_rate_chains
Code
get_rate_chains › Request Body
effective_date_idUUID of the effective date. Required unless policy_type_ids is provided. All policy types under this effective date are included.
location_idUUID of a location/state to narrow the effective date scope (optional)
policy_type_idsExplicit policy type UUIDs. When given, effective_date_id and location_id are ignored (optional)
step_typesRate chain step types to include (e.g. ["CATEGORIES"]). Steps of other types are excluded server-side. When omitted, full rate chains are returned (optional)
get_rate_chains › Responses
One entry per line item (top-level and subline items) for the policy types in scope
successIndicates if the request was successful
get_underwriting_question_autofill_answers
Code
get_underwriting_question_autofill_answers › Request Body
policy_type_idPolicy Type ID to get auto-fill answers for
get_underwriting_question_autofill_answers › Responses
Array of auto-fill answers for underwriting questions
successIndicates if the request was successful
list_effective_dates
Code
list_effective_dates › Request Body
pagePage number
page_sizeNumber of items per page
sort_orderSort order
list_effective_dates › Responses
Array of existing effective dates
list_forms_for_policy_type
Code
list_forms_for_policy_type › Request Body
policy_type_idPolicy Type to list forms for.
list_forms_for_policy_type › Responses
One entry per active form attached to the Policy Type. Mirrors legacy retrieveDocuments (lib/lines/views.py:1930), which surfaces both the doc row's own id (form_id here) and the File's id (file_id).
successlist_forms_for_policy_type_item
Code
list_forms_for_policy_type_item › Request Body
policy_type_item_idPolicy Type Item to list forms for.
list_forms_for_policy_type_item › Responses
One entry per active form attached to the Policy Type Item. Mirrors legacy retrieveDocuments (lib/lines/views.py:1930), which surfaces both the doc row's own id (form_id here) and the File's id (file_id).
successlist_policy_types
Code
list_policy_types › Request Body
effective_dateThe effective date of the policy type
effective_date_idThe effective date ID of the policy type
location_idThe location ID of the policy type
external_system_referenceExternal ID of the policy type
list_policy_types › Responses
modify_effective_date
Code
modify_effective_date › Request Body
idThe id of the effective date
effective_dateThe effective date
descriptionThe description of the effective date
forceWhen true, skips all validations during effective date modification
modify_effective_date › Responses
Data related to the created effective date
successIndicates if the request was successful
modify_policy_type
Code
modify_policy_type › Request Body
idPolicy Type ID
nameName of the Policy Type
Policy Type Items
Policy Type Sub Lines
external_system_referenceExternal System Reference for the Policy Type
descriptionDescription of the Policy Type
renewal_effective_dateThe renewal effective date for this policy type
underwriting_textUnderwriting text for the Policy Type
application_form_numberApplication Form Number
sort_orderSort order of the Policy Type
allow_multiple_risksWhether multiple risks are allowed
require_credit_scoreWhether credit score is required
credit_score_permission_promptPrompt for credit score permission
term_credit_score_combination_strategyStrategy for combining term credit scores
term_credit_score_fallbackFallback value for term credit score
terms_credit_score_validNumber of policy terms the rated credit score stays locked (0 = always rate on the most recent score)
terms_credit_score_pull_intervalNumber of policy terms that must elapse before ordering a new credit report on the renewal schedule (0 = no scheduled ordering; the global contacts/auto-fetch-credit-score setting can still order a report when an insured is edited)
always_display_wizard_credit_score_buttonWhether to always display the credit score button in the wizard
open_to_quotingWhether the Policy Type is open to quoting
quote_termsAvailable quote terms
Terms and their factors
dec_sectionsDeclaration sections
separate_dec_sectionsWhether to separate declaration sections
system_tagsSystem tags
protection_classProtection class type
limit_thresholdLimit threshold
limit_breach_warningWarning message for limit breach
requires_approvalWhether approval is required
use_rating_v1Whether to use rating v1
trust_risk_premiumsWhether to trust risk premiums
rating_info_titleTitle for rating information
show_optional_builder_items_inlineWhether to show optional builder items inline
skip_insured_quoting_stepWhether to skip the insured quoting step
sequence_idSequence ID
claim_sequence_idClaim sequence ID
allow_risk_valuationWhether to allow risk valuation
maximum_risk_countMaximum number of risks allowed
require_risk_addressWhether risk address is required
require_insured_nameWhether insured name is required
allow_motor_vehicle_reportsWhether to allow motor vehicle reports
britelines_product_nameBriteLines product name
acres_visibilityVisibility setting for acres
legal_description_visibilityVisibility setting for legal description
commission_calculation_item_idCommission calculation item ID
typeType of the policy
months_mvr_validNumber of months MVR is valid
mid_term_quotingWhether mid-term quoting is allowed
billing_schedule_in_ratingWhether billing schedule is included in rating
edelivery_enabledWhether e-delivery is enabled
allow_zero_risksWhether zero risks are allowed
last_synched_dateDate of last synchronization
modify_policy_type › Responses
successIndicates if the request was successful
modify_policy_type_item
Code
modify_policy_type_item › Request Body
idID to be set for the Line Item (optional)
nameName of the Line Item
categoryCategory of the Line Item (Policy or Risk)
typeType of the Line Item
requirement_typeRequirement type of the Line Item
external_system_referenceExternal System Reference for the Line Item
descriptionDescription of the Line Item
system_tagsSystem-specific tags associated with the Line Item
has_limitIndicates if the Line Item has a limit
has_rate_or_deductibleIndicates if the Line Item has a rate or deductible
has_loss_payeeIndicates if the Line Item has a loss payee
allow_multiplesIndicates if multiple instances of this Line Item are allowed
premium_fully_billedIndicates if the premium is fully billed
premium_fully_earned_at_inceptionIndicates if the premium is fully earned at inception
premium_added_to_other_itemIndicates if the premium is added to another item
disallow_submit_boundIndicates if submitting bound is disallowed
display_on_dec_asHow the item should be displayed on declaration
dec_font_sizeFont size for declaration
dec_font_boldIndicates if the font should be bold in declaration
dec_font_italicIndicates if the font should be italic in declaration
dec_aliasesAliases for declarations display
do_not_display_in_dec_rating_informationIndicates if the item should not be displayed in declaration rating information
do_not_display_in_dec_when_zero_premiumIndicates if the item should not be displayed in declaration when premium is zero
display_in_dec_as_incl_when_zero_premiumIndicates if the item should be displayed as included in declaration when premium is zero
show_limit_and_premium_on_decIndicates if limit and premium should be shown on declaration
dividend_factorDividend factor for the Line Item
show_in_builderSpecifies where the item should be shown in the builder
hide_in_britequoteIndicates if the item should be hidden in BriteQuote
limit_availabilitySpecifies the limit availability for the Line Item
loss_exposureIndicates if the item represents a loss exposure
loss_free_creditDetails about loss-free credit
no_commission_paid_on_line_itemIndicates if no commission is paid on this Line Item
override_limitIndicates if the limit can be overridden
not_applicable_for_agency_billingIndicates if the item is not applicable for agency billing
prevent_from_being_deletedIndicates if the item should be prevented from being deleted
display_user_inputs_above_rate_categoriesIndicates if user inputs should be displayed above rate categories
renewal_amountRenewal amount for the Line Item
default_loss_reserveDefault loss reserve amount
default_adjusting_reserveDefault adjusting reserve amount
default_legal_reserveDefault legal reserve amount
modifies_other_items_on_renewalIndicates if this item modifies other items on renewal
not_rated_by_prorata_and_factorIndicates if the item is not rated by pro-rata and factor
Rate chain for the Line Item
renewal_split_bySpecifies how renewal is split
Zip code factors for renewal
renewal_factor_item_idsLine item IDs whose limit this item inflates at renewal (inflation guard targets)
round_methodRounding method for calculations
round_toSpecifies to what decimal place to round
round_pro_rataIndicates if pro-rata should be rounded
scheduled_itemDetails about scheduled item
skip_persistent_builder_when_added_mandatorilyIndicates if persistent builder should be skipped when added mandatorily
skip_persistent_builder_when_new_category_addedIndicates if persistent builder should be skipped when new category is added
disallow_submit_bound_if_limit_exceedsIndicates if submitting bound should be disallowed if limit exceeds
submit_bound_upper_limitUpper limit for submitting bound
pro_rate_feeIndicates if fee should be pro-rated
sort_orderSort order for the Line Item
claim_coverage_party_typeSpecifies the claim coverage party type
calculate_item_commission_rateIndicates if item commission rate should be calculated
commission_rate_evalCommission rate evaluation
erp_enabledIndicates if Extended Reporting Period (ERP) is enabled for this Line Item
default_erp_duration_daysDefault duration in days for the Extended Reporting Period (ERP)
erp_line_item_idReference to the Line Item used for ERP calculations
modify_policy_type_item › Responses
successIndicates if the request was successful
modify_sub_line
Code
modify_sub_line › Request Body
idUnique identifier for the Subline
nameName of the Subline
categoryCategory of the Subline (Policy or Risk)
requirement_typeRequirement type of the Subline
typeType of the Subline
policy_type_idUUID of the parent policy type this subline belongs to
external_system_referenceExternal System Reference for the Line Item
allow_multiplesIndicates if multiple instances of this Subline are allowed
name_edit_allowedIndicates if editing the name of the Subline is allowed
sort_orderSort order for the Subline
descriptionDescription of the Subline
system_tagsSystem tags associated with the Subline
hide_fromSpecifies where the Subline should be hidden from
List of line items associated with this Subline
modify_sub_line › Responses
successIndicates if the request was successful
remove_form_from_policy_type
Code
remove_form_from_policy_type › Request Body
form_idThe x_policy_types_docs row's own id (NOT File.id). The row and stored file are kept for audit purposes; only File.active is set to false.
remove_form_from_policy_type › Responses
successremove_form_from_policy_type_item
Code
remove_form_from_policy_type_item › Request Body
form_idThe x_policy_type_items_docs row's own id (NOT File.id). The row and stored file are kept for audit purposes; only File.active is set to false.
remove_form_from_policy_type_item › Responses
successretrieve_policy_type_claims_tabs_visibility
retrieve_policy_type_claims_tabs_visibility
retrieve_policy_type_claims_tabs_visibility › Request Body
policy_type_idPolicy Type ID for retrieving claims tabs visibility
retrieve_policy_type_claims_tabs_visibility › Responses
successIndicates if the request was successful
retrieve_rating_table
Code
retrieve_rating_table › Request Body
idRating Table ID
pageNumber of page of the pagination for the grid point factors
page_sizePage size of the pagination for the grid point factors
sort_byGrid point column to sort by
sort_orderretrieve_rating_table › Responses
successIndicates if the request was successful
update_form_on_policy_type
Code
update_form_on_policy_type › Request Body
form_idThe x_policy_types_docs row's own id (NOT File.id) - see the 'form_id' field returned by list_forms_for_policy_type / attach_form_to_policy_type's metadata.
titleNew file name for the File record. Left unchanged when omitted. Null is accepted and also leaves it unchanged.
metadataPrint-flag metadata. PARTIAL update (merge, not replace): only the keys present in the request are written, and every field omitted here keeps its stored value. To clear a field, send it explicitly - null for form_code/edition_number/description/mortgagee_types, false for the flags - which is honored, not silently ignored. Omitting this object entirely, or sending {}, leaves the metadata row untouched.
update_form_on_policy_type › Responses
successupdate_form_on_policy_type_item
Code
update_form_on_policy_type_item › Request Body
form_idThe x_policy_type_items_docs row's own id (NOT File.id).
titleNew file name for the File record. Left unchanged when omitted. Null is accepted and also leaves it unchanged.
metadataPrint-flag metadata. PARTIAL update (merge, not replace): only the keys present in the request are written, and every field omitted here keeps its stored value. To clear a field, send it explicitly - null for form_code/edition_number/description/conditional_values/mortgagee_types/ntp_start_date/ntp_end_date, false for the flags, "gt" for conditional_premium_select - which is honored, not silently ignored. Omitting this object entirely, or sending {}, leaves the metadata row untouched.
update_form_on_policy_type_item › Responses
successupdate_policy_type_claims_tab_visibility
update_policy_type_claims_tab_visibility
update_policy_type_claims_tab_visibility › Request Body
policy_type_idPolicy Type ID for updating claims tab visibility
code_value_typeClaims tab visibility name
flaggedVisibility value
update_policy_type_claims_tab_visibility › Responses
Empty array
successIndicates if the request was successful
update_rating_table
Code
update_rating_table › Request Body
idID of the existing rating table to update
file_idID of the new uploaded file that will replace the existing rating table data
update_rating_table › Responses
successWhether the operation was successful
messagesList of informational messages
