POST

Banks.Get

Get one bank from bank_details for the organization localization. Pass id (bank_details.id) or code (Israel clearing code).

Permissions

  • User must be logged in with a valid bearer token.
  • Returned or changed records are limited by the user permissions, team access, folder access, and account settings.

Action

  • Returns Banks information as JSON for the UI.

Push Service

No push is sent because this function only reads data or returns helper information.

Automation

No automation is run for this function.

Special Instructions

  • Send the bearer token on protected calls with Authorization: Bearer YOUR TOKEN.
  • Send parameters as POST body fields exactly as documented.

Required Parameters

No body parameters are required for this function.

Optional Parameters

NameTypeSampleWhat it gives
id
post
int10bank_details.id. Aliases: bank_id, bank_details_id.
code
post
string12Exact bank clearing code when id is omitted. Alias: bank_code.

Authentication

Send the bearer token returned by Login in the request header.

Authorization: Bearer YOUR TOKEN

Sample Request

{
    "url": "\/app\/Banks.Get",
    "method": "POST",
    "headers": {
        "Authorization": "Bearer YOUR TOKEN"
    },
    "body": {
        "code": "12"
    },
    "url_user": "https:\/\/{user}.bull36.com\/app\/Banks.Get",
    "url_domain": "https:\/\/{domain}\/app\/Banks.Get"
}

Endpoint

POST /app/Banks.Get
POST https://{user}.bull36.com/app/Banks.Get
POST https://{domain}/app/Banks.Get

Sample Output

{
    "success": 1,
    "data": {
        "id": 10,
        "code": "12",
        "bank_name": "Bank Hapoalim",
        "bank_name_he": "בנק הפועלים",
        "label": "Bank Hapoalim - 12"
    }
}

JavaScript Example

const token = 'YOUR TOKEN';
const body = new URLSearchParams({ code: '12' });
const res = await fetch('/app/Banks.Get', { method: 'POST', headers: { Authorization: 'Bearer ' + token }, body });
console.log(await res.json());

Error Example

{
    "success": 0,
    "message": "Bank not found"
}