FinBaze for Platforms

Components

Kind: view (fills its container) · Session key: vatReturn · React: <FinBazeVatReturn />

Create the session#

mutation {
  createEmbedSession(input: {
    companyId: "…"
    user: { externalUserId: "…" }
    components: { vatReturn: { 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.vatReturn.features.

FeatureDefault
submiton
paymenton
suppletieon
inlineConsenton

Options#

Passed to instance.create("vat-return", options) or as props.

OptionType
period"current" | "previous" | { year, quarter?, month? }Which period.
filingIdstringOpen a specific filing instead.

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

Events#

EventReact prop
readyonReady
navigateonNavigate
erroronError
filing.submittedonFilingSubmitted
payment.requestedonPaymentRequested
tax_authorisation.grantedonTaxAuthorisationGranted

Use it#

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

<FinBazeVatReturn />
const component = instance.create("vat-return");
component.mount("#finbaze");