A contract expense is the cost incurred to obtain or fulfill a contract with a customer.
Returns up to 100 object references from the collection with a key, ID, and link for each contract expense. 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": "84",
- "id": "84",
- "href": "/objects/contracts/expense/84"
}, - {
- "key": "87",
- "id": "87",
- "href": "/objects/contracts/expense/87"
}
], - "ia::meta": {
- "totalCount": 2,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Creates a new contract expense.
Contract expense to create
required | object contract | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
postingDate required | string <date> GL posting date Example: "2022-02-01" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
txnAmount required | string <decimal-precision-2> Amount Example: "100.00" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
baseAmount | string <decimal-precision-2> Base amount Example: "100.00" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Created
Bad Request
{- "contract": {
- "key": "1"
}, - "item": {
- "key": "1"
}, - "dimensions": {
- "location": {
- "key": "1"
}
}, - "templates": {
- "expenseJournal1": {
- "expenseTemplate": {
- "key": "1"
}, - "startDate": "2015-01-15",
- "endDate": "2015-03-31"
}
}, - "txnAmount": "8.25",
- "baseAmount": "8.25",
- "postingDate": "2015-01-15"
}
{- "ia::result": [
- {
- "key": "2",
- "id": "2",
- "href": "/objects/contracts/expense/2"
}
], - "ia::meta": {
- "totalCount": 1
}
}
Returns detailed information for a specified contract expense.
key required | string System-assigned key for the contract expense. Example: 17 |
OK
Bad Request
{- "ia::result": {
- "id": "2",
- "key": "2",
- "contract": {
- "key": "1",
- "id": "Usagerevrec_Case6",
- "href": "/objects/contracts/contract/1"
}, - "contractLine": {
- "id": null,
- "key": null,
- "state": null
}, - "item": {
- "key": "322",
- "id": "CONT-SUPPEXP",
- "name": "Functional Consultation support Charges",
- "href": "/objects/inventory-control/item/322"
}, - "dimensions": {
- "location": {
- "key": "1",
- "id": "1",
- "name": "United States of America",
- "href": "/objects/company-config/location/1"
}, - "department": {
- "key": null,
- "id": null,
- "name": null
}, - "project": {
- "key": null,
- "id": null,
- "name": null
}, - "customer": {
- "id": "CAR",
- "name": "CAR"
}, - "vendor": {
- "key": null,
- "id": null,
- "name": null
}, - "employee": {
- "key": null,
- "id": null,
- "name": null
}, - "class": {
- "key": null,
- "id": null,
- "name": null
}
}, - "templates": {
- "expenseJournal1": {
- "expenseTemplate": {
- "key": "1",
- "id": "EXPSTRAIGHTLINE_MAN",
- "defaultPostingType": "M",
- "href": "/objects/contracts/expense-template/1"
}, - "startDate": "2015-01-15",
- "endDate": "2015-03-31",
- "schedule": {
- "key": "15",
- "status": "In progress",
- "href": "/objects/contracts/expense-schedule/15"
}, - "glJournal": {
- "key": "52",
- "href": "/objects/general-ledger/journal/52"
}, - "postingType": null,
- "postingConversionDate": null
}, - "expenseJournal2": {
- "expenseTemplate": {
- "key": null,
- "id": null,
- "defaultPostingType": null
}, - "startDate": null,
- "endDate": null,
- "schedule": {
- "key": null,
- "status": null
}, - "glJournal": {
- "key": "54",
- "href": "/objects/general-ledger/journal/54"
}, - "postingType": null,
- "postingConversionDate": null
}
}, - "txnAmount": "8.25",
- "baseAmount": "8.25",
- "currency": {
- "txnCurrency": "USD",
- "baseCurrency": "USD",
- "exchangeRateDate": null,
- "exchangeRate": "1.000000000000"
}, - "postingDate": "2015-01-15",
- "cancelationDate": null,
- "deferredExpenseGLAccount": {
- "key": "427",
- "href": "/objects/general-ledger/account/427"
}, - "recognizedExpenseGLAccount": {
- "key": "433",
- "href": "/objects/general-ledger/account/433"
}, - "expenseAccrualGLAccount": {
- "key": "439",
- "href": "/objects/general-ledger/account/439"
}, - "state": "inProgress",
- "expenseType": "contract",
- "audit": {
- "createdDateTime": "2023-06-26T10:17:19Z",
- "modifiedDateTime": "2023-06-26T10:19:18Z",
- "createdBy": "1",
- "modifiedBy": "1"
}, - "calculatedExpensePostingType": "M",
- "memo": null,
- "lineNumber": "2",
- "href": "/objects/contracts/expense/2"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing contract expense by setting field values. Any fields not provided remain unchanged.
key required | string System-assigned key for the contract expense. Example: 17 |
txnAmount | string <decimal-precision-2> Amount Example: "100.00" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
baseAmount | string <decimal-precision-2> Base amount Example: "100.00" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
postingDate | string <date> GL posting date Example: "2022-02-01" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object contract | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
OK
Bad Request
{- "templates": {
- "expenseJournal1": {
- "expenseTemplate": {
- "key": "1"
}, - "startDate": "2015-01-15",
- "endDate": "2015-03-31"
}
}, - "txnAmount": "8.25",
- "baseAmount": "8.25",
- "postingDate": "2015-01-15"
}
{- "ia::result": {
- "key": "2",
- "id": "2",
- "href": "/objects/contracts/expense/2"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Deletes a contract expense.
key required | string System-assigned key for the contract expense. Example: 17 |
No Content
Bad Request
{- "ia::error": {
- "code": "invalidRequest",
- "message": "Malformed URL",
- "supportId": "sQrM9%7EYdh5oDEWVb80mrn9xuHjoAAAABBQ",
- "details": [
- {
- "code": "invalidRequest",
- "message": "The content type is not valid",
- "correction": "TODO"
}
]
}
}
Queries an object for filtered data.
object | string Object type to query, in the form Example: "contracts/expense" | ||||||||
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": "accounts-payable/vendor",
- "fields": [
- "id",
- "name",
- "status",
- "href"
], - "filters": [
- {
- "$eq": {
- "status": "active"
}
}, - {
- "$eq": {
- "billingType": "openItem"
}
}
], - "filterExpression": "1 and 2",
- "orderBy": [
- {
- "id": "asc"
}
]
}
{- "ia::result": [
- {
- "id": "Vend-00002",
- "name": "Test vendor",
- "status": "active",
- "href": "/objects/accounts-payable/vendor/85"
}, - {
- "id": "VEND-00010",
- "name": "Design Works",
- "status": "active",
- "href": "/objects/accounts-payable/vendor/111"
}
], - "ia::meta": {
- "totalCount": 2,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}