FinBaze for Platforms

Components

Kind: element (inline) · Session key: receiptDropzone · React: <FinBazeReceiptDropzone />

Create the session#

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

Requirements#

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

Component features#

None.

Options#

Passed to instance.create("receipt-dropzone", options) or as props.

OptionType
transactionIdstringThe FinBaze transaction to attach the receipt to.
bankAccountIdstringWith transactionExternalId: the bank account the transaction belongs to.
transactionExternalIdstringYour id of the transaction (as delivered in the feed), with bankAccountId.
acceptstringThe file types the file dialog offers. Defaults to photos and PDFs.

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

Events#

EventReact prop
readyonReady
navigateonNavigate
erroronError
receipt.uploadedonReceiptUploaded
receipt.matchedonReceiptMatched

Use it#

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

<FinBazeReceiptDropzone />
const component = instance.create("receipt-dropzone");
component.mount("#finbaze");