The inter-entity configuration object lets you designate payable and receivable accounts for inter-entity transactions in a multi-entity shared company.
There is only one inter-entity configuration object (INTERENTITYSETUP) for a company, and the record number is always 1.
Two types of inter-entity configuration are available:
With the basic configuration, you provide one default inter-entity receivable (IER) account and one default inter-entity payable (IEP) account for each entity.
With the advanced configuration, you create a relationship between two entities and provide the IER and IEP accounts for each side of the relationship.
Your company will use one type of configuration or the other—they cannot be used together.
Get the Inter-Entity Configuration
When you get an inter-entity configuration, the type of configuration (ADVANCED or BASIC) is returned via the IEMAPPLAN parameter in the response.
read
Get the inter-entity configuration object using the record number, which is always 1.
Parameters
Name
Required
Type
Description
object
Required
string
Use INTERENTITYSETUP
keys
Required
string
Use 1
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.
returnFormat
Optional
string
Data format for the response body:
xml (default)
json
csv
Response
INTERENTITYSETUP
The above function returns the following for a basic configuration:
The above function returns the following for an advanced configuration:
Update the Inter-Entity Configuration
How you designate payable and receivable accounts for inter-entity transactions depends on your inter-entity configuration.
Basic Configuration
With basic configuration, you provide one default inter-entity receivable (IER) account and one default inter-entity payable (IEP) account for each entity in a single ENTITYACCTDEFAULT object.
To create a new pair of default accounts, provide an ENTITYACCTDEFAULT for an entity ID that doesn’t currently have default accounts.
To update an existing pair of default accounts, provide the record numbers of the existing ENTITYACCTDEFAULT objects and the entity IDs, but with different IER and IEP accounts. You must provide two accounts, so if you only want to change one, include the changed one and the one you want to keep. Any existing defaults not specified in the update remain untouched.
To delete a default pair of accounts, provide the record number of the existing ENTITYACCTDEFAULT objects with null values for both accounts in the ENTITYACCTDEFAULT object. Alternatively, you can use the delete function.
Advanced Configuration
With advanced configuration, you create a relationship between two entities using a pair of ENTITYACCTOVERRIDE objects. Each ENTITYACCOVERRIDE object provides the IER and IEP account for the entity on one side of the relationship. The accounts will be used when transferring back and forth between these two entities.
To create a relationship, provide an ENTITYACCTOVERRIDE for each side of a new relationship between two entities. Two ENTITYACCTOVERRIDE objects must be supplied when creating a new relationship.
To update an existing relationship, supply both sides of the relationship as ENTITYACCTOVERRIDE objects and include their record numbers and the other fields. You must provide two ENTITYACCTOVERRIDE objects, so if you only want to change one, include the changed one and the one you want to keep. Any existing relationships not specified in the update remain untouched.
To delete an existing relationship, provide both involved ENTITYACCTOVERRIDE objects by record number and provide null values for both accounts for either one of these two objects (it doesn’t matter which one—the entire relationship will be delted).
update
Provides a new default account and updates an existing default account for a company with basic configuration:
Creates a relationship between two entities for a company with advanced configuration:
Adds a new relationship and updates an existing relationship for a company with advanced configuration:
Deletes a relationship between two entities for a company with advanced configuration:
Parameters
Name
Required
Type
Description
INTERENTITYSETUP
Required
object
Object to update
INTERENTITYSETUP
Name
Required
Type
Description
RECORDNO
Required
integer
Use 1
ENTITYACCTDEFAULTS
Optional
ENTITYACCTDEFAULT[0..n]
Basic inter-entity default accounts. Required if using basic configuration.
ENTITYACCTOVERRIDES
Optional
ENTITYACCTOVERRIDE[0..n]
Advanced inter-entity relationships between entities. Required if using advanced configuration.
ENTITYACCTDEFAULT
Name
Required
Type
Description
RECORDNO
Optional
integer
Required if updating an existing entity account default
ENTITYID
Required
string
ID of the entity
IEPAYABLEACCTNO
Required
string
Account number for the IE payable account
IERECEIVABLEACCTNO
Required
string
Account number for the IE receivable account
ENTITYACCTOVERRIDE
Name
Required
Type
Description
RECORDNO
Optional
integer
Required if updating an existing entity account override
SOURCEENTITYID
Required
string
ID of the source entity
TARGETENTITYID
Required
string
ID of the target entity
IEPAYABLEACCTNO
Required
string
Account number for the IE payable account for the source entity. Provide an empty value to delete the relationship on both sides.
IERECEIVABLEACCTNO
Required
string
Account number for the IE receivable account for the source entity. Provide an empty value to delete the relationship on both sides.
Delete Inter-Entity Account Default
delete
Parameters
Name
Required
Type
Description
object
Required
string
Use ENTITYACCTDEFAULT
keys
Required
string
Comma-separated list of entity account default to delete
Delete Inter-Entity Account Override
delete
Parameters
Name
Required
Type
Description
object
Required
string
Use ENTITYACCTOVERRIDE
keys
Required
string
Comma-separated list of entity account override to delete