Components
Kind: view (fills its container) · Session key: us1120 · React: <FinBazeUs1120 />
Create the session#
mutation {
createEmbedSession(input: {
companyId: "…"
user: { externalUserId: "…" }
components: { us1120: { enabled: true } }
}) { clientSecret }
}
Requirements#
The company must have these features effective: tax_filings, us_federal_tax. A hidden feature makes createEmbedSession fail with FEATURE_DISABLED.
Component features#
Switch these off per session with components.us1120.features.
| Feature | Default |
|---|---|
prepare | on |
export | on |
Options#
Passed to instance.create("us-1120", options) or as props.
| Option | Type | |
|---|---|---|
filingId | string | Open this filing instead of the list of tax years. |
Every component also takes appearance and navigation ("internal" or "external").
Events#
| Event | React prop |
|---|---|
ready | onReady |
navigate | onNavigate |
error | onError |
filing.prepared | onFilingPrepared |
Use it#
import { FinBazeUs1120 } from "@finbaze/embed-react";
<FinBazeUs1120 />
const component = instance.create("us-1120");
component.mount("#finbaze");