Create a Mandate with the Open Finance Journey
Send your customer a mandate link, and let them pick their bank, enter the account and approve.
Use this to send your customer a link. You create it with what you know, send it to the customer, and the Open Finance journey asks for the rest. POST /v2/mandates always returns a link and never goes to the bank; to go to the bank yourself, use Create a Mandate Directly at the Bank.
Step 1: Create Token
Endpoint: POST https://api.open-finance.ai/oauth/token
{
"userId": "your-user-id",
"clientId": "your-client-id",
"clientSecret": "your-client-secret"
}Step 2: Create the Mandate Link
Endpoint: POST https://api.open-finance.ai/v2/mandates
Security: Bearer token with create:mandates scope
Request Example
{
"providerIds": ["hapoalim", "mizrahi"],
"redirectUrl": "https://yourapp.com/mandate-complete",
"mandateInformation": {
"creditorInstitutionCode": "23954",
"maxAmount": 1000,
"endDate": "2027-10-19",
"mandateReference": "SUB-1042"
}
}Request Fields
| Field | Required | Description |
|---|---|---|
mandateInformation.creditorInstitutionCode | Yes | Your institution code (קוד מוסד) at Masav. The only required field. |
mandateInformation.maxAmount | No | Limit per charge, at least 1. Omit it for a mandate without a limit. |
mandateInformation.frequency | No | How often you charge. Requires providerIds (see below). |
mandateInformation.startDate | No | First charge date, YYYY-MM-DD. Requires providerIds. |
mandateInformation.endDate | No | Expiry date, YYYY-MM-DD. Without it the mandate is valid until cancelled. |
mandateInformation.mandateReference | No | Your reference (מספר אסמכתא), up to 35 characters. |
mandateInformation.debtorAccountType, debtorAccountNumber | No | The account to charge, sent together: bban (e.g. 12-134-064543) or iban. Its bank becomes the only bank offered. |
providerIds | No | The banks the customer can choose from, e.g. ["hapoalim", "mizrahi"]. Without it, every bank that takes mandates is offered. |
providerBankNumbers | No | The same, as bank numbers, e.g. [12, 20]. Merged with providerIds. |
psuId | No | The customer's ID number. Required with psuCorporateId. |
psuCorporateId | No | Company number, for a business account. A business always sends both the company number and the ID number of the person who approves. |
allowBusiness | No | Let the customer choose a business account and enter a company number. Set automatically when you send psuCorporateId. |
includeFakeProviders | No | Offer sandbox banks in the journey. |
redirectUrl | No | Where the customer goes when the journey ends. Must be in your allowed domains. |
requestedCollectionDay | No | Day of the month the customer asked to be charged on: "3", "10", "18" or "24". Saved on the mandate for your records, never sent to the bank. |
Response (201)
{
"mandateId": "01J9ZK2P7R4V1W6X3M5L0A8B7C",
"mandateStatus": "INACTIVE",
"mandateUrl": "https://api.open-finance.ai/su/01J9ZK2P9S3T0U5V2W4X6Y8Z1A"
}The link is valid for 24 hours.
What You Send Is Locked in the Journey
As in payment and connection links, every value you send is shown prefilled and cannot be changed by the customer:
| You send | In the journey |
|---|---|
psuId | The ID number is filled in and locked, for a private and a business customer alike. |
psuCorporateId | The customer is a business; the company number is filled in and locked. |
| A debtor account | The bank, branch and account number are filled in and locked. |
One bank in providerIds | That bank is selected and locked. |
The journey checks the ID number and the company number (check digit; a company number has 8 or 9 digits) before it calls the bank.
Or create the link from the Dashboard
In the Dashboard, open Debit mandates and click New mandate. The form sends the same request as this step and returns the mandate link to send to your customer.

Dashboard → Debit mandates → New mandate (sample values)
- Institution code is
mandateInformation.creditorInstitutionCode. Limit per charge ismaxAmount. Turn on No limit to leave it out. - Bank sets
providerIds. Frequency and First charge date can only be set after you choose a bank that supports them. - Valid until is
endDate. Without it the mandate is valid until cancelled. - Customer ID (
psuId), Allow businesses (allowBusiness) and Include Sandbox Providers (includeFakeProviders) work as in the table above. Advanced settings holdsredirectUrl.
Step 3: The Customer Completes the Journey
- The customer reads what a mandate is and their rights, and accepts the terms.
- They see your terms (charge limit, frequency, expiry), pick their bank, and enter their ID, branch and account number.
- The journey creates the mandate at the bank (
POST https://api.open-finance.ai/v2/mandates/open-banking-initwith themandateId, called by the journey, not by you) and sends the customer to the bank to approve. - After approval, the customer returns to
redirectUrland you receive the webhook.
If the customer leaves before approving at the bank and opens the link again, the journey goes straight back to the bank approval step.
When the customer goes to the bank
| With Open Finance screens | Straight to the bank (init) | |
|---|---|---|
| The moment | The customer picks the bank and enters the account in the journey. The journey creates the mandate at the bank and sends the customer there | You redirect the customer to scaOAuth, right after the init call |
| Status and webhook | The bank's status, usually RCVD, with a Mandate Status Change webhook. Until then the mandate is INACTIVE | The bank's status, usually RCVD, with a Mandate Status Change webhook |
| Link valid for | mandateUrl: 24 hours from creation | scaOAuth: a few minutes, and the time differs per bank. Redirect the customer at once |
In the sandbox there is no RCVD: the mandate stays INACTIVE until the customer returns. To compare every flow, see Open Finance screens or straight to the bank.
What Is Checked, and When
| Check | When | Message |
|---|---|---|
maxAmount at least 1 | Link creation | 400 validation error |
endDate after today and after startDate | Link creation, and again when the customer starts | mandateInformation.endDate must be after today (YYYY-MM-DD). |
frequency or startDate without providerIds | Link creation | providerIds is required when mandateInformation.frequency is set, because a time period is supported only by some providers: hapoalim, mizrahi. |
A bank in providerIds that does not support a term or does not take mandates | Link creation | PARAMETER_NOT_SUPPORTED, naming the supported banks |
A debtor account whose bank is not in providerIds | Link creation | 400, naming the account's bank |
psuCorporateId without psuId | Link creation | 400 validation error |
Without providerIds, the journey hides the banks that do not support the frequency or first charge date you set. A bank that cannot take another term is refused when the customer picks it, with the same message.
Step 4: Track the Mandate
Listen to the webhook, or call GET https://api.open-finance.ai/v2/mandates/{mandateId}/status for the live status. See Overview for the statuses.
Next steps
Updated 2 days ago
