FinBaze for Platforms

Components

Kind: view (fills its container) · Session key: ukItsa · React: <FinBazeUkItsa />

Create the session#

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

Requirements#

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

Component features#

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

FeatureDefault
prepareon
submiton
inlineConsenton
hmrcConnecton

Options#

Passed to instance.create("uk-itsa", options) or as props.

OptionType
filingIdstringOpen this filing instead of the list of periods.

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

Events#

EventReact prop
readyonReady
navigateonNavigate
erroronError
filing.submittedonFilingSubmitted
hmrc.connectedonHmrcConnected

Use it#

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

<FinBazeUkItsa />
const component = instance.create("uk-itsa");
component.mount("#finbaze");