Components
Kind: element (inline) · Session key: invoiceStatusBadge · React: <FinBazeInvoiceStatusBadge />
Create the session#
mutation {
createEmbedSession(input: {
companyId: "…"
user: { externalUserId: "…" }
components: { invoiceStatusBadge: { enabled: true } }
}) { clientSecret }
}
Requirements#
The company must have these features effective: sales_invoices. A hidden feature makes createEmbedSession fail with FEATURE_DISABLED.
Component features#
None.
Options#
Passed to instance.create("invoice-status-badge", options) or as props.
| Option | Type | |
|---|---|---|
invoiceId | string | The sales invoice. |
Every component also takes appearance and navigation ("internal" or "external").
Events#
| Event | React prop |
|---|---|
ready | onReady |
navigate | onNavigate |
error | onError |
click | onClick |
Use it#
import { FinBazeInvoiceStatusBadge } from "@finbaze/embed-react";
<FinBazeInvoiceStatusBadge />
const component = instance.create("invoice-status-badge");
component.mount("#finbaze");