Connection options
Choose the providers the user sees, the data the consent asks for, and how the journey opens and returns.
These POST /connections fields change what the user sees in the journey and what the consent asks the bank for. A provider is a bank, card issuer or other institution the user can connect to.
- Start with: the basic request in Creating your first connection.
- What you can set: the providers offered, who the user is, the data requested, and how the journey opens and returns.
- Full request: see Create connection.
{
"providerIds": ["leumi", "hapoalim"],
"psuId": "000000018",
"restrictedTo": ["CACC", "CARD"],
"language": "en",
"redirectUrl": "https://your-app.example/bank-return"
}Choose the providers
| Field | What it does |
|---|---|
providerIds | Provider IDs to offer, from providerFriendlyId in Providers. With one ID, the journey skips the provider list and opens that provider. With several, only those are listed. |
includeFakeProviders | Lists sandbox providers. Until your organization has production access, it must be true, or the request returns 400. The Display sandbox providers option in the Journey settings must also be on. See Testing with fake bank data. |
excludeCreditCardProviders | true hides card issuers (type: CARD) from the journey. |
allowInsurance | true shows the insurance tab in the provider list when insurance providers are available. |
allowBusiness | Lets the user connect a business account. See Business accounts. |
Before you send a user to one provider, check that it accepts new consents. See Providers.
How providerIds is filtered
- Sandbox IDs in
providerIdsare removed unless sandbox providers are included. If no ID remains, the journey is not limited to any provider. - Sending
beinleumialso addsotsarHahayal,masadandpagi, so the journey lists all four.
Identify the user
PSU means the bank customer: the user who approves the consent.
| Field | What it does |
|---|---|
psuId | The user's Israeli ID number (teudat zehut). The journey shows it filled in and the user cannot change it. An ID number shorter than 9 digits is padded with leading zeros. |
psuCorporateId | The company number for a business connection. See Business accounts. |
customerId | Your identifier for the customer, returned as the connection's customerId. Without it, customerId is the company number or psuId. |
Choose the data
restrictedTo lists the account types the consent asks for:
| Code | Account type | accountType in the data |
|---|---|---|
CACC | Current accounts | CHECKING |
CARD | Cards | CARD |
LOAN | Loans, including mortgages | LOAN |
SVGS | Savings and deposits | SAVINGS |
SCTS | Securities | SECURITIES |
- Without
restrictedTo, the provider'stypedecides. See Which data a bank provides. - The bank decides what it shares and can return fewer types.
bitis always limited toCACC.
| Field | What it does |
|---|---|
expiryDate | When the consent ends. It must be in the future and less than 3 years away. Default: 3 years. See Consent lifecycle. |
refreshData | true asks the bank for a recurring consent; false for a one-off consent. It also sets the status after a successful collection. See Creating your first connection. |
When users choose in the journeyIf your organization lets users choose the consent duration and the shared data in the journey, their choices take precedence over
restrictedTo,expiryDateandrefreshData.
Specific accounts
Use access when you already know which account you need. It asks for specific accounts instead of account types. Its accounts, balances and transactions lists each take objects with an iban, or a bban in the form bank-branch-account, which is converted to an IBAN.
{
"access": {
"accounts": [{ "bban": "12-345-678901" }],
"balances": [{ "bban": "12-345-678901" }],
"transactions": [{ "bban": "12-345-678901" }]
}
}When accounts is not empty, restrictedTo is not sent to the bank. If you leave out balances or transactions, they are not requested.
The journey and the return
| Field | What it does |
|---|---|
language | he or en. The journey opens in this language. |
iframe | true when you embed the journey in an iframe. See Iframe Support. |
redirectUrl | Where the browser goes when the journey ends. If your organization restricts redirect domains, it must start with an allowed domain, or the request returns 400. Without it, your organization's default redirect URL is used, if one is set. See what returns to redirectUrl. |
callbackInformation | A webhook for this connection only. See Per-request webhook. |
How long connectUrl works
connectUrl expires 24 hours after you create the connection. It is a short link to the journey, and a link that no longer exists opens a "not found" page there. To send the user again, create a new connection.
Next steps
Updated about 3 hours ago
