FinBaze for Platforms

Components

Kind: view (fills its container) · Session key: costCenters · React: <FinBazeCostCenters />

Create the session#

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

Requirements#

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

Component features#

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

FeatureDefault
createon
editon

Options#

Only the common options: appearance and navigation ("internal" or "external").

Events#

EventReact prop
readyonReady
navigateonNavigate
erroronError
cost_center.createdonCostCenterCreated
cost_center.updatedonCostCenterUpdated

Use it#

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

<FinBazeCostCenters />
const component = instance.create("cost-centers");
component.mount("#finbaze");