Warning
This guide is specific to Web SDK 2.x. For Web SDK 1.x, you can find documentation here.
Do not attempt to upgrade or implement without support. Contact your Incode representative to check if you are a candidate for this upgrade.
The Watchlist for Business module collects a country and business name from the user, plus an optional Tax ID and date of incorporation when they are enabled, then screens against Incode's business-watchlist endpoint. Differs from the personal Watchlist modules in that it has user input — it's a form-based flow followed by a backend submit.
This module follows the form-based pattern.
Availability
This module is headless-only — there is no public <incode-watchlist-for-business> web component. Drive it with createWatchlistForBusinessManager from @incodetech/core/watchlist-for-business.
Configuration
Every field is optional. Without configuration, the module collects only country and business name:
type WatchlistForBusinessConfig = {
taxIdEnabled?: boolean;
dateOfIncorporationEnabled?: boolean;
countrySource?: 'userInput' | 'eKYBData';
businessNameSource?: 'userInput' | 'eKYBData';
};
| Field | Description |
|---|---|
taxIdEnabled |
Shows the optional Tax ID input. |
dateOfIncorporationEnabled |
Shows the optional date-of-incorporation input. |
countrySource |
Reserved. The country is always collected from the user. |
businessNameSource |
Reserved. The business name is always collected from the user. |
In a flow, the backend sends taxIdEnabled and dateOfIncorporationEnabled when the AML Watcher integration is provisioned, and the SDK passes them to the module. Headless, pass the config to the manager:
const manager = createWatchlistForBusinessManager({
config: { taxIdEnabled: true, dateOfIncorporationEnabled: true },
});
Country list and threshold rules are configured server-side.
Optional fields
Country and business name are the only required fields. Tax ID and date of incorporation never block submission when they are left blank:
- A blank or whitespace-only optional field is left out of the request. It is never sent as an empty string.
- Filled values are trimmed before they are sent.
- An optional field is sent only when its
*Enabledflag istrue. - A filled Tax ID for Brazil (
BR) must be a valid CNPJ. No format rule applies to other countries. - The date of incorporation uses
YYYY-MM-DDand cannot be later than today in the user's local time.
State machine
WatchlistForBusinessState is a discriminated union over status:
| Status | Description |
|---|---|
idle |
Initial state. |
form |
Rendering the form (country, business name, and any enabled optional inputs). |
submitting |
Submitting the form to the backend. |
success |
Submission accepted. |
finished |
Terminal. |
Form-state properties
| Property | Type | Description |
|---|---|---|
country |
string |
Selected ISO country code. |
businessName |
string |
Current business name. |
taxId |
string |
Current Tax ID. '' when not set. |
dateOfIncorporation |
string |
Current date of incorporation as YYYY-MM-DD. '' when not set. |
showTaxId |
boolean |
Whether the config enables the Tax ID input. |
showDateOfIncorporation |
boolean |
Whether the config enables the date-of-incorporation input. |
maxDateOfIncorporation |
string |
Latest allowed date of incorporation as YYYY-MM-DD: today in the user's local time. Use it as the date input's max. |
isValid |
boolean |
Whether the required business name is filled. Optional fields never affect it. |
validationErrors |
{ businessName?: string; taxId?: string; dateOfIncorporation?: string } (optional) |
Translation keys for the required-name error, an invalid Brazilian CNPJ, and a future date of incorporation. |
canSubmit |
boolean |
Whether Continue is enabled. |
These properties exist only in form. canSubmit is optimistic: Continue starts enabled and required-field errors appear after a failed submit. It does not prove completeness.
API methods
| Method | Purpose | Callable when |
|---|---|---|
load() |
Enter the form. Call this before setting inputs. | idle |
setCountry(country) |
Set the ISO country code. | form |
setBusinessName(value) |
Set the business name. | form |
setTaxId(value) |
Set the optional Tax ID. | form |
setDateOfIncorporation(value) |
Set the optional date of incorporation (YYYY-MM-DD). |
form |
submit() |
Validate and submit the inputs. | form |
import { createWatchlistForBusinessManager } from '@incodetech/core/watchlist-for-business';
const manager = createWatchlistForBusinessManager({
config: { taxIdEnabled: true },
});
manager.load();
if (manager.getState().status === 'form') {
manager.setCountry('US');
manager.setBusinessName('Example Business');
manager.setTaxId('12-3456789'); // optional
// Submit in response to the user's Continue action:
manager.submit();
}
Subscribe before loading to render state changes. On teardown, unsubscribe and call stop(); create a new manager for a new verification.
See also
- Module: Watchlist: personal sanctions / PEP screening
- Module: Custom Watchlist: face-based blocklist
- Module Patterns → form-based
- Individual Modules