QuickBooks Integrator 2020 Node.js Edition

Questions / Feedback?

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:

atUnspecified0
atAccountsPayable1
atAccountsReceivable2
atBank3
atCostOfGoodsSold4
atCreditCard5
atEquity6
atExpense7
atFixedAsset8
atIncome9
atLongTermLiability10
atOtherAsset11
atOtherCurrentAsset12
atOtherCurrentLiability13
atOtherExpense14
atOtherIncome15
atNonPosting16

Data Type

Integer

Copyright (c) 2021 /n software inc. - All rights reserved.
QuickBooks Integrator 2020 Node.js Edition - Version 20.0 [Build 7941]