FinBaze for Platforms

Components

Kind: view (fills its container) · Session key: quotes · React: <FinBazeQuotes />

Create the session#

mutation {
  createEmbedSession(input: {
    companyId: "…"
    user: { externalUserId: "…" }
    components: { quotes: { enabled: true } }
  }) { clientSecret }
}

Requirements#

The company must have these features effective: quotes. A hidden feature makes createEmbedSession fail with FEATURE_DISABLED.

Component features#

Switch these off per session with components.quotes.features.

FeatureDefault
sendon
converton

Options#

Passed to instance.create("quotes", options) or as props.

OptionType
quoteIdstringOpen this quote instead of the list.

Every component also takes appearance and navigation ("internal" or "external").

Events#

EventReact prop
readyonReady
navigateonNavigate
erroronError
quote.sentonQuoteSent
quote.convertedonQuoteConverted
quote.selectedonQuoteSelected

Use it#

import { FinBazeQuotes } from "@finbaze/embed-react";

<FinBazeQuotes />
const component = instance.create("quotes");
component.mount("#finbaze");