Department is an optional dimension that can be used for tagging, filtering, and categorizing data in many areas of Sage Intacct.
The list of departments is shared by all entities in a company. Users can be restricted to only work with and see specific departments, which might affect what data they can see in reports, transactions, and other data records.
You can create a hierarchy of departments to reflect how departments are organized within a company. To set up a hierarchy, create the parent departments first and then specify a parent department when adding child departments.
Returns up to 100 department references from the collection with a key, ID, and link for each department. This operation is mostly for use in testing; use the query service to find departments that meet certain criteria and to specify the properties that are returned.
Subscription | Company |
---|---|
User type | Business, Employee, Payment Approver |
Permissions | List, View Departments |
OK
Created
Bad Request
{- "ia::result": [
- {
- "key": "11",
- "id": "Eng",
- "href": "/objects/company-config/department/1"
}, - {
- "key": "2",
- "id": "Fin",
- "href": "/objects/company-config/department/2"
}, - {
- "key": "3",
- "id": "HR",
- "href": "/objects/company-config/department/3"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Creates a new department.
Subscription | Company |
---|---|
User type | Business user with admin privileges |
Permissions | Add Department |
Department to create
id required | string Unique identifier for the department. Example: "SW" |
name required | string Department name Example: "Software Dev" |
number | string Department number Example: "10" |
reportTitle | string or null Default: null Department title displayed in reports Example: "Software Engineering" |
status | string Status of the dimension object:
Example: "active" |
Created
Bad Request
{- "id": "ENG",
- "name": "Engineering",
- "reportTitle": "Engineering",
- "status": "active",
- "supervisor": {
- "key": "16"
}
}
{- "ia::result": {
- "key": "12",
- "id": "ENG",
- "href": "/objects/company-config/department/12"
}, - "ia::meta": {
- "totalCount": 1
}
}
Returns detailed information for a specified department.
Subscription | Company |
---|---|
User type | Business, Employee, Payment Approver |
Permissions | List, View Departments |
key required | string System-assigned key for the department. Example: 28 |
OK
Bad Request
{- "ia::result": {
- "id": "PS",
- "key": "28",
- "name": "Professional Services",
- "parent": {
- "key": "7",
- "id": "CS--Client Services",
- "name": "Client Services",
- "href": "/objects/company-config/department/7"
}, - "supervisor": {
- "key": "5",
- "id": "MGR1--PS Dept - Manager",
- "name": "PS Dept - Manager",
- "href": "/objects/company-config/employee/5"
}, - "audit": {
- "createdDateTime": "2023-01-08T11:28:12Z",
- "modifiedDateTime": "2023-01-08T11:28:12Z",
- "createdBy": "1",
- "modifiedBy": "95"
}, - "status": "active",
- "reportTitle": "Professional Services",
- "href": "/objects/company-config/department/28"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing department by setting field values. Any fields not provided remain unchanged.
Subscription | Company |
---|---|
User type | Business user with admin privileges |
Permissions | Edit Departments |
key required | string System-assigned key for the department. Example: 28 |
name | string Department name Example: "Software Dev" |
number | string Department number Example: "10" |
reportTitle | string or null Default: null Department title displayed in reports Example: "Software Engineering" |
status | string Status of the dimension object:
Example: "active" |
OK
Bad Request
{- "supervisor": {
- "key": "99"
}
}
{- "ia::result": {
- "key": "1",
- "id": "SW",
- "href": "/objects/company-config/department/1"
}, - "ia::meta": {
- "totalCount": 1
}
}
Deletes a department. You can delete a department if it is not being used or referenced. Deleted departments cannot be recovered.
Subscription | Company |
---|---|
User type | Business user with admin privileges |
Permissions | Delete Departments |
key required | string System-assigned key for the department. Example: 28 |
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: "company-config/department" | ||||||||
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": "company-config/department",
- "filters": [
- {
- "$eq": {
- "status": "active"
}
}, - {
- "$eq": {
- "parent.id": "ENG"
}
}
], - "filterExpression": "1 and 2",
- "fields": [
- "id",
- "name",
- "href"
], - "orderBy": [
- {
- "id": "asc"
}
]
}
{- "ia::result": [
- {
- "id": "01",
- "name": "Software",
- "href": "/objects/company-config/department/1"
}, - {
- "id": "02",
- "name": "Hardware",
- "href": "/objects/company-config/department/2"
}
], - "ia::meta": {
- "totalCount": 2,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}