Transaction allocations enable you to distribute transaction amounts across multiple dimensions such as departments, locations, projects, or classes.
Transaction allocations are intended for use on single line items, allowing you to distribute amounts during entry of a transaction, usually a one-time action. Transaction allocations are only available for distribution across eight of the ten standard dimensions and have other restrictions as well.
If you want to automatically pull updated source balances and distribute them across dimensions according to defined basis calculations, you should use the Dynamic Allocations subscription. See Account Allocations for more info.
Transaction Allocations
Get Transaction Allocation Object Definition
lookup
List all the fields and relationships for the transaction allocation object:
Filter expression to limit the response to only objects that match the expression. Check the value of a single field using operators such as equalto/like, or multiple fields using and/or. Query fields on related objects using the dot operator (for example, VENDOR.CREDITLIMIT on APBILL).
select
Required
sequence
The names of the fields that you want included in the response, and an optional aggregate function such as count or sum. Returning all fields is not supported.
orderby
Optional
object
Provide an order element with a field name and choose an ascending or descending sort order, for example: <order> <field>RECORDNO</field> <descending/> </order>
Comma-separated list of fields on the object to list. For best performance and predictability, limit the number of fields. To return all fields, omit the element or provide * for the value.
query
Required
string
SQL-like query based on fields on the object. The following operators are supported: <, >, >=, <=, =, like, not like, in, not in, IS NOT NULL, IS NULL, AND, OR. Illegal XML characters must be properly encoded, and single quotes must be escaped with backslashes ('Jane\'s Deli'). Joins are not supported.
pagesize
Optional
integer
Custom page size between 1 and 1000 items (Default: 100)
Comma-separated list of transaction allocation RECORDNO to get
fields
Optional
string
Comma-separated list of fields on the object to get. To return all fields, omit the element or provide * for the value. For best performance and predictability, limit the number of fields.
Comma-separated list of transaction allocation ALLOCATIONID to get
fields
Optional
string
Comma-separated list of fields on the object to get. To return all fields, omit the element or provide * for the value. For best performance and predictability, limit the number of fields.
Allocates expenses for departments using amounts and percentages:
<create><ALLOCATION><ALLOCATIONID>ExpenseAllocByDept</ALLOCATIONID><DESCRIPTION/><STATUS>active</STATUS><TYPE>Fixed amount with over/under logic</TYPE><DOCNUMBER/><SUPDOCID/><ALLOCATIONENTRIES><ALLOCATIONENTRY><VALUETYPE>Amount</VALUETYPE><VALUE>500</VALUE><DEPARTMENTID>01</DEPARTMENTID></ALLOCATIONENTRY><ALLOCATIONENTRY><VALUETYPE>Percent</VALUETYPE><VALUE>40</VALUE><DEPARTMENTID>02</DEPARTMENTID></ALLOCATIONENTRY><ALLOCATIONENTRY><VALUETYPE>Percent</VALUETYPE><VALUE>60</VALUE><DEPARTMENTID>03</DEPARTMENTID></ALLOCATIONENTRY></ALLOCATIONENTRIES></ALLOCATION></create>
Parameters
Name
Required
Type
Description
ALLOCATION
Optional
object
Object to create
ALLOCATION
Name
Required
Type
Description
ALLOCATIONID
Required
string
Transaction allocation ID
DESCRIPTION
Optional
string
Description of transaction allocation
STATUS
Optional
string
Transaction allocation status. Use active for Active otherwise use inactive for Inactive (Default: active)
TYPE
Optional
string
How the transaction allocation is split across dimensions.
Use Percentage to specify entries as percentages (default).
Use Absolute to specify entries as fixed amounts.
Use Fixed amount with over/under logic for a combination of both. Exact amounts are distributed first, in the order they occur in the transaction allocation definition. Any remaining amount is distributed using the percentage allocations. Entries for exact amounts must come before entries for percentages, and percentages must always total 100%. (Use the VALUETYPE parameter on each entry to specify amount or percent.)
DOCNUMBER
Optional
string
Document number
ALLOCATIONENTRIES
Required
ALLOCATIONENTRY[1...n]
Transaction allocation entries must add up to 100 if TYPE is Percentage or Fixed amount with over/under logic.
ALLOCATIONENTRY
Name
Required
Type
Description
VALUETYPE
Optional
decimal
Value type, either Amount or Percent. This parameter is required if allocation TYPE is set to Fixed amount with over/under logic. If TYPE is set to Percentage or Absolute, VALUETYPE defaults to the correct value and can be omitted.
VALUE
Required
decimal
Value to allocate by
DEPARTMENTID
Optional
string
Department ID
LOCATIONID
Optional
string.
Location ID. Required if company is multi-entity enabled.
Record number of transaction allocation to update. Required if not using ALLOCATIONID.
ALLOCATIONID
Optional
string
Transaction allocation ID. Required if not using RECORDNO.
DESCRIPTION
Optional
string
Description of transaction allocation
STATUS
Optional
string
Transaction allocation status. Use active for Active otherwise use inactive for Inactive (Default: active)
TYPE
Optional
string
How the transaction allocation is split across dimensions.
Use Percentage to specify entries as percentages (default).
Use Absolute to specify entries as fixed amounts.
Use Fixed amount with over/under logic for a combination of both. Exact amounts are distributed first, in the order they occur in the transaction allocation definition. Any remaining amount is distributed using the percentage allocations. Entries for exact amounts must come before entries for percentages, and percentages must always total 100%. (Use the VALUETYPE parameter on each entry to specify amount or percent.)
DOCNUMBER
Optional
string
Document number
SUPDOCID
Optional
string
Attachments ID
ALLOCATIONENTRIES
Required
ALLOCATIONENTRY[1...n]
Transaction allocation entries must add up to 100 if TYPE is Percentage
ALLOCATIONENTRY
Name
Required
Type
Description
VALUETYPE
Optional
decimal
Value type, either Amount or Percent. This parameter is required if allocation TYPE is set to Fixed amount with over/under logic. If TYPE is set to Percentage or Absolute, VALUETYPE defaults to the correct value and can be omitted.
VALUE
Required
decimal
Value to allocate by
DEPARTMENTID
Optional
string
Department ID
Optional
string
LOCATIONID of an active location. Required if company is multi-entity enabled.
Filter expression to limit the response to only objects that match the expression. Check the value of a single field using operators such as equalto/like, or multiple fields using and/or. Query fields on related objects using the dot operator (for example, VENDOR.CREDITLIMIT on APBILL).
select
Required
sequence
The names of the fields that you want included in the response, and an optional aggregate function such as count or sum. Returning all fields is not supported.
orderby
Optional
object
Provide an order element with a field name and choose an ascending or descending sort order, for example: <order> <field>RECORDNO</field> <descending/> </order>
Comma-separated list of fields on the object to list. For best performance and predictability, limit the number of fields. To return all fields, omit the element or provide * for the value.
query
Required
string
SQL-like query based on fields on the object. The following operators are supported: <, >, >=, <=, =, like, not like, in, not in, IS NOT NULL, IS NULL, AND, OR. Illegal XML characters must be properly encoded, and single quotes must be escaped with backslashes ('Jane\'s Deli'). Joins are not supported.
pagesize
Optional
integer
Custom page size between 1 and 1000 items (Default: 100)
Comma-separated list of transaction allocation line RECORDNO to get
fields
Optional
string
Comma-separated list of fields on the object to get. To return all fields, omit the element or provide * for the value. For best performance and predictability, limit the number of fields.