Companies post balance sheet, income statement, and statistical transactions to General Ledger accounts. Accounts make it easy to keep track of the transaction type, such as Accounts Payable, Accounts Receivable, Inventory, and the various sub-accounts for those transaction types. The comprehensive list of a company's General Ledger accounts is called its Chart of Accounts.
Returns a collection with a key, ID, and link for each account. This operation is mostly for use in testing; use the query service to find accounts that meet certain criteria and to specify the properties that you want in the response.
Subscription | Company |
---|---|
User type | Business, Employee, Project Manager, and Warehouse |
Permissions | List, View Accounts |
OK
Bad Request
{- "ia::result": [
- {
- "key": "406",
- "id": "9999",
- "href": "/objects/general-ledger/account/406"
}, - {
- "key": "407",
- "id": "1501.06",
- "href": "/objects/general-ledger/account/407"
}, - {
- "key": "16",
- "id": "1007",
- "href": "/objects/general-ledger/account/16"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Creates a new General Ledger account.
Subscription | Company |
---|---|
User type | Business user with admin privileges |
Permissions | Add Accounts |
Account to create
id required | string The primary account number. This number must be a specific length, which is set on the Accounting tab of the Company Information page. Example: "1501.04" | ||||||||||||||||||||||||
name required | string Name or title of the account, which appears on report headings. Max length is 80. Example: "Expense Account" | ||||||||||||||||||||||||
accountType | string Default: "balanceSheet" Type of account:
Example: "balanceSheet" | ||||||||||||||||||||||||
normalBalance | string Default: "debit" Sets whether the normal balance, from an accounting standpoint, is a debit or credit. For example, expense accounts are normally a debit. Sales accounts are normally a credit. Example: "debit" | ||||||||||||||||||||||||
closingType | string Default: "nonClosingAccount" Sets the account as a closing or non-closing account. Instead of manually closing accounts at year end, you can set them to be closing accounts and then specify the account in which to close that period.
Example: "nonClosingAccount" | ||||||||||||||||||||||||
object Account into which this account should close. Required if | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
alternativeGLAccount | string Default: "none" Sets whether the account can be used as an override of the default AP or AR GL accounts.
The same alternative GL account can be used for all line items in a transaction, or different alternative accounts can be set for each line item. For vendors and customers, one alternative GL account can be used for balancing all transactions involving that vendor or customer. Note: Currently, this field applies to bills, invoices, and adjustments only. It doesn't apply to recurring bills or invoices, manual payments, manual deposits, or advances. Example: "payablesAccount" | ||||||||||||||||||||||||
disallowDirectPosting | boolean Default: false Set to Example: false | ||||||||||||||||||||||||
status | string Default: "active" Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced. Example: "active" | ||||||||||||||||||||||||
object The dimensions that must be included on transactions that post to the account. | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
category | string Account categories are pre-defined groupings that arrange accounts into out-of-the-box reports, graphs, and performance cards. This field is available only for companies that were created with a QuickStart template or chose one later. If enabled, set a category for the account. The available values are tied to the particular QuickStart template used for the company. The category chosen will automatically set values for Example: "Cash and Cash Equivalents" | ||||||||||||||||||||||||
isTaxable | boolean Default: false Set to Example: false | ||||||||||||||||||||||||
taxCode | string Provide the tax return code needed by external tax compliance products to map tax codes to the tax forms that the company uses. Requires tax codes to be enabled in the General Ledger. Example: "CST" | ||||||||||||||||||||||||
mrcCode | string The M-3 return code box to map M-3 return codes to your M-3 form. Example: "m-3 1065" |
Created
Bad Request
{- "id": "1501",
- "name": "Vehicle Spare parts - Transmission",
- "accountType": "balanceSheet",
- "closingType": "nonClosingAccount",
- "normalBalance": "debit",
- "alternativeGLAccount": "none",
- "status": "active",
- "requireDimensions": {
- "department": false,
- "location": false
}, - "isTaxable": false,
- "disallowDirectPosting": true
}
{- "ia::result": {
- "key": "356",
- "id": "1501",
- "href": "/objects/general-ledger/account/356"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Returns detailed information for a specified account.
Subscription | Company |
---|---|
User type | Business, Employee, Project Manager, and Warehouse |
Permissions | List, View Accounts |
key required | string System-assigned key for the account. Example: 411 |
OK
Bad Request
{- "ia::result": {
- "key": "356",
- "id": "1501",
- "name": "Vehicle Spare parts - Transmission",
- "accountType": "balanceSheet",
- "normalBalance": "debit",
- "closingType": "nonClosingAccount",
- "closeToGLAccount": {
- "id": null,
- "key": null
}, - "status": "active",
- "requireDimensions": {
- "department": false,
- "location": false,
- "project": false,
- "customer": false,
- "vendor": false,
- "employee": false,
- "item": false,
- "class": false,
- "contract": false,
- "warehouse": false
}, - "isTaxable": false,
- "category": null,
- "taxCode": null,
- "mrcCode": null,
- "alternativeGLAccount": "none",
- "audit": {
- "createdDateTime": "2022-10-15T00:05:46Z",
- "modifiedDateTime": "2022-10-15T00:05:46Z",
- "createdBy": "68",
- "modifiedBy": "68"
}, - "disallowDirectPosting": true,
- "href": "/objects/general-ledger/account/356"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing account by setting field values. Any fields not provided remain unchanged.
An account id
(account number) can only be changed if the General Ledger is configured to allow changes to account numbers and by users who have permission to change financial account numbers. Changing account numbers affects important aspects of Sage Intacct such as reports, data imports, historical information, and automation.
Subscription | Company |
---|---|
User type | Business user with admin privileges |
Permissions | Edit Accounts |
key required | string System-assigned key for the account. Example: 411 |
id | string The primary account number. This number must be a specific length, which is set on the Accounting tab of the Company Information page. Example: "1501.04" | ||||||||||||||||||||||||
name | string Name or title of the account, which appears on report headings. Max length is 80. Example: "Expense Account" | ||||||||||||||||||||||||
accountType | string Default: "balanceSheet" Type of account:
Example: "balanceSheet" | ||||||||||||||||||||||||
normalBalance | string Default: "debit" Sets whether the normal balance, from an accounting standpoint, is a debit or credit. For example, expense accounts are normally a debit. Sales accounts are normally a credit. Example: "debit" | ||||||||||||||||||||||||
closingType | string Default: "nonClosingAccount" Sets the account as a closing or non-closing account. Instead of manually closing accounts at year end, you can set them to be closing accounts and then specify the account in which to close that period.
Example: "nonClosingAccount" | ||||||||||||||||||||||||
object Account into which this account should close. Required if | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
alternativeGLAccount | string Default: "none" Sets whether the account can be used as an override of the default AP or AR GL accounts.
The same alternative GL account can be used for all line items in a transaction, or different alternative accounts can be set for each line item. For vendors and customers, one alternative GL account can be used for balancing all transactions involving that vendor or customer. Note: Currently, this field applies to bills, invoices, and adjustments only. It doesn't apply to recurring bills or invoices, manual payments, manual deposits, or advances. Example: "payablesAccount" | ||||||||||||||||||||||||
disallowDirectPosting | boolean Default: false Set to Example: false | ||||||||||||||||||||||||
status | string Default: "active" Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced. Example: "active" | ||||||||||||||||||||||||
object The dimensions that must be included on transactions that post to the account. | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
category | string Account categories are pre-defined groupings that arrange accounts into out-of-the-box reports, graphs, and performance cards. This field is available only for companies that were created with a QuickStart template or chose one later. If enabled, set a category for the account. The available values are tied to the particular QuickStart template used for the company. The category chosen will automatically set values for Example: "Cash and Cash Equivalents" | ||||||||||||||||||||||||
isTaxable | boolean Default: false Set to Example: false | ||||||||||||||||||||||||
taxCode | string Provide the tax return code needed by external tax compliance products to map tax codes to the tax forms that the company uses. Requires tax codes to be enabled in the General Ledger. Example: "CST" | ||||||||||||||||||||||||
mrcCode | string The M-3 return code box to map M-3 return codes to your M-3 form. Example: "m-3 1065" |
OK
Bad Request
{- "disallowDirectPosting": false
}
{- "ia::result": {
- "key": "356",
- "id": "1501",
- "href": "/objects/general-ledger/account/356"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Deletes an account. You cannot delete an account if the account is used in a book transaction. Deleted accounts cannot be recovered.
Subscription | Company |
---|---|
User type | Business user with admin privileges |
Permissions | Delete Accounts |
key required | string System-assigned key for the account. Example: 411 |
No Content
Bad Request
{- "ia::result": {
- "ia::error": {
- "code": "invalidRequest",
- "message": "A POST request requires a payload",
- "errorId": "REST-1028",
- "additionalInfo": {
- "messageId": "IA.REQUEST_REQUIRES_A_PAYLOAD",
- "placeholders": {
- "OPERATION": "POST"
}, - "propertySet": { }
}, - "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
}
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 0,
- "totalError": 1
}
}
Queries an object for filtered data.
object | string Object type to query, in the form Example: "general-ledger/account" | ||||||||
fields | Array of strings List of fields to include in the response. Can be any combination of these:
Example: ["key","id","max:vendor.creditLimit"] | ||||||||
Array of equal (object) or not equal (object) or less than (object) or (less than or equal (object)) or greater than (object) or (greater than or equal (object)) or in (object) or not in (object) or between (object) or not between (object) or contains (object) or does not contain (object) or starts with (object) or does not start with (object) or ends with (object) or does not end with (object) Filter conditions to select the objects to return based on their field values. You use operators and conditions to build your filter, such as Example: [{"$eq":{"status":"active"}},{"$gt":{"totalDue":"1000"}},{"$contains":{"name":"Acme"}}] | |||||||||
Array Any of: Field value must be equal to this specified value. For date fields, you can use these macro values that are relative to the current date or the
These are most useful for queries that you want to save and use repeatedly, such as for views or reports. Just change the For example,
| |||||||||
filterExpression | string Default: "and" Logical operators to apply when there are multiple filter conditions. The conditions in the Shortcuts:
Example: "(1 and 2) or 3" | ||||||||
| |||||||||
Array of objects Set the order of the results by specifying field names to sort by and whether they should be in ascending or descending order. Example: [{"totalDue":"asc"},{"lastPaymentMadeDate":"desc"}] | |||||||||
Array
| |||||||||
start | integer First record of the result set to include in the response. Example: 1 | ||||||||
size | integer Number of records to include in the response. Example: 100 |
OK
Bad Request
{- "object": "general-ledger/account",
- "filters": [
- {
- "$eq": {
- "closingType": "nonClosingAccount"
}
}
], - "fields": [
- "key",
- "id",
- "name",
- "status",
- "href"
], - "orderBy": [
- {
- "id": "asc"
}
]
}
{- "ia::result": [
- {
- "key": "82",
- "id": "1001",
- "name": "Savings",
- "status": "active",
- "href": "/objects/general-ledger/account/82"
}, - {
- "key": "83",
- "id": "1002",
- "name": "Money Market",
- "status": "active",
- "href": "/objects/general-ledger/account/83"
}, - {
- "key": "84",
- "id": "1003",
- "name": "Petty Cash",
- "status": "active",
- "href": "/objects/general-ledger/account/84"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}