Kartik Scripts

GetAccountDataByAccountNumber

exports['kartik-banking']:GetAccountDataByAccountNumber(accountNumber)

🔹 Description

Retrieves detailed information about a bank account using its account number. This includes balance, account metadata, and associated debit card number (if available). Special handling is applied for personal Fleeca accounts.


🔧 Parameters

NameTypeRequiredDescription
accountNumberstring✅The account number to fetch details for.

📤 Returns

Returns a table with the following fields if found, or false if the account does not exist.

Return Structure:

KeyTypeDescription
accountTypestringAccount type ("personal", "business", etc.).
bankTypestringBank type ("fleeca", "swiss", etc.).
ownerstringCitizen ID of the account owner.
statusstringAccount status ("active", "frozen", etc.).
accountNamestringCustom display name of the account.
memberstableA decoded JSON table of account members (for company/shared accounts).
balancenumberThe current account balance. If Fleeca personal, fetched from player data.
incomenumberTotal income logged on the account.
expensesnumberTotal expenses logged on the account.
transfernumberTotal amount transferred from the account.
debitCardNumberstringDebit card number (if any).

🧠 Example Usage

local accountData = exports['kartik-banking']:GetAccountDataByAccountNumber("FLEECA12345")

if accountData then
    print("Account Name:", accountData.accountName)
    print("Balance:", accountData.balance)
else
    print("Account not found.")
end

❌ Returns false If:

  • The account is not found in kartik_banking_accounts.

On this page