Components
Kind: view (fills its container) · Session key: citReturn · React: <FinBazeCitReturn />
Create the session#
mutation {
createEmbedSession(input: {
companyId: "…"
user: { externalUserId: "…" }
components: { citReturn: { enabled: true } }
}) { clientSecret }
}
Requirements#
The company must have these features effective: tax_filings, corporate_income_tax. A hidden feature makes createEmbedSession fail with FEATURE_DISABLED.
Component features#
Switch these off per session with components.citReturn.features.
| Feature | Default |
|---|---|
submit | on |
inlineConsent | on |
Options#
Only the common options: appearance and navigation ("internal" or "external").
Events#
| Event | React prop |
|---|---|
ready | onReady |
navigate | onNavigate |
error | onError |
filing.submitted | onFilingSubmitted |
tax_authorisation.granted | onTaxAuthorisationGranted |
Use it#
import { FinBazeCitReturn } from "@finbaze/embed-react";
<FinBazeCitReturn />
const component = instance.create("cit-return");
component.mount("#finbaze");