Create a Mandate Directly at the Bank

Create a mandate at the customer's bank in one call, and get the bank approval link right away.


Use this when you already have your customer's ID number and bank account, and you want to send them straight to their bank to approve. Like POST /pay/open-banking-init for payments, one call creates the mandate and starts it 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 at the Bank

Endpoint: POST https://api.open-finance.ai/v2/mandates/open-banking-init

Security: Bearer token with create:mandates scope

Request Example

{
  "providerId": "leumi",
  "psuId": "000000018",
  "mandateInformation": {
    "creditorInstitutionCode": "23954",
    "maxAmount": 1000,
    "endDate": "2027-10-19",
    "debtorAccountType": "bban",
    "debtorAccountNumber": "10-800-123456"
  }
}

Request Fields

FieldRequiredDescription
providerIdYesThe bank, e.g. leumi.
psuIdYesID number of the account owner who approves.
mandateInformation.creditorInstitutionCodeYesYour institution code (קוד מוסד) at Masav.
mandateInformation.debtorAccountTypeYesbban (bank-branch-account, e.g. 12-134-064543) or iban.
mandateInformation.debtorAccountNumberYesThe account to charge.
psuCorporateIdNoCompany number, for a business account. The bank receives both the company number and the ID number of the person who approves.
redirectUrlNoWhere the customer goes after the bank. Must be in your allowed domains.
includeFakeProvidersNoRequired to use a sandbox bank.
requestedCollectionDayNoDay 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. With a mandateId, it replaces the day sent when the link was created.
mandateInformation.maxAmountNoLimit per charge. Omit it for a mandate without a limit.
mandateInformation.frequency, startDateNoHapoalim and Mizrahi only.
mandateInformation.endDateNoExpiry date, YYYY-MM-DD, after today.
mandateInformation.mandateReferenceNoYour reference (מספר אסמכתא), up to 35 characters.

Starting a Mandate You Created as a Link

Send the mandateId from POST /v2/mandates instead of mandateInformation. The terms are taken from the link, and redirectUrl, when sent, replaces the link's. The account is the one you sent when you created the link; if you did not send one, send debtorAccountType and debtorAccountNumber.

{
  "mandateId": "01J9ZK2P7R4V1W6X3M5L0A8B7C",
  "providerId": "leumi",
  "psuId": "000000018",
  "debtorAccountType": "bban",
  "debtorAccountNumber": "10-800-123456"
}

Response (200)

{
  "mandateId": "01J9ZK3Q8T5W2X7Y4N6M1B0C9D",
  "mandateStatus": "RCVD",
  "scaOAuth": "https://..."
}

Step 3: Send the Customer to the Bank

Redirect the customer to scaOAuth. They log in to their bank and approve the mandate. The ID number they log in with must belong to an owner of the account.

When the customer goes to the bank

With Open Finance screensStraight to the bank (init)
The momentThe customer picks the bank in the journey. The journey creates the mandate at the bank and sends the customer thereYou redirect the customer to scaOAuth, right after this call. Open Finance created the mandate at the bank during the call
Status and webhookThe bank's status, usually RCVD, with a Mandate Status Change webhook. Until then the mandate is INACTIVEThe bank's status, usually RCVD, with a Mandate Status Change webhook
Link valid formandateUrl: 24 hours from creationscaOAuth: a few minutes, and the time differs per bank. Redirect the customer at once
🚧

If the scaOAuth link expired

Create a new mandate. Init refuses a mandate that was already sent to the bank, with 409 Mandate was already started. To end the first one, call DELETE /v2/mandates/{mandateId}.

To compare every flow, see Open Finance screens or straight to the bank.

Step 4: Track the Mandate

You receive a webhook when the status changes. You can also call GET https://api.open-finance.ai/v2/mandates/{mandateId}/status, which reads the status from the bank:

{
  "id": "01J9ZK3Q8T5W2X7Y4N6M1B0C9D",
  "status": "ACTIVE",
  "providerId": "leumi",
  "providerIdentifier": "3f2c9a1e-7b41-4c0d-9e55-0a8d2b6c1f74",
  "psuId": "000000018",
  "creditorInstitutionCode": "23954",
  "debtorAccountType": "bban",
  "debtorAccountNumber": "10-800-123456",
  "maxAmount": 1000,
  "currency": "ILS",
  "endDate": "2027-10-19",
  "createdAt": "2026-10-19T12:30:04.311Z"
}

Expiry Date at Each Bank

Send one endDate. Open Finance passes it to each bank in the field that bank accepts:

BankSent as
Hapoalim, Mizrahi-Tefahot, Beinleumioccurrences.duration.toDate
Leumi, Discountoccurrences.finalCollectionDate

Common Errors

MessageWhat to do
mandateInformation.frequency is not supported for provider leumi. Supported providers: hapoalim, mizrahi.Remove frequency and startDate, or use a supporting bank.
mandateInformation.frequency SemiAnnual is not supported for provider hapoalim. …Use one of the listed frequencies.
mandateInformation.endDate must be after today (YYYY-MM-DD).Send a future date.
mandateInformation.endDate must be after mandateInformation.startDate (YYYY-MM-DD).The expiry must come after the first charge.
Mandates are not supported for provider …This bank does not offer mandates yet.
mandateInformation is required when no mandateId is sentSend the terms, or the mandateId of a link you created.
Mandate was already started (409)This mandate was already sent to the bank. Create a new mandate.

Next steps


Did this page help you?