Options
| Option | Type | Description |
|---|---|---|
apiUrl required | string | Environment URL, for example https://partner.sb.getid.dev or https://partner.getid.ee |
jwt required | string | Session token from POST /sdk/v2/token. During development, sdkKey works instead. |
containerId required | string | ID of the HTML element to render the flow in |
flowName required | string | Flow name from the Backoffice |
locale | string | Language code, for example en, de or ar_SA. See Localization for all codes. |
dictionary | string | Name of a custom translation dictionary. See Localization. |
themeMode | string | Theme to use when the flow has Light & Dark themes, for example light. See Flows. |
metadata.externalId | string | Your customer or session ID. Not unique. |
metadata.labels | object | Up to 30 string key-value pairs |
profile | array | Known applicant data as { category, value } items, for cross-checking and prefilling. See Applicant data. |
address.country | string | Expected address for Proof of Address. ISO alpha-3. |
address.postcode | string | Postcode |
address.addressLine | string | Street and number |
address.city | string | City |
acceptableDocuments | function | Narrows the flow’s accepted documents for this session. Returns the countries and document types to accept, as { country, documentTypes }[]. See Accepted documents per session. |
Callbacks
| Callback | Receives | Called when |
|---|---|---|
onComplete | { applicationId } | The applicant has submitted everything. With onVerificationComplete set, after processing is done. |
onFail | { code, message } | The flow can’t continue |
onClose | { code, message } | The applicant clicks the close button. Setting this callback shows the button. |
onTrackEvent | object | Each step and error, for analytics |
onBack | Nothing | The applicant clicks the back button on the first screen. Setting this callback shows the button. |
onVerificationComplete | The verification result | Processing is done, while the applicant is on the wait screen. Setting it makes the SDK wait for the result before it finishes. |