List the record number, batch number, and description for each statistical journal with the given symbol (SHC):
Parameters
Name
Required
Type
Description
object
Required
string
Use GLBATCH
filter
Optional
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>
Set the caseinsensitive element to true for a case-insensitive query <caseinsensitive>true</caseinsensitive>
In a multi-entity company, set the showprivate element to true to query data in private entities: <showprivate>true</showprivate>
Specify the returnformat for the response: xml (default), json, or csv <returnformat>json</returnformat>
pagesize
Optional
integer
Maximum number of matching objects to return in the response, between 1 and 2000 items (Default: 100)
offset
Optional
integer
Point at which to start indexing into records (Default: 0)
Query and List Statistical Journal Entries (Legacy)
readByQuery
List entries for the statistical journal with the given symbol (SHC):
Parameters
Name
Required
Type
Description
object
Required
string
Use GLBATCH
fields
Optional
string
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)
query Fields
Name
Required
Type
Description
STATE
Optional
string
State of the stat journal entry. Use I for Draft, S for Submitted, X for Partially Approved, A for Approved, P for Posted, R for Declined, L for Reversal Pending, or Z for Reversed.
Get Statistical Journal Entry
read
Parameters
Name
Required
Type
Description
object
Required
string
Use GLBATCH
keys
Required
string
Comma-separated list of stat journal entry 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.
State to update the entry to. Posted to post to the GL, otherwise Draft.
ENTRIES
Required
GLENTRY[1...n]
Must have at least one line. Stat journal entries do not need to balance like regular journal entries.
Custom field name
varies
varies
Custom field names and values as defined for this object. For a multi-pick-list custom field, implode multiple field values with #~#.
GLENTRY
Name
Required
Type
Description
DOCUMENT
Optional
string
Document number of entry
ACCOUNTNO
Required
string
Account number
TRX_AMOUNT
Required
currency
Amount. Absolute value, relates to TR_TYPE.
TR_TYPE
Required
string
Transaction type. 1 for Increase, otherwise -1 for Decrease.
DESCRIPTION
Optional
string
Memo. If left blank, set this value to match BATCH_TITLE.
ALLOCATION
Optional
string
Allocation ID. All other dimension elements are ignored if allocation is set. Use Custom for custom splits and see SPLIT element below.
DEPARTMENT
Optional
string
Department ID
LOCATION
Optional
string
Location ID. Required if multi-entity enabled.
PROJECTID
Optional
string
Project ID
TASKID
Optional
string
Task ID. Only available when the parent PROJECTID is also specified.
COSTTYPEID
Optional
string
Cost type ID. Only available when PROJECTID and TASKID are specified. (Construction subscription)
CUSTOMERID
Optional
string
Customer ID
VENDORID
Optional
string
Vendor ID
EMPLOYEEID
Optional
string
Employee ID
ITEMID
Optional
string
Item ID
CLASSID
Optional
string
Class ID
CONTRACTID
Optional
string
Contract ID
WAREHOUSEID
Optional
string
Warehouse ID
SPLIT
Optional
SPLIT[]
Custom allocation split. Required if ALLOCATION equals Custom. Multiple SPLIT elements may then be passed.
Custom field name
varies
varies
Custom field names and values as defined for this object. For a multi-pick-list custom field, implode multiple field values with #~#.
SPLIT
Name
Required
Type
Description
AMOUNT
Required
currency
Split transaction amount. Absolute value. The sum of the AMOUNT values for all the SPLIT elements must equal the TRX_AMOUNT value for the GLENTRY element.
DEPARTMENTID
Optional
string
Department ID
Optional
string
LOCATIONID of an active location. Required if company is multi-entity enabled.
PROJECTID
Optional
string
Project ID
TASKID
Optional
string
Task ID. Only available when the parent PROJECTID is also specified.
COSTTYPEID
Optional
string
Cost type ID. Only available when PROJECTID and TASKID are specified. (Construction subscription)
CUSTOMERID
Optional
string
Customer ID
VENDORID
Optional
string
Vendor ID
EMPLOYEEID
Optional
string
Employee ID
ITEMID
Optional
string
Item ID
CLASSID
Optional
string
Class ID
CONTRACTID
Optional
string
Contract ID
WAREHOUSEID
Optional
string
Warehouse ID
Delete Statistical Journal Entry
delete
Parameters
Name
Required
Type
Description
object
Required
string
Use GLBATCH
keys
Required
string
Comma-separated list of stat journal entry RECORDNO to delete
Statistical Journal Entry Lines
Get Statistical Journal Entry Line Object Definition
lookup
List all the fields and relationships for the statistical journal entry line object:
Lists information for journal entry lines for the statistical journal whose record number is 1819:
Parameters
Name
Required
Type
Description
object
Required
string
Use GLENTRY
filter
Optional
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>
Set the caseinsensitive element to true for a case-insensitive query <caseinsensitive>true</caseinsensitive>
In a multi-entity company, set the showprivate element to true to query data in private entities: <showprivate>true</showprivate>
Specify the returnformat for the response: xml (default), json, or csv <returnformat>json</returnformat>
pagesize
Optional
integer
Maximum number of matching objects to return in the response, between 1 and 2000 items (Default: 100)
offset
Optional
integer
Point at which to start indexing into records (Default: 0)
Query and List Statistical Journal Entry Lines (Legacy)
readByQuery
Parameters
Name
Required
Type
Description
object
Required
string
Use GLENTRY
fields
Optional
string
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)
Get Statistical Journal Entry Line
read
Parameters
Name
Required
Type
Description
object
Required
string
Use GLENTRY
keys
Required
string
Comma-separated list of stat journal entry 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.