Initiate a Payment (Direct)
Drive bank selection yourself and get the bank authentication URL.
Initiate a Payment (Direct flow)
Skip this page if you use the hosted flow (redirecting topayUrl).This step is only for the direct API integration where you select the bank
yourself.
POST https://api.open-finance.ai/v2/pay/open-banking-init
Takes the paymentId from Create a Payment plus a providerId (the bank),
and returns the bank's Strong Customer Authentication (SCA) URL. Requires a
Bearer token (see Authentication); rejected requests return the standard
error shape — see Errors.
Key fields
| Field | Required | Description |
|---|---|---|
providerId | ✅ | The bank/provider to pay from. List options via GET /v2/providers. |
paymentId | – | The id returned by POST /v2/payments. |
redirectUrl | – | Where the user returns after authenticating at the bank. |
psuId | – | The payer's national ID or passport number, when the provider requires it. |
psuCorporateId | – | The payer's business ID, for corporate payments. |
psuCorporateIdType | – | The type of the business ID in psuCorporateId. See below. |
Corporate payments (psuCorporateIdType). When you sendpsuCorporateId,you can also say what kind of business ID it is. The allowed values come from the
provider'spsuCorporateIdTypesinGET /v2/providers. If you omit the field, the
provider'spsuCorporateIdDefaultTypeis used, or the first entry of
psuCorporateIdTypeswhen there is no default. A value that is not in the list is
rejected with400.For Discount and Mercantile the accepted values are:
Value Meaning CompanyCompany (חברה) — the default StatutoryWithoutIDStatutory body without an ID ForeignCompanyForeign company (חברה זרה)
If you did not pre-create a payment, you can passpaymentInformationdirectly on this call instead of
paymentId. See the API Reference.
Foreign currency (USD, EUR, …). Send acurrencyother than ILS and thecreditor's city in English —
"creditorAddress": { "townName": "Tel Aviv" }.
creditorNameandcreditorAddress(at leasttownName) are required for every
foreign-currency payment, both in English (400 without them);creditorAddressis ignored for ILS. The
request is the same for every bank: it is sent as a SWIFT transfer, and the creditor
country and bank BIC are filled in, and the transfer fees (chargeBearer) and debtor
account currency (debtorAccountCurrency) have per-bank defaults — send them only to override.
It works only withpaymentInformationon this call (not withpaymentId, periodic
or bulk payments).
Bank Foreign currency Extra input Leumi ✅ — ( chargeBearercannot be sent)Discount, Mercantile ✅ — ( chargeBearer/debtorAccountCurrencycannot be sent)Hapoalim ✅ creditorAgent(BIC) only when the creditor is abroad; anychargeBearerBeinleumi group ✅ — ( chargeBearerdefaults toSLEV,SHARcannot be sent)Mizrahi ❌ ILS only —
creditorNameandcreditorAddressmust be in English (e.g."Tel Aviv", not
"תל אביב");creditorAddress.country, if sent, must be an ISO 3166-1 alpha-2 code.
Requests that break these rules return400before reaching the bank. See the field
descriptions in the API Reference.
zahav (RTGS) at the Beinleumi group (Beinleumi, Otsar Ha-Hayal, Pagi, Massad,U-Bank). The bank requires the payer's name and address in English. Send
"paymentService": "zahav"withcreditorNameanddebtorNamein English, and the
payer's address indebtorAddress:
Field Limit Example streetNameEnglish, max 70 HERZLbuildingNumbermax 10 1townNameEnglish, max 70 TEL AVIVpostCodemax 10 6100000None of the parts is required by our API — send the parts that make up the address the bank holds.
- The address must match the English address the bank holds for the customer,
otherwise the bank's approval screen fails ("כתובת המעביר באנגלית אינה תואמת את הקיים בבנק").
WithoutdebtorName/debtorAddressit fails with "חובה למלא שם מעביר ... יש להזין כתובת מעביר".- Allowed characters:
A-Z a-z 0-9 : ? ) ( / ' , . + -and space. Hebrew and the words
HERE / POB (not allowed by the bank) are rejected with400.creditorAddressis not needed for zahav — it is for foreign-currency payments only.
The accounts are sent as IBAN automatically.debtorAddressis optional and ignored by every other bank and service. It works with
paymentInformationandperiodicPaymentInformation, on this call or onPOST /payments;
withpaymentId, adebtorAddresssent on this call replaces the stored one.
Request
curl -X POST https://api.open-finance.ai/v2/pay/open-banking-init \
-H "Authorization: Bearer <accessToken>" \
-H "Content-Type: application/json" \
-d '{
"paymentId": "01J8X...",
"providerId": "hapoalim",
"redirectUrl": "https://your-app.com/payment/done"
}'Response
{
"paymentId": "01J8X...",
"status": "RCVD",
"scaOAuth": "https://bank.example/oauth/authorize?..."
}| Field | Description |
|---|---|
paymentId | The payment being authorized. |
status | Current payment status (see Payment Status). |
scaOAuth | The bank authentication URL — redirect the user here. |
Redirect the user to scaOAuth so they can authenticate and approve the payment
at their bank. When they return to your redirectUrl, move on to
Payment Status.
Financy appends the result to yourredirectUrlas query parameters —
paymentId,userId, andpaymentStatus— so the return page can read the
outcome directly. For mobile deep links, addisDeepLinkQueryParams=trueto
have the parameters appended as query params rather than merged into the path.
Updated 1 day ago

