Skip to content

Account

Return, update, create and delete accounts.

Released
Updated
URLSupports
/{cf_uri}/GeneralLedger/Account
GETPUTPOSTDELETE

Each account is identified by a unique five-digit number. The first digit indicates the account’s classification (for example, accounts starting with 1 are asset accounts). The remaining four digits determine its location within the classification.

The accounts list groups accounts into eight classifications—Asset, Liability, Equity, Income, Cost of Sales, Expense, Other Income and Other Expense.

Attribute Details

Paging: default page size is set to 400 with a maximum of 1000 results.

AttributeTypeNotes
UID
Required
Guid (36)Unique account identifier in the form of a guid. ONLY required for updating an existing account NOT required when creating a new account.
NameString (60)Name of the account.
DisplayIDString (6) or (10)(6) IF ‘UseAlphaAccountIdentifier’ Boolean property is FALSE - Parent account code format includes separator i.e. 1-1000 (10) IF ‘UseAlphaAccountIdentifier’ Boolean property is TRUE - Account code format in Alpha-numeric value See here for more information on account types.
ClassificationClassificationThe account classification can be one of the following: Asset, Liability, Equity, Income, CostOfSales, Expense, OtherIncome, OtherExpense
Type
Required
AccountTypeDepending on the classification of the account (e.g. asset), you can define the account's type, see here for more information on account types.
Number
Required
IntegerAccount number for example 1150. Must be a unique four-digit number that does not include the account type classification number and account separator.
DescriptionString (255)A description of the account.
ParentAccountobjectPulls through information relating to parent accounts.
ParentAccount.UIDGuid (36)Foreign Key : Unique identifier for the parent account in the form of a guid.
ParentAccount.Name
Read-only
String (6)Name of the parent account.
ParentAccount.DisplayID
Read-only
String (6)Parent account code format includes separator ie 1-1000
ParentAccount.URI
Read-only
StringUniform resource identifier associated with the parent account object.
IsActiveBooleanTrue indicates the account is active. False indicates the account is inactive. A user marks an account as inactive when they no longer need to record transactions to it. An inactive account doesn't appear in selection lists, but it can still be assigned to a transaction, and be included in reports.
TaxCodeobjectPulls through information relating to tax codes.
TaxCode.UID
Required
Guid (36)Foreign Key : Unique guid identifier belonging to the assigned tax code.
TaxCode.Code
Read-only
String (3)3 didgit tax code.
TaxCode.URI
Read-only
StringUniform resource identifier associated with the tax code object.
LevelIntegerThe hierarchial level of the account in the Accounts List. Possible values are 1 , 2 , 3 , 4 . The highest level accounts are level 1, the lowest 4. You can only assign levels 2 to 4 to a new account. This is an example showing account hierarchy: Assets - Level 1 Current Assets - Level 2 Bank Accounts - Level 3 National Bank Account 1 - Level 4 National Bank Account 2 - Level 4
OpeningBalanceDecimal (13.3)Balance of the account as at the conversion date set for the company file.
CurrentBalance
Read-only
Decimal (13.3)Current balance of the account. Note that this balance will include all future-dated activity.
BankingDetailsobjectPulls through information relating to banking details.
BankingDetails.BSBNumberString (9)ONLY APPLICABLE FOR AU REGION BSB as provided by the financial institution.
BankingDetails.BankAccountNumberString (20)Account number as provided by the financial institution.
BankingDetails.BankAccountNameString (32)Bank account name setup.
BankingDetails.CompanyTradingNameString (50)ONLY APPLICABLE FOR AU REGION Company trading name if applicable for bank account
BankingDetails.BankCodeString (3)ONLY APPLICABLE FOR AU REGION Bank code as provided by the financial institution.
BankingDetails.CreateBankFilesBooleanTrue indicates the bank account will be used to create bank files (ABA). False indicates the bank account will not be used to create bank files.
BankingDetails.DirectEntryUserIdString (6)ONLY APPLICABLE FOR AU REGION Direct entry user id as provided by the financial institution.
BankingDetails.IncludeSelfBalancingTransactionBooleanONLY APPLICABLE FOR AU REGION True indicates the bank account requires a self balancing transaction. False indicates the bank account does not require a self balancing transaction.
BankingDetails.StatementParticularsString (12)Statement particulars assigned to the bank account.
BankingDetails.StatementCodeStringONLY APPLICABLE FOR NZ REGION. Code attached to electronic payment.
BankingDetails.StatementReferenceStringONLY APPLICABLE FOR NZ REGION. Reference attached to electronic payment.
IsHeaderBooleanTrue indicates the account is a header account.Header accounts are used to organise, group and subtotal accounts in the Accounts List and reports. False indicates the account is a detail account. Only detail accounts can be assigned to transactions.
LastReconciledDate
Read-only
DateTimeShows the date that the Account was last reconciled. This will return as null if the Account has never been reconciled.
ForeignCurrencyobjectNull if no foreign currency is set.
ForeignCurrency.UID
Read-only
Guid (36)Foreign Key : Unique identifier for the currency in the form of a guid.
ForeignCurrency.Code
Read-only
String (3)The currency code.
ForeignCurrency.CurrencyName
Read-only
StringThe full name of the currency
ForeignCurrency.URI
Read-only
StringUniform resource identifier associated with the currency object.
LastModified
Read-only
DateTimeDateTime of the last time this resource was modified through a direct action to the object. eg a field was updated.
URI
Read-only
StringUniform resource identifier encompasses all types of names and addresses that refer to objects on the web.
RowVersion
Required
StringNumber value that changes upon a record update, can be used for change control but does does not preserve a date or a time. ONLY required for updating an existing account. NOT required when creating a new account.

Example json GET response

Example

json
{
  "UID": "9a925e0c-0a9c-4995-8e7e-d5d170231806",
  "Name": "Bank Accounts",
  "DisplayID": "1-1100",
  "Classification": "Asset",
  "Type": "Bank",
  "Number": null,
  "Description": "Bank account clearwtr",
  "URI": "{cf_uri}/GeneralLedger/Account/eb043b43-1d66-472b-a6ee-ad48def81b96",
  "IsActive": true,
  "Code": "CAD",
  "Level": null,
  "OpeningBalance": null,
  "CurrentBalance": null,
  "BSBNumber": "062-001",
  "BankAccountNumber": null,
  "BankAccountName": "CLEARWATER PTY LTD",
  "CompanyTradingName": "CLEARWATER PTY LTD",
  "BankCode": "BNH",
  "CreateBankFiles": true,
  "DirectEntryUserId": "087176",
  "IncludeSelfBalancingTransaction": false,
  "StatementParticulars": "",
  "IsHeader": false,
  "LastReconciledDate": "2018-11-30T00:00:00",
  "CurrencyName": "Canadian Dollars",
  "LastModified": "1753-01-01T00:00:00",
  "RowVersion": "5548997690873872384"
}

The {cf_uri} is provided by the businessId parameter as described here.