Skip to main content

Responses and comparison

Status: Insurance Broker Core version 1.0.0 is repo-ready; Tender commands are API-only and nothing is sent to carriers.

Once the invitations exist, the answers of the carriers have to be entered by a person: the system does not receive or read them. This page describes the commands that record a quote, a decline, a revision, or a not-considered decision, the command that builds the comparison, and how to look at the result in the Desk.

Today (API)​

Who does this​

Insurance Broker Advisor runs all commands on this page. Insurance Broker Administrator and Insurance Broker Advisor can create and edit the quote and comparison records. Insurance Broker Auditor and Insurance Broker Read Only can read them.

Before you start​

  • The tender and its invitations exist, see Prepare and invite.
  • You know the company, the invitation names, and, for a revision, the quote names.
  • Every command below is one call of insurance_broker_core.api.tender.execute_tender_command with the command name in the first column of the tables and the fields listed there. The payload always carries company; the API checks that you may act for that company and that the record belongs to it.

Commands​

CommandRequired fieldsRoleEffect
record_quotecompany, invitation, values (an object)Insurance Broker AdvisorCreates the Insurance Broker Submission with status submitted if the invitation has none, creates an Insurance Broker Quote with status received, sets the submission to quoted and the invitation to quoted. Returns the quote name.
record_declinecompany, invitation, reasonInsurance Broker AdvisorCreates the submission if needed, sets it to declined with the reason as carrier response, and sets the invitation to declined with the decline reason.
mark_invitation_not_consideredcompany, invitation, decision, reasonInsurance Broker AdvisorSets the invitation to not_considered with the reason. The decision is the name of the Insurance Broker Customer Decision linked on the tender.
create_quote_revisioncompany, source_quote, revision_keyInsurance Broker AdvisorCreates a new version of a current quote and marks the source quote as no longer current.
build_comparisoncompany, tenderInsurance Broker AdvisorCreates an Insurance Broker Quote Comparison and links it in the Quote Comparison field of the tender.

Text fields must be non-empty text, otherwise the answer is IBC-TENDER-COMMAND-PAYLOAD-003; a missing field gives IBC-TENDER-COMMAND-PAYLOAD-002.

Steps: record a quote​

The list of submissions created for the invited carriers of a tender, with advice case, carrier, product class and status.

API-only synthetic response record: carrier answers are entered by a person or API call; the system does not read them from a carrier.

  1. Bring the tender to responses_open with the commands from the previous page. The command record_quote itself does not check the state of the tender.
  2. Call record_quote with company, the invitation name, and the values object described below.
  3. Reload the invitation form. Its Status is quoted and its Submission field is filled; its Sent At field is set by this step.
  4. Open the new quote from the Submission or search the Insurance Broker Quote list to check the values.

The system fills company, advice case, submission, carrier, and status from the invitation and tender. The values object carries the rest of the quote:

ValueTypeRequiredMeaning
product_versionlink to Insurance Broker Product VersionYesThe carrier product version quoted.
quote_referencetextYesThe carrier's reference.
coverage_basis_digesttextYesA digest of the coverage basis; used to detect non-comparable quotes.
terms_jsonobjectYesThe quote terms.
quote_versionwhole numberNoDefaults to 1.
is_currentyes or noNoDefaults to yes.
valid_untildateNoValidity of the quote.
annual_premiumcurrency amountNoThe annual premium.
currencylink to CurrencyNoThe premium currency.
document_referencelink to Insurance Broker Document ReferenceNoA linked document.

The call is rejected with IBC-TENDER-003 when the response deadline of the invitation has passed. Creating the submission is also checked against the capability admission, so a company without a valid admission for the product class gets IBC-CAP-NOT-ADMITTED-001, and a blocked or model-only class gets IBC-CAP-BLOCKED-001.

Steps: record a decline​

  1. Call record_decline with company, the invitation, and a non-empty reason.
  2. Reload the invitation: Status is declined and Decline Reason holds your text.

A decline excludes the invitation from the comparison. The call has no deadline check.

Steps: record a revision​

  1. Call create_quote_revision with company, the source_quote, and a revision_key of your choice.
  2. The system creates a copy with the version number increased by one and the Previous Quote field set. The source quote is no longer current.
  3. Calling again with the same revision_key returns the existing revision and creates nothing.

A source quote that is no longer current is rejected with IBC-QUOTE-REVISION-STALE-001; an empty key with IBC-QUOTE-REVISION-KEY-001. Build the comparison after revising, so that it lists the current version.

Steps: mark an invitation as not considered​

This is meant for carriers that the customer did not select. Prepare the data first.

  1. Create an Insurance Broker Customer Decision in the Desk. Its required fields are Company, Advice Case, Decision, Decided At, Decision Maker, and Delivery Evidence; Selected Quote names the chosen quote.
  2. Open the tender and set its Customer Decision field to this record, then save.
  3. Call mark_invitation_not_considered with company, the invitation, the decision name, and a reason.
  4. Reload the invitation: Status is not_considered and Not Considered Reason holds your text.

Repeating the call with the same reason changes nothing. The system records the status only; it does not tell the carrier.

CodeMeaning
IBC-TENDER-009The reason is empty, the decision is not the one linked on the tender, or the decision, its selected quote, or the company scope does not fit the tender.
IBC-TENDER-010The carrier of the selected quote cannot be marked as not considered.
IBC-TENDER-011The invitation is already not considered with a different reason.

Steps: build the comparison​

A quote comparison built from the quotes received for a tender, with the coverage basis digest and the recorded comparison data.

API-only synthetic comparison: it records comparable quotes but does not automatically rank them or choose a carrier.

  1. Call build_comparison with company and the tender.
  2. Reload the tender: the Quote Comparison field now names the new record.
  3. Open the Insurance Broker Quote Comparison from the sidebar link Quote Comparisons.

The comparison contains every current quote with status received of the invitations that have status quoted. Declined and not considered invitations do not appear. It is a list of figures, not a ranking; the system does not choose a carrier.

Comparison fieldMeaning
Tender, Advice Case, CompanyWhere the comparison belongs.
Quote ReferencesThe names of the quotes included.
ComparisonThe listed values per quote: name, carrier, annual premium, currency, coverage basis digest, quote version.
Coverage Basis DigestThe shared digest, or the text mixed when the quotes differ.
Non-comparable WarningChecked when the quotes do not share one coverage basis digest. Treat the figures as not comparable.
Recorded At, DigestWhen the comparison was written, and a digest of its content.

When there is no received current quote, the call fails with IBC-TENDER-008. A quote reference check can also stop it if a reference is repeated, not current, or from another company.

Steps: continue the tender​

After the comparison exists, run start_comparison with transition_tender while the tender is in responses_open. Without a linked comparison the command fails with IBC-TENDER-008. The tender then moves to comparison. The next step, recommend, is described on Recommendation and decision.

What the system checks​

CodeMeaning
IBC-TENDER-003The response deadline of the invitation has passed.
IBC-TENDER-005The invitation or submission does not fit the tender.
IBC-TENDER-008No quote comparison, or no received current quote.
IBC-TENDER-009, IBC-TENDER-010, IBC-TENDER-011Not-considered rules above.
IBC-TENDER-COMMAND-ROLE-001The user lacks the Advisor role.
IBC-TENDER-COMMAND-SCOPE-001The record is missing, belongs to another company, or the company is not authorized.

Capability status​

The capability matrix lists the process quote_comparison with default status model_only and no validated claims. The submission check uses the process name comparison. Only validated capabilities may be asserted publicly, and this page asserts none.

Planned Desk workflow​

A Desk workflow for tender commands is planned. This page does not describe it and gives no date and no scope.