Account group purposes let you filter account groups according to why you might use them, which is particularly useful in financial reporting. You create account group purposes and then assign them to account groups when you create or update the groups.
Returns a collection with a key, ID, and link for each purpose. This operation is mostly for use in testing; use the query service to find account group purposes that meet specific criteria and to specify the properties that you want in the response.
OK
Bad Request
{- "ia::result": [
- {
- "key": "1",
- "id": "Budgeted Expenses",
- "href": "/objects/general-ledger/account-group-purposes/19"
}, - {
- "key": "2",
- "id": "Capital Expenses",
- "href": "/objects/general-ledger/account-group-purposes/21"
}
], - "ia::meta": {
- "totalCount": 2,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Creates a new account group purpose.
Account group purpose to create
id required | string Name for the account group purpose. Example: "P&L" |
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": "Budget1",
- "status": "active"
}
{- "ia::result": {
- "key": "35",
- "id": "Budget1",
- "href": "/objects/general-ledger/account-group-purpose/35"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Returns detailed information for a specified account group purpose.
key required | string System-assigned key for the account group purpose. Example: 3906 |
OK
Bad Request
{- "ia::result": {
- "id": "P&L - New",
- "status": "active",
- "key": "32",
- "audit": {
- "createdDateTime": "2021-02-22T16:30:48Z",
- "modifiedDateTime": "2021-02-22T16:30:48Z",
- "createdBy": "1",
- "modifiedBy": "1"
}, - "href": "/objects/general-ledger/account-group-purpose/32"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing account group purpose by setting field values. Any fields not provided remain unchanged.
key required | string System-assigned key for the account group purpose. Example: 3906 |
id | string Name for the account group purpose. Example: "P&L" |
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
{- "id": "Budgeted Expenses"
}
{- "ia::result": {
- "key": "35",
- "id": "Budgeted Expenses",
- "href": "/objects/general-ledger/account-group-purpose/35"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Deletes an account group purpose.
key required | string System-assigned key for the account group purpose. Example: 3906 |
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
}
}