Account allocations let you automatically distribute amounts across multiple dimensions such as departments, locations, projects, or classes.
An account allocation definition is a template for allocations. After it's created, you can generate the allocation as often as needed using the same definition to streamline the overall allocation process. For example, you can create an allocation definition that distributes expenses across revenue-earning departments, then run an allocation using that definition for the dates you want.
Note that only intra-entity (not inter-entity) revenue and expense allocations are supported at this time.
Returns a collection with a key, ID, and link for each account allocation. This operation is mostly for use in testing; use the query service to find allocation definitions that meet specific criteria and to specify the properties that you want in the response.
OK
Bad Request
{- "ia::result": [
- {
- "key": "23",
- "id": "23",
- "href": "/objects/general-ledger/account-allocation/23"
}, - {
- "key": "27",
- "id": "27",
- "href": "/objects/general-ledger/account-allocation/27"
}, - {
- "key": "21",
- "id": "21",
- "href": "/objects/general-ledger/account-allocation/21"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Creates a new account allocation definition.
Account allocation definition to create
name required | string Account Allocation definition ID. Must be 20 characters or less. Example: "AllocaForAdjBookNew" | ||||||||||||||||||||
description | string Description of the allocation definition. Example: "Monthly allocation of expenses" | ||||||||||||||||||||
methodology | string Description of methodology used for the allocation definition. Example: "Expense allocation across revenue earning departments" | ||||||||||||||||||||
object Supporting document ID for this attachment. | |||||||||||||||||||||
| |||||||||||||||||||||
latestVersion | integer or null Latest version Example: null | ||||||||||||||||||||
object Sets how dimensions are used during allocation calculations and the level of detail that will be included in the created allocation entries. Also indicates whether allocation occurs within a single entity or occurs across entities in companies with more than one entity. Valid values:
| |||||||||||||||||||||
| |||||||||||||||||||||
activityDelta | boolean Default: false Activity delta. Set to Example: true | ||||||||||||||||||||
autoReversePriorPostedJournalEntry | boolean Default: false When set t This property cannot be set to Example: false | ||||||||||||||||||||
Array of objects = 1 items Source pool for the allocation. | |||||||||||||||||||||
Array (= 1 items)
| |||||||||||||||||||||
Array of objects = 1 items Basis information that specifies how the allocation splits source amounts into each target. | |||||||||||||||||||||
Array (= 1 items)
| |||||||||||||||||||||
Array of objects = 1 items Allocation destination in the target entry. Specifies where the allocation will be recorded. The debit and credit accounts selected depend on your allocation setup. For example, expense allocations typically have the allocation as a debit. | |||||||||||||||||||||
Array (= 1 items)
| |||||||||||||||||||||
Array of objects = 1 items Reversing source pool in the target entry. | |||||||||||||||||||||
Array (= 1 items)
| |||||||||||||||||||||
allowAllocation | string Default: "withinOneEntity" Specifies how the allocation should interact when there is data in more than 1 entity.
Example: "withinOneEntity" | ||||||||||||||||||||
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": "Monthly Expenses RE",
- "description": "Monthly allocation of expenses",
- "methodology": "Monthly Expense allocation across revenue earning departments",
- "status": "active",
- "activityDelta": false,
- "autoReversePriorPostedJournalEntry": false,
- "dimensionTreatment": {
- "location": "preserveValues",
- "department": "allocationFocus",
- "project": "notConsidered",
- "customer": "notConsidered",
- "vendor": "notConsidered",
- "employee": "notConsidered",
- "item": "notConsidered",
- "class": "notConsidered",
- "contract": "notConsidered",
- "warehouse": "notConsidered"
}, - "latestVersion": null,
- "allowAllocation": "withinOneEntity",
- "glAccountAllocationSource": [
- {
- "glAccountGroup": {
- "id": "source"
}, - "percentToAllocate": "100",
- "timePeriod": {
- "id": "Current Month"
}, - "reportingBook": "accrual",
- "useAmountsFrom": "mainReportingBookAndAlternateBooks",
- "currency": "USD",
- "dimensions": {
- "location": {
- "id": "1"
}, - "department": {
- "id": "3"
}, - "employee": {
- "id": "1"
}, - "nsp::udd1": {
- "key": "10002"
}
}
}
], - "glAccountAllocationBasis": [
- {
- "glAccountGroup": {
- "id": "Basis"
}, - "accumulation": "activity",
- "timePeriod": {
- "id": "Current Month"
}, - "allocationMethod": "dynamicRelativeAccountFinancial",
- "reportingBook": "accrual",
- "useAmountsFrom": "mainReportingBookAndAlternateBooks",
- "skipNegative": false,
- "dimensions": {
- "location": {
- "id": "1"
}, - "employee": {
- "id": "1"
}, - "nsp::udd1": {
- "key": "10002"
}
}
}
], - "glAccountAllocationTarget": [
- {
- "journal": {
- "id": "Others"
}, - "glAccount": {
- "id": "1105"
}, - "isBillable": false,
- "dimensions": {
- "location": {
- "id": "AZ"
}, - "customer": {
- "id": "1"
}, - "nsp::udd1": {
- "key": "10003"
}
}
}
], - "glAccountAllocationReverse": [
- {
- "useSourceAccount": true,
- "dimensions": {
- "location": {
- "id": "AZ"
}, - "department": {
- "id": "6"
}, - "nsp::udd1": {
- "key": "10003"
}
}
}
]
}
{- "ia::result": {
- "id": "29",
- "key": "29",
- "href": "/objects/general-ledger/account-allocation/29"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Returns detailed information for a specified account allocation definition.
key required | string System-assigned key for the account allocation definition. |
OK
Bad Request
{- "ia::result": {
- "id": "29",
- "key": "29",
- "name": "Monthly Expenses RE",
- "description": "Monthly allocation of expenses",
- "methodology": "Monthly Expense allocation across revenue earning departments",
- "status": "active",
- "activityDelta": false,
- "autoReversePriorPostedJournalEntry": false,
- "dimensionTreatment": {
- "location": "preserveValues",
- "department": "allocationFocus",
- "project": "notConsidered",
- "customer": "notConsidered",
- "vendor": "notConsidered",
- "employee": "notConsidered",
- "item": "notConsidered",
- "class": "notConsidered",
- "contract": "notConsidered",
- "warehouse": "notConsidered"
}, - "latestVersion": null,
- "audit": {
- "createdDateTime": "2024-06-25T12:16:47Z",
- "modifiedDateTime": "2024-06-25T12:16:47Z",
- "createdBy": "1",
- "modifiedBy": "1"
}, - "journal": {
- "id": "Travel",
- "key": "41",
- "href": "/objects/general-ledger/journal/41"
}, - "allowAllocation": "withinOneEntity",
- "attachment": {
- "id": null,
- "key": null
}, - "entity": {
- "key": null,
- "id": null,
- "name": null
}, - "dimensions": {
- "nsp::udd1": {
- "key": null
}
}, - "glAccountAllocationSource": [
- {
- "id": "28",
- "key": "28",
- "glAccountAllocation": {
- "id": "29",
- "key": "29",
- "href": "/objects/general-ledger/account-allocation/29"
}, - "glAccountGroup": {
- "id": "source",
- "key": "622",
- "href": "/objects/general-ledger/account-group/622"
}, - "percentToAllocate": "100",
- "timePeriod": {
- "id": "Current Month",
- "key": "395",
- "href": "/objects/general-ledger/reporting-period/395"
}, - "reportingBook": "accrual",
- "useAmountsFrom": "mainReportingBookAndAlternateBooks",
- "currency": "USD",
- "audit": {
- "createdDateTime": "2024-06-25T12:16:47Z",
- "modifiedDateTime": "2024-06-25T12:16:47Z",
- "createdBy": "1",
- "modifiedBy": "1"
}, - "dimensions": {
- "location": {
- "key": "1",
- "id": "1",
- "name": "United States of America",
- "href": "/objects/company-config/location/1"
}, - "department": {
- "key": "3",
- "id": "3",
- "name": "Engineering",
- "href": "/objects/company-config/department/3"
}, - "project": {
- "key": null,
- "name": null,
- "id": null
}, - "customer": {
- "key": null,
- "name": null,
- "id": null
}, - "vendor": {
- "key": null,
- "name": null,
- "id": null
}, - "employee": {
- "key": "1",
- "name": "Reser",
- "id": "1",
- "href": "/objects/company-config/employee/1"
}, - "item": {
- "key": null,
- "name": null,
- "id": null
}, - "class": {
- "key": null,
- "name": null,
- "id": null
}, - "contract": {
- "key": null,
- "name": null,
- "id": null
}, - "warehouse": {
- "key": null,
- "name": null,
- "id": null
}, - "nsp::udd1": {
- "key": "10002",
- "href": "/objects/platform-apps/nsp::udd1/10002"
}, - "task": {
- "id": null
}
}, - "href": "/objects/general-ledger/account-allocation-source/28"
}
], - "glAccountAllocationBasis": [
- {
- "id": "21",
- "key": "21",
- "glAccountAllocation": {
- "id": "29",
- "key": "29",
- "href": "/objects/general-ledger/account-allocation/29"
}, - "glAccountGroup": {
- "id": "Basis",
- "key": "623",
- "href": "/objects/general-ledger/account-group/623"
}, - "accumulation": "activity",
- "timePeriod": {
- "id": "Current Month",
- "key": "395",
- "href": "/objects/general-ledger/reporting-period/395"
}, - "allocationMethod": "dynamicRelativeAccountFinancial",
- "reportingBook": "accrual",
- "useAmountsFrom": "mainReportingBookAndAlternateBooks",
- "skipNegative": false,
- "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,
- "name": null,
- "id": null
}, - "customer": {
- "key": null,
- "name": null,
- "id": null
}, - "vendor": {
- "key": null,
- "name": null,
- "id": null
}, - "employee": {
- "key": "1",
- "name": "Reser",
- "id": "1",
- "href": "/objects/company-config/employee/1"
}, - "item": {
- "key": null,
- "name": null,
- "id": null
}, - "class": {
- "key": null,
- "name": null,
- "id": null
}, - "contract": {
- "key": null,
- "name": null,
- "id": null
}, - "warehouse": {
- "key": null,
- "name": null,
- "id": null
}, - "nsp::udd1": {
- "key": "10002",
- "href": "/objects/platform-apps/nsp::udd1/10002"
}, - "task": {
- "id": null
}
}, - "href": "/objects/general-ledger/account-allocation-basis/21"
}
], - "glAccountAllocationTarget": [
- {
- "id": "21",
- "key": "21",
- "glAccountAllocation": {
- "id": "29",
- "key": "29",
- "href": "/objects/general-ledger/account-allocation/29"
}, - "journal": {
- "key": "39",
- "title": "Accomadation Expenses",
- "id": "Others",
- "href": "/objects/general-ledger/journal/39"
}, - "glAccount": {
- "id": "1105",
- "key": "378",
- "name": "Target",
- "href": "/objects/general-ledger/account/378"
}, - "isBillable": false,
- "audit": {
- "createdDateTime": "2024-06-25T12:16:47Z",
- "modifiedDateTime": "2024-06-25T12:16:47Z",
- "createdBy": "1",
- "modifiedBy": "1"
}, - "dimensions": {
- "location": {
- "key": "72",
- "id": "AZ",
- "name": "Arizona",
- "href": "/objects/company-config/location/72"
}, - "department": {
- "key": null,
- "id": null,
- "name": null
}, - "project": {
- "key": null,
- "name": null,
- "id": null
}, - "customer": {
- "key": "1",
- "name": "Power Aerospace Materials",
- "id": "1",
- "href": "/objects/accounts-receivable/customer/1"
}, - "vendor": {
- "key": null,
- "name": null,
- "id": null
}, - "employee": {
- "key": null,
- "name": null,
- "id": null
}, - "item": {
- "key": null,
- "name": null,
- "id": null
}, - "class": {
- "key": null,
- "name": null,
- "id": null
}, - "contract": {
- "key": null,
- "name": null,
- "id": null
}, - "warehouse": {
- "key": null,
- "name": null,
- "id": null
}, - "nsp::udd1": {
- "key": "10003",
- "href": "/objects/platform-apps/nsp::udd1/10003"
}
}, - "href": "/objects/general-ledger/account-allocation-target/21"
}
], - "glAccountAllocationReverse": [
- {
- "id": "21",
- "key": "21",
- "glAccountAllocation": {
- "id": "29",
- "key": "29",
- "href": "/objects/general-ledger/account-allocation/29"
}, - "glAccount": {
- "id": null,
- "key": null,
- "name": null
}, - "useSourceAccount": true,
- "audit": {
- "createdDateTime": "2024-06-25T12:16:48Z",
- "modifiedDateTime": "2024-06-25T12:16:48Z",
- "createdBy": "1",
- "modifiedBy": "1"
}, - "dimensions": {
- "location": {
- "key": "72",
- "id": "AZ",
- "name": "Arizona",
- "href": "/objects/company-config/location/72"
}, - "department": {
- "key": "6",
- "id": "6",
- "name": "Marketing",
- "href": "/objects/company-config/department/6"
}, - "project": {
- "key": null,
- "name": null,
- "id": null
}, - "customer": {
- "key": null,
- "name": null,
- "id": null
}, - "vendor": {
- "key": null,
- "name": null,
- "id": null
}, - "employee": {
- "key": null,
- "name": null,
- "id": null
}, - "item": {
- "key": null,
- "name": null,
- "id": null
}, - "class": {
- "key": null,
- "name": null,
- "id": null
}, - "contract": {
- "key": null,
- "name": null,
- "id": null
}, - "warehouse": {
- "key": null,
- "name": null,
- "id": null
}, - "nsp::udd1": {
- "key": "10003",
- "href": "/objects/platform-apps/nsp::udd1/10003"
}
}, - "href": "/objects/general-ledger/account-allocation-reverse/21"
}
], - "href": "/objects/general-ledger/account-allocation/29"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing account allocation definition by setting field values. Any fields not provided remain unchanged.
key required | string System-assigned key for the account allocation definition. |
name | string Account Allocation definition ID. Must be 20 characters or less. Example: "AllocaForAdjBookNew" | ||||||||||||||||||||
description | string Description of the allocation definition. Example: "Monthly allocation of expenses" | ||||||||||||||||||||
methodology | string Description of methodology used for the allocation definition. Example: "Expense allocation across revenue earning departments" | ||||||||||||||||||||
object Supporting document ID for this attachment. | |||||||||||||||||||||
| |||||||||||||||||||||
latestVersion | integer or null Latest version Example: null | ||||||||||||||||||||
object Sets how dimensions are used during allocation calculations and the level of detail that will be included in the created allocation entries. Also indicates whether allocation occurs within a single entity or occurs across entities in companies with more than one entity. Valid values:
| |||||||||||||||||||||
| |||||||||||||||||||||
activityDelta | boolean Default: false Activity delta. Set to Example: true | ||||||||||||||||||||
autoReversePriorPostedJournalEntry | boolean Default: false When set t This property cannot be set to Example: false | ||||||||||||||||||||
Array of objects = 1 items Source pool for the allocation. | |||||||||||||||||||||
Array (= 1 items)
| |||||||||||||||||||||
Array of objects = 1 items Basis information that specifies how the allocation splits source amounts into each target. | |||||||||||||||||||||
Array (= 1 items)
| |||||||||||||||||||||
Array of objects = 1 items Allocation destination in the target entry. Specifies where the allocation will be recorded. The debit and credit accounts selected depend on your allocation setup. For example, expense allocations typically have the allocation as a debit. | |||||||||||||||||||||
Array (= 1 items)
| |||||||||||||||||||||
Array of objects = 1 items Reversing source pool in the target entry. | |||||||||||||||||||||
Array (= 1 items)
| |||||||||||||||||||||
allowAllocation | string Default: "withinOneEntity" Specifies how the allocation should interact when there is data in more than 1 entity.
Example: "withinOneEntity" | ||||||||||||||||||||
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": "Yearly allocation of expenses",
- "methodology": "Yearly Expense allocation across revenue earning departments",
- "activityDelta": true
}
{- "ia::result": {
- "id": "29",
- "key": "29",
- "href": "/objects/general-ledger/account-allocation/29"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Deletes a GL account allocation definition.
key required | string System-assigned key for the account allocation definition. |
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: "general-ledger/account-allocation" | ||||||||
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
}
}