Transaction allocation template lines define how allocations are distributed. Allocation template lines can only be added, updated, and deleted through the owning txn-allocation-template object.
Returns up to 100 transaction allocation template lines from the collection with a key, ID, and link for each one. This operation is mostly for use in testing; use the query service to find allocation template lines that meet specific criteria and to specify the properties that you want in the response.
OK
Bad Request
{- "ia::result": [
- {
- "key": "4",
- "id": "4",
- "href": "/objects/general-ledger/txn-allocation-template-line/1"
}, - {
- "key": "8",
- "id": "8",
- "href": "/objects/general-ledger/txn-allocation-template-line/1"
}, - {
- "key": "1",
- "id": "1",
- "href": "/objects/general-ledger/txn-allocation-template-line/2"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Returns detailed information for a specified transaction allocation template line.
key required | string System-assigned key for the transaction allocation template line. Example: 2 |
OK
Bad Request
{- "ia::result": {
- "key": "8",
- "id": "8",
- "allocation": {
- "id": "Fixed amount allocation",
- "key": "3",
- "href": "/objects/general-ledger/txn-allocation-template/3"
}, - "valueType": "amount",
- "value": "100",
- "dimensions": {
- "location": {
- "id": "1",
- "name": "United States of America",
- "key": "1",
- "href": "/objects/company-config/location/1"
}, - "department": {
- "id": "11",
- "name": "Accounting",
- "key": "9",
- "href": "/objects/company-config/department/9"
}, - "project": {
- "key": "13",
- "id": "CO",
- "name": "Contract - Platinum - Modulus Industries",
- "href": "/objects/projects/project/13"
}, - "customer": {
- "key": "3",
- "id": "MI",
- "name": "Modulus Industries",
- "href": "/objects/accounts-receivable/customer/3"
}, - "vendor": {
- "key": "47",
- "id": "201",
- "name": "PG & E",
- "href": "/objects/accounts-payable/vendor/47"
}, - "employee": {
- "key": "2",
- "id": "2",
- "name": "Hatcher",
- "href": "/objects/company-config/employee/2"
}, - "item": {
- "key": "29",
- "id": "A001",
- "name": "Desktop-HP",
- "href": "/objects/inventory-control/item/29"
}, - "class": {
- "key": "6",
- "id": "4",
- "name": "Professional Services",
- "href": "/objects/company-config/class/6"
}, - "task": {
- "key": "1",
- "id": "T-001",
- "name": "Task-1",
- "href": "/objects/projects/task/1"
}, - "warehouse": {
- "key": "19",
- "id": "WareHouse10004",
- "name": "Warehouse Name 10004 (CN)",
- "href": "/objects/inventory-control/warehouse/19"
}
}, - "audit": {
- "createdDateTime": "2022-06-23T12:25:09Z",
- "modifiedDateTime": "2022-06-23T12:25:09Z",
- "createdBy": "1",
- "modifiedBy": "1"
}, - "lineNumber": 1,
- "href": "/objects/general-ledger/txn-allocation-template-line/8"
}, - "ia::meta": {
- "totalCount": 1
}
}
Queries an object for filtered data.
object | string Object type to query, in the form Example: "general-ledger/txn-allocation-template-line" | ||||||||
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": "general-ledger/txn-allocation-template-line",
- "filters": [
- {
- "$eq": {
- "unit": "percent"
}
}, - {
- "$eq": {
- "value": 100
}
}
], - "filterExpression": "1 and 2",
- "fields": [
- "key",
- "id",
- "href",
- "txnAllocationTemplate.id"
], - "orderBy": [
- {
- "id": "asc"
}
]
}
{- "ia::result": [
- {
- "key": "1",
- "id": "1",
- "href": "/objects/general-ledger/txn-allocation-template-line/1",
- "txnAllocationTemplate.id": "CA-TX"
}, - {
- "key": "2",
- "id": "2",
- "href": "/objects/general-ledger/txn-allocation-template-line/2",
- "txnAllocationTemplate.id": "WA-TX"
}
], - "ia::meta": {
- "totalCount": 2,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}