An expense template defines the schedule to recognize an expense amount for a contract or contract line over the contract term. You can create any number of expense templates and reuse them across contracts.
Returns up to 100 object references from the collection with a key, ID, and link for each contract expense template. This operation is mostly for use in testing; use query to find objects that meet certain criteria and to specify properties that are returned.
OK
Bad Request
{- "ia::result": [
- {
- "key": "2",
- "id": "EXPSTRAIGHTLINE_AUTO",
- "href": "/objects/contracts/expense-template/2"
}
], - "ia::meta": {
- "totalCount": 1,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Creates a new contract expense template.
Contract expense template to create
id required | string Contract Expense Template ID Example: "EXPSTRAIGHTLINE_MAN" | ||||||||
description | string Description Example: "Expense straight line manual" | ||||||||
amortizationSchedulePeriod | string Default: "monthly" Amortization Schedule Period Example: "annually" | ||||||||
amortizationMethod | string Default: "straightLine" Amortization method Example: "straightLine" | ||||||||
defaultPostingType | string Default: "manual" Default Posting type Example: "manual" | ||||||||
Array of objects Contract expense template entries | |||||||||
Array
| |||||||||
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": "EXPSTRAIGHTLINE_MAN1",
- "description": "Cont Expenses straighline Amortization Monthly Manual",
- "defaultPostingType": "manual",
- "amortizationSchedulePeriod": "monthly",
- "postingDay": 2,
- "amortizationMethod": "straightLine"
}
{- "ia::result": {
- "key": "26",
- "id": "EXPSTRAIGHTLINE_MAN1",
- "href": "/objects/contracts/expense-template/26"
}, - "ia::meta": {
- "totalCount": 1
}
}
Returns detailed information for a specified contract expense template.
key required | string System-assigned key for the contract expense template. Example: 168 |
OK
Bad Request
{- "ia::result": {
- "key": "1",
- "id": "EXPSTRAIGHTLINE_MAN",
- "description": "Cont Expenses straighline Amortization Monthly Manual",
- "defaultPostingType": "manual",
- "amortizationSchedulePeriod": "monthly",
- "postingDay": 1,
- "amortizationMethod": "straightLine",
- "status": "active",
- "audit": {
- "modifiedDateTime": "2016-05-13T18:22:57Z",
- "createdDateTime": "2016-05-13T18:22:57Z",
- "createdBy": "1",
- "modifiedBy": "1"
}, - "lines": [ ],
- "href": "/objects/contracts/expense-template/1"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing contract expense template by setting field values. Any fields not provided remain unchanged.
key required | string System-assigned key for the contract expense template. Example: 168 |
description | string Description Example: "Expense straight line manual" | ||||||||
amortizationSchedulePeriod | string Default: "monthly" Amortization Schedule Period Example: "annually" | ||||||||
amortizationMethod | string Default: "straightLine" Amortization method Example: "straightLine" | ||||||||
defaultPostingType | string Default: "manual" Default Posting type Example: "manual" | ||||||||
Array of objects Contract expense template entries | |||||||||
Array
| |||||||||
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
{- "description": "Cont Expenses straighline Amortization Monthly Manual",
- "defaultPostingType": "manual",
- "amortizationSchedulePeriod": "monthly",
- "postingDay": 3,
- "amortizationMethod": "straightLine"
}
{- "ia::result": {
- "key": "27",
- "id": "EXPSTRAIGHTLINE_1",
- "href": "/objects/contracts/expense-template/27"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Deletes a contract expense template.
key required | string System-assigned key for the contract expense template. Example: 168 |
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
}
}
Use the query service to find expense templates that meet certain criteria and to specify the properties that are returned.
OK