Server side
π― Types
IAccount
---@class IAccount
---@field id string
---@field balance number
---@field createdAt number
---@field iban number
---@field name string
---@field ownerId string
---@field type string
---@field color string
---@field ownedAccount boolean
---@field frozen boolean
---@field closed boolean
---@field settings IAccountSettings
---@field permissions IAccountMemberPermissionsπ Accounts
GetSocietyAccount
GetAccountByIban
GetPersonalAccountByPlayerId
GetPersonalAccountByPlayerIdentifier
CreateBusinessAccount
π΅ Money
GetAccountMoneyByIban
GetSocietyAccountMoney
AddSocietyMoney
RemoveSocietyMoney
Feel free to request an export to suit your needs.
πͺ΅ Misc
AddTransaction
IsAccountFrozen
IsAccountTerminated
FreezeAccount
UnfreezeAccount
TerminateAccount
IsCardFrozen
IsCardTerminated
FreezeCard
UnfreezeCard
π³ Loans
GetCreditScore
Get the credit score for a player by their identifier.
GetCreditProfile
Get detailed credit profile for a player including score factors and loan eligibility.
Returns:
CanPlayerFinance
Check if a player can finance (take a loan) for a specific amount.
CreateLoan
Create a loan application with pending status (for manual approval workflows). Use ApproveLoan or RejectLoan to process the application.
ApproveLoan
Approve a pending loan application and disburse funds to the player. Player must be online.
RejectLoan
Reject a pending loan application.
CreateAndApproveLoan
Create and immediately approve a loan, disbursing funds to the player. Player must be online.
Returns on success:
GetLoan
Get a specific loan by ID.
GetPlayerLoans
Get all loans for a player (including paid, defaulted, etc.).
GetActiveLoans
Get only active loans for a player (status: active or overdue).
GetLoanBalance
Get the remaining balance on a loan.
GetLoanPaymentDue
Get the next payment due information for a loan.
Returns:
IsLoanDelinquent
Check if a loan is delinquent (overdue or defaulted).
ApplyLoanPayment
Apply a payment to a loan. Player must own the loan.
PayLoanDue
Pay the current due amount on a loan (convenience wrapper for ApplyLoanPayment).
GetPlayerDebtSummary
Get a comprehensive summary of all player debt.
Returns:
GetLoanHistory
Get payment history for a specific loan.
Returns array of:
Last updated