Expense summaries are collections of the same type of transactions, grouped together for processing. Expense summaries are referenced by employee expense objects.
Returns up to 100 expense summaries from the collection with a key, ID, and link for each summary. This operation is mostly for use in testing; use the query service to find expense summaries that meet certain criteria and to specify the properties that are returned.
Subscription | Time & Expenses |
---|---|
User type | Business, Employee |
Permissions | List, View Expense summaries |
OK
Bad Request
{- "ia::result": [
- {
- "key": "13",
- "id": "13",
- "href": "/objects/expenses/employee-expense-summary/13"
}, - {
- "key": "15",
- "id": "15",
- "href": "/objects/expenses/employee-expense-summary/15"
}, - {
- "key": "16",
- "id": "16",
- "href": "/objects/expenses/employee-expense-summary/16"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 3,
- "next": 0,
- "previous": 0
}
}
Creates a new employee expense summary.
Subscription | Time & Expenses |
---|---|
User type | Business, Employee |
Permissions | List, View, Add Expense summaries |
Employee expense summary to create
name required | string Title of the summary. Example: "Expenses - Expenses (USD) Q3 Batch" |
postingDate required | string <date> The GL posting date for the expense summary. Example: "2021-01-23" |
state | string Default: "open" State of the employee expense summary. Example: "open" |
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
{- "name": "Expenses (USD) Q1 Batch",
- "title": "Expenses (USD) Q1 Batch",
- "postingDate": "2021-01-23",
- "totalAmount": "100",
- "recordType": "expense",
- "status": "active"
}
{- "ia::result": {
- "key": "10",
- "id": "10",
- "href": "/objects/expenses/employee-expense-summary/10"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Returns detailed information for a specified employee expense summary.
Subscription | Time & Expenses |
---|---|
User type | Business, Employee |
Permissions | List, View Expense summaries |
key required | string System-assigned key for the employee expense summary. |
OK
Bad Request
{- "ia::result": {
- "key": "18",
- "id": "18",
- "title": "Expense reports for week 03",
- "postingDate": "2023-01-20",
- "totalAmount": "100",
- "state": "open",
- "recordType": "expense",
- "summaryCreationType": "manual",
- "entity": {
- "key": "46",
- "id": "Western Region",
- "name": "Western Region",
- "href": "/objects/company-config/entity/46"
}, - "bankAccount": {
- "key": "1",
- "id": "BOA",
- "href": "/objects/cash-management/bank-account/1"
}, - "preventGLPosting": false,
- "href": "/objects/expenses/employee-expense-summary/18"
}, - "ia::meta": {
- "totalCount": 1
}
}
Updates an existing employee expense summary by setting field values. Any fields not provided remain unchanged.
Subscription | Time & Expenses |
---|---|
User type | Business, Employee |
Permissions | List, View, Edit Expense summaries |
key required | string System-assigned key for the employee expense summary. |
name | string Title of the summary. Example: "Expenses - Expenses (USD) Q3 Batch" |
postingDate | string <date> The GL posting date for the expense summary. Example: "2021-01-23" |
state | string Default: "open" State of the employee expense summary. Example: "open" |
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": "Expense report for January"
}
{- "ia::result": {
- "key": "124",
- "id": "124",
- "href": "/objects/expenses/employee-expense-summary/124"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Deletes an employee expense summary.
Subscription | Time & Expenses |
---|---|
User type | Business, Employee |
Permissions | List, View, Delete Expense summaries |
key required | string System-assigned key for the employee expense summary. |
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: "expenses/employee-expense-summary" | ||||||||
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": "expenses/employee-expense-summary",
- "filters": [
- {
- "$eq": {
- "state": "open"
}
}
], - "fields": [
- "key",
- "id",
- "title",
- "href"
], - "orderBy": [
- {
- "id": "asc"
}
]
}
null