Statistical accounts are used to track non-financial data, such as employee headcount, number of members, or even the number of rooms in a hotel.
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 statistical GL accounts that meet certain criteria and to specify the properties that you want in the response.
OK
Bad Request
{- "ia::result": [
- {
- "key": "397",
- "id": "9001",
- "href": "/objects/general-ledger/statistical-account/397"
}, - {
- "key": "398",
- "id": "9002",
- "href": "/objects/general-ledger/statistical-account/398"
}, - {
- "key": "399",
- "id": "9003",
- "href": "/objects/general-ledger/statistical-account/399"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Creates a new statistical account. You should assign a different account range to statistical accounts so that they are not inadvertently grouped with general ledger accounts. Statistical accounts can be consolidated similarly to general ledger accounts, if you have a consolidated structure of companies with subsidiaries.
Individual statistical accounts are typically rolled up into account groups for use in reports.
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: "9001" | ||||||||||||||||||||||||||||
name required | string Name or title of this statistical account. Example: "Customer Account" | ||||||||||||||||||||||||||||
reportType | string Default: "forPeriod" This is a non-functional field, for information purposes only. It does not affect how amounts are calculated for reporting. Example: "forPeriod" | ||||||||||||||||||||||||||||
object The dimensions that must be included on transactions that post to the account. | |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
isTaxable | boolean Default: false Set to Example: true | ||||||||||||||||||||||||||||
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 set by the particular QuickStart template used for the company. Example: "Customers" | ||||||||||||||||||||||||||||
status | string Default: "active" Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced. Example: "active" |
Created
Bad Request
{- "id": "9030",
- "name": "Customer Account",
- "reportType": "forPeriod",
- "status": "active",
- "requireDimensions": {
- "department": true,
- "location": true
}, - "isTaxable": false,
- "category": "Customers"
}
{- "ia::result": {
- "key": "439",
- "id": "9030",
- "href": "/objects/general-ledger/statistical-account/439"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Returns detailed information for a specified statistical account.
key required | string System-assigned key for the statistical account. Example: 439 |
OK
Bad Request
{- "ia::result": {
- "key": "397",
- "id": "9001",
- "name": "Customer Account",
- "reportType": "forPeriod",
- "status": "active",
- "audit": {
- "modifiedDateTime": "2023-10-21T04:55:32Z",
- "createdDateTime": "2023-09-20T11:29:30Z",
- "createdBy": "1",
- "modifiedBy": "1"
}, - "requireDimensions": {
- "department": false,
- "location": false,
- "project": false,
- "customer": false,
- "vendor": false,
- "employee": false,
- "item": false,
- "class": false
}, - "isTaxable": true,
- "category": "Customers",
- "href": "/objects/general-ledger/statistical-account/397"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing statistical account by setting field values. Any fields not provided remain unchanged.
key required | string System-assigned key for the statistical account. Example: 439 |
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: "9001" | ||||||||||||||||||||||||||||
name | string Name or title of this statistical account. Example: "Customer Account" | ||||||||||||||||||||||||||||
reportType | string Default: "forPeriod" This is a non-functional field, for information purposes only. It does not affect how amounts are calculated for reporting. Example: "forPeriod" | ||||||||||||||||||||||||||||
object The dimensions that must be included on transactions that post to the account. | |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
isTaxable | boolean Default: false Set to Example: true | ||||||||||||||||||||||||||||
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 set by the particular QuickStart template used for the company. Example: "Customers" | ||||||||||||||||||||||||||||
status | string Default: "active" Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced. Example: "active" |
OK
Bad Request
{- "name": "Customer Accounts",
- "isTaxable": true
}
{- "ia::result": {
- "key": "397",
- "id": "9001",
- "href": "/objects/general-ledger/statistical-account/397"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Deletes a statistical account. Accounts used in a book transaction cannot be deleted. Deleted accounts cannot be recovered.
key required | string System-assigned key for the statistical account. Example: 439 |
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
}
}