Banking Transaction
The Banking Transaction record represents an imported bank transaction.
The internal ID for this record is bankingtransaction.
The availability of this record in SuiteScript enables external AI clients to access imported bank transactions through the NetSuite AI Connector Service. These connections use Model Context Protocol (MCP). For more information, see NetSuite AI Connector Service.
Your role needs View access or higher for the Reconcile permission to read this record. Account, subsidiary, and applicable transaction restrictions also apply. For more information, see Permissions for Banking Features.
The record does not have a standard record form.
For information about scripting with records, see SuiteScript 2.1 Scripting Records and Subrecords and N/record Module.
Supported Script Types
The Banking Transaction record is supported in server-side scripts only. It is available in SuiteScript 2.1.
Supported Functions
The Banking Transaction record is read-only. Creating, updating, copying, transforming, deleting, and searching through N/search are not supported.
Script Sample
The following sample loads a Banking Transaction record and reads its account, transaction date, amount, payee, and memo.
/**
* @NApiVersion 2.1
*/
define(['N/record'], (record) => {
const readBankingTransaction = (transactionId) => {
const transaction = record.load({
type: record.Type.BANKING_TRANSACTION,
id: transactionId
});
return {
accountId: transaction.getValue({ fieldId: 'account' }),
transactionDate: transaction.getValue({
fieldId: 'transactiondate'
}),
amount: transaction.getValue({ fieldId: 'amount' }),
payee: transaction.getValue({ fieldId: 'payee' }),
memo: transaction.getValue({ fieldId: 'memo' })
};
};
return { readBankingTransaction };
});