Options
Required
importerKey: string
This can be found in the admin panel.
importerKey = "importer-key";
Optional
user: json object
Contains details of the user, so that they can be identified when your backend receives a webhook.
user={{ userId: "12345" }}
metadata: json object
If you have additional data which you want to associate with the import but isn't related to the user, you can use the metadata
prop. This will also be included in the webhook your backend receives.
metadata={{ anotherId: "123" }}
downloadExampleButton: boolean
Choose if you want to display the Download Example
button found in the first Getting Started step in the importer.
Default value is true
sampleFileURL: string
Used to set your sample file URL that will be downloaded when clicking the Download Example
button found in the first Getting Started step in the importer.
defaultLanguage: enum
type Language = "en" | "fr" | "es" | "pt" | "de" | "nl" | "it";
Used to set the importer default language. defaultLanguage
option has a higher priority than the default language set in the admin panel.
acceptedFileFormats: array
type acceptedFileFormats = Array<"xls" | "xlsx" | "xlsb" | "csv">;
Used to set accepted file formats. The default value is ["csv", "xls", "xlsx", "xlsb"]