Departments
The Department Object
A Rutter Department represents a categorization for bills and expenses that logs the employer-level origin of the purchase.
Properties
idstringThe Rutter generated unique ID of the department.
platform_idstringThe platform specific ID of the department.
parent_idstringnullableThe Rutter ID of the Parent Department linked to the department.
has_childrenbooleannullableDescribes whether the department has child departments.
namestringnullableThe name of the department.
statusenumfilterableOptionalThe status of the department.
created_atstringfilterablenullableThe ISO 8601 timestamp that the department was created.
updated_atstringfilterablenullableThe ISO 8601 timestamp that the department was last updated.
last_synced_atstringfilterableThe ISO 8601 timestamp when the department was last synced by Rutter.
platform_urlstringnullableA URL pointing to the object in the underlying platform. When no URL exists for the specific object, the value may be a larger URL containing the object.
platform_dataobjectOptionalThe raw platform data corresponding to the Rutter object.
List Departments
Request Parameters
access_tokenstringqueryRequiredThe access token of the connection.
cursorstringqueryOptionalUsed to paginate to the next batch of objects. Should be a copy of the next_cursor value from the previous response.
limitintegerqueryOptionalUsed to limit the number of returned objects. Defaults to 50.
filterstringqueryOptionalNot currently supported on Sage Intacct or Sage Business Cloud. Used to specify a filtering criteria for response objects. Refer to Filtering Objects to understand the syntax for the filtering criteria. The filtering syntax only supports fields decorated with a filterable tag in the response object.
Filterable fields: status, created_at, updated_at, last_synced_at.
sortstringqueryOptionalUsed to sort the response objects, e.g. last_synced_at ASC. If a value is provided but ASC or DESC is not, defaults to ASC. If omitted, defaults to updated_at DESC. Supports only fields decorated with a filterable tag in the response object except on Sage Intacct and Sage Business Cloud. For those platforms, only updated_at_min, updated_at_max and last_synced_at_min fields are supported and not deprecated.
Sortable fields: status, created_at, updated_at, last_synced_at.
expandenumqueryOptionalInclude platform specific data (includes additional fields not provided by the Rutter object).
last_synced_at_minintegerqueryOptionalDeprecated - use filter instead. Used to filter objects with a last_synced_at value greater than or equal to the supplied value. Should be a Unix time in milliseconds.
updated_at_maxintegerqueryOptionalDeprecated - use filter instead. Used to filter objects with a updated_at value less than or equal to the supplied value. Should be a Unix time in milliseconds.
updated_at_minintegerqueryOptionalDeprecated - use filter instead. Used to filter objects with a updated_at value greater than or equal to the supplied value. Should be a Unix time in milliseconds.
force_fetchenumqueryOptionalUsed to force a response even if the underlying connection has not finished its initial sync.
Response Body
1{
2 "departments": [
3 {
4 "id": "00000000-0000-0000-0000-000000000000",
5 "platform_id": "12345678",
6 "parent_id": "00000000-0000-0000-0000-000000000000",
7 "has_children": false,
8 "name": "Engineering",
9 "status": "active",
10 "created_at": "2023-01-02T02:34:56.000Z",
11 "updated_at": "2023-01-02T02:34:56.000Z",
12 "last_synced_at": "2023-01-02T02:34:56.000Z",
13 "platform_url": "https://platform.com/resource?id=123",
14 "platform_data": {
15 "id": 123,
16 "data": "Varies by platform"
17 }
18 }
19 ],
20 "next_cursor": "MTY3NDgzMTk0Ml82MDY4ZDI0ZC02NGRmLTRmN2EtYTM0Ny0zN2ZmNjY5MGVmMjU=",
21 "connection": {
22 "id": "00000000-0000-0000-0000-000000000000",
23 "orgId": "00000000-0000-0000-0000-000000000000",
24 "platform": "NETSUITE"
25 }
26}
Fetch a Department
Request Parameters
idstringpathRequiredThe unique ID of the object.
access_tokenstringqueryRequiredThe access token of the connection.
id_typeenumqueryOptionalUsed to indicate the type of id that is supplied. Defaults to rutter. Not currently supported on Sage Intacct or Sage Business Cloud.
force_fetchenumqueryOptionalUsed to force a response even if the underlying connection has not finished its initial sync.
Response Body
1{
2 "department": {
3 "id": "00000000-0000-0000-0000-000000000000",
4 "platform_id": "12345678",
5 "parent_id": "00000000-0000-0000-0000-000000000000",
6 "has_children": false,
7 "name": "Engineering",
8 "status": "active",
9 "created_at": "2023-01-02T02:34:56.000Z",
10 "updated_at": "2023-01-02T02:34:56.000Z",
11 "last_synced_at": "2023-01-02T02:34:56.000Z",
12 "platform_url": "https://platform.com/resource?id=123",
13 "platform_data": {
14 "id": 123,
15 "data": "Varies by platform"
16 }
17 },
18 "connection": {
19 "id": "00000000-0000-0000-0000-000000000000",
20 "orgId": "00000000-0000-0000-0000-000000000000",
21 "platform": "NETSUITE"
22 }
23}
Create a Department
Request Parameters
access_tokenstringqueryRequiredThe access token of the connection.
Request Body
response_modeenumOptionalThe response mode for our async endpoints. prefer_sync allows calling the API in a best-effort, synchronous fashion and wait for the response. If this takes too long we will instead return the asynchronous response. This is the default behavior. async makes the API respond with the asynchronous response. See Asynchronous Operations.
departmentobjectdepartment attributesResponse Body
1{
2 "department": {
3 "parent_id": "00000000-0000-0000-0000-000000000000",
4 "name": "Engineering"
5 }
6}
1{
2 "department": {
3 "id": "00000000-0000-0000-0000-000000000000",
4 "platform_id": "12345678",
5 "parent_id": "00000000-0000-0000-0000-000000000000",
6 "has_children": false,
7 "name": "Engineering",
8 "status": "active",
9 "created_at": "2023-01-02T02:34:56.000Z",
10 "updated_at": "2023-01-02T02:34:56.000Z",
11 "last_synced_at": "2023-01-02T02:34:56.000Z",
12 "platform_url": "https://platform.com/resource?id=123",
13 "platform_data": {
14 "id": 123,
15 "data": "Varies by platform"
16 }
17 }
18}
Have questions?
Contact support for personalized guidance.