FinBaze for Platforms

Components

Kind: view (fills its container) · Session key: annualAccounts · React: <FinBazeAnnualAccounts />

Create the session#

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

Requirements#

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

Component features#

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

FeatureDefault
editon
approveon
submiton
inlineConsenton

Options#

Passed to instance.create("annual-accounts", options) or as props.

OptionType
dossierIdstringOpen this annual accounts dossier instead of the list of years.

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

Events#

EventReact prop
readyonReady
navigateonNavigate
erroronError
filing.submittedonFilingSubmitted
tax_authorisation.grantedonTaxAuthorisationGranted

Use it#

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

<FinBazeAnnualAccounts />
const component = instance.create("annual-accounts");
component.mount("#finbaze");