FinBaze for Platforms

Components

Kind: view (fills its container) · Session key: taxAuthorisation · React: <FinBazeTaxAuthorisation />

Create the session#

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

Requirements#

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

Component features#

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

FeatureDefault
revokeon
hmrcConnecton
granton

Options#

Passed to instance.create("tax-authorisation", options) or as props.

OptionType
taxes("nl_vat" | "nl_icp" | "nl_oss" | "nl_cit" | "nl_annual_accounts" | "nl_wage_tax" | "nl_pension" | "uk_vat" | "uk_income_tax" | "uk_annual_accounts")[]Limit to these taxes.

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

Events#

EventReact prop
readyonReady
navigateonNavigate
erroronError
tax_authorisation.grantedonTaxAuthorisationGranted
tax_authorisation.revokedonTaxAuthorisationRevoked
hmrc.connectedonHmrcConnected

Use it#

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

<FinBazeTaxAuthorisation />
const component = instance.create("tax-authorisation");
component.mount("#finbaze");