AccountType Property
The type of account.
Syntax
account.getAccountType([callback]) account.setAccountType( accountType, [callback])
Possible Values
0 (atUnspecified), 1 (atAccountsPayable), 2 (atAccountsReceivable), 3 (atBank), 4 (atCostOfGoodsSold), 5 (atCreditCard), 6 (atEquity), 7 (atExpense), 8 (atFixedAsset), 9 (atIncome), 10 (atLongTermLiability), 11 (atOtherAsset), 12 (atOtherCurrentAsset), 13 (atOtherCurrentLiability), 14 (atOtherExpense), 15 (atOtherIncome), 16 (atNonPosting)
Default Value
0
Callback
The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).
The callback for the getAccountType([callback]) method is defined as:
function(err, data){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'data' is the value returned by the method.
The callback for the setAccountType([callback]) method is defined as:
function(err){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'err' has 2 properties which hold detailed information:
err.code err.message
Remarks
The type of account. You must set this property (to something other than atUnspecified) before adding an account to QuickBooks.
Note that you may not create accounts of type atNonPosting through the SDK.
The following values are permitted:
atUnspecified | 0 |
atAccountsPayable | 1 |
atAccountsReceivable | 2 |
atBank | 3 |
atCostOfGoodsSold | 4 |
atCreditCard | 5 |
atEquity | 6 |
atExpense | 7 |
atFixedAsset | 8 |
atIncome | 9 |
atLongTermLiability | 10 |
atOtherAsset | 11 |
atOtherCurrentAsset | 12 |
atOtherCurrentLiability | 13 |
atOtherExpense | 14 |
atOtherIncome | 15 |
atNonPosting | 16 |
Data Type
Integer