Start linking a bank account
fizen_start_linkingStarts bank account-information consent, returning the consent state and bank login redirect so end users can approve access; approved account IDs are sent to your AIS callback.
Instructions
Starts the account information consent at a bank. Returns the consent state (keep it) and redirectUri, the bank page where the end user logs in and approves access. After approval the user returns to your redirect address and Fizen posts the account ids to the AIS callback address configured for your API client.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"bankId": "<bankId>",
"redirectUri": "<redirectUri>"
},
"name": "fizen_start_linking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nip | No | Company tax number (NIP, 10 digits). Required for company accounts at BNP Paribas and Credit Agricole. | |
| bankId | Yes | Bank identifier from fizen_list_banks, e.g. "mbank" or "fizenbank" (sandbox test bank). | |
| userId | No | Your own id of the end user (up to 40 characters). Consents with the same userId and bank are grouped, which extends how long history can be read. | |
| endUserIp | No | The end user's IP address, when known. | |
| accountType | No | "company" for business accounts: the API uses "<bankId>-company" paths. Default "retail". | retail |
| redirectUri | Yes | Where the end user returns after approving at the bank (http or https). | |
| endUserAgent | No | The end user's browser user agent, when known. | |
| limitedScope | No | true: access limited to basic account data. | |
| psuContextIdentifierValue | No | Required for company accounts at PKO BP: the value from PKO's online banking. |