FinBaze for Platforms

Components

Kind: view (fills its container) · Session key: payrollFilings · React: <FinBazePayrollFilings />

Create the session#

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

Requirements#

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

Component features#

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

FeatureDefault
prepareon
submiton
inlineConsenton

Options#

Passed to instance.create("payroll-filings", options) or as props.

OptionType
filingIdstringOpen this filing instead of the list.
type'lh' | 'upa'Which list to show first: wage tax (lh, default) or pension (upa).

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

Events#

EventReact prop
readyonReady
navigateonNavigate
erroronError
filing.submittedonFilingSubmitted
tax_authorisation.grantedonTaxAuthorisationGranted

Use it#

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

<FinBazePayrollFilings />
const component = instance.create("payroll-filings");
component.mount("#finbaze");