Automated Clearing House
The internal ID for this record is automatedclearinghouse
. This record is not a subrecord and does not have any subrecords.
Use the automated clearing house record when working with the ACH payment instrument type. For details, see Payment Instruments.
See the SuiteScript Records Browser for all internal IDs associated with this record.
For information about using the SuiteScript Records Browser, see Working with the SuiteScript Records Browser in the NetSuite Help Center.
Prerequisites
To use the automated clearing house record, you must:
-
enable the Payment Instruments feature. For instructions, see Payment Instruments.
-
create an instance of the ACH type payment method. For instructions, see Creating a Payment Method.
Supported Script Types
The automated clearing house record is scriptable in both client and server SuiteScript.
Supported Operations
The following operations are available for scripting with the automated clearing house record: read, create, update, delete, and search.
The System Notes sublist is search-only.
The following fields cannot be updated after saving:
-
Customer (field ID: entity)
-
Mask (field ID: mask)
-
Bank Account Number (field ID: bankaccountnumber)
-
Routing Numer (field ID: routingnumber)
-
Account Owner Name (field ID: accountownername)
-
Account Type (field ID: accounttype)
Code Sample
The following code sample shows how to create an automated clearing house record:
var record = nlapiCreateRecord('automatedclearinghouse');
record.setFieldValue('entity', ID of Customer);
record.setFieldValue('paymentmethod', ID of ACH Payment Method);
record.setFieldValue('bankaccountnumber', '12345674');
record.setFieldValue('routingnumber', '123456789');
record.setFieldValue('accountownername', 'John Doe');
record.setFieldValue('accounttype', 'CHECKING');
record.setFieldValue('bankname', 'KB');
record.setFieldValue('memo', 'Memo1234');
record.setFieldValue('isinactive', 'F');
record.setFieldValue('isdefault', 'T');
record.setFieldValue('preserveonfile', 'T');
record.setFieldValue('limit', '10');
record.setFieldValue('legalconsent', 'This is legal consent created by script');
var id = nlapiSubmitRecord(record);