You can define labor class, shift, and union objects that can be applied to timesheets and used to determine billing rates and markups for employees.
Labor Classes
Get labor Class Object Definition
lookup
List all the fields and relationships for the labor class object:
Parameters
Name
Required
Type
Description
object
Required
string
Use LABORCLASS
Query and List Labor Classes
query
List the record number, labor class ID, and name for each labor class:
Parameters
Name
Required
Type
Description
object
Required
string
Use LABORCLASS
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 Labor Classes (Legacy)
readByQuery
Parameters
Name
Required
Type
Description
object
Required
string
Use LABORCLASS
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 a Labor Class
read
Parameters
Name
Required
Type
Description
object
Required
string
Use LABORCLASS
keys
Required
string
Comma-separated list of RECORDNO of the labor class 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.
returnFormat
Optional
string
Data format for the response body:
xml (default)
json
csv
Get a Labor Class by ID
readByName
Parameters
Name
Required
Type
Description
object
Required
string
Use LABORCLASS
keys
Required
string
Comma-separated list of LABORCLASSID of the labor class 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.
returnFormat
Optional
string
Data format for the response body:
xml (default)
json
csv
Create Labor Class
create
Parameters
Name
Required
Type
Description
LABORCLASS
Required
object
Object type to create.
LABORCLASS
Name
Required
Type
Description
LABORCLASSID
Required
string
User-defined unique ID of the labor class.
NAME
Required
string
Name of the labor class.
DESCRIPTION
Optional
string
Description of the labor class.
STATUS
Optional
enum
Whether this labor class is active and can be assigned to employees.
active (default)
inactive
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 #~#.
Update a Labor Class
update
Parameters
Name
Required
Type
Description
LABORCLASS
Required
object
Object type to update.
LABORCLASS
Name
Required
Type
Description
RECORDNO
Required
string
RECORDNO of the labor class to update. Required if not including LABORCLASSID.
LABORCLASSID
Optional
string
LABORCLASSID of the labor class to update. Required if not including RECORDNO.
NAME
Optional
string
Name of the labor class.
DESCRIPTION
Optional
string
Description of the labor class.
STATUS
Optional
enum
Whether this labor class is active and can be assigned to employees.
active (default)
inactive
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 #~#.
Delete Labor Class
delete
Parameters
Name
Required
Type
Description
object
Required
string
Use LABORCLASS
keys
Required
string
Comma-separated list of RECORDNO of the labor class to delete.
Labor Shifts
Get labor Shift Object Definition
lookup
List all the fields and relationships for the labor shift object:
Parameters
Name
Required
Type
Description
object
Required
string
Use LABORSHIFT
Query and List Labor Shifts
query
List the record number, name, and labor shift ID for each labor shift:
Parameters
Name
Required
Type
Description
object
Required
string
Use LABORSHIFT
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 Labor Shifts (Legacy)
readByQuery
Parameters
Name
Required
Type
Description
object
Required
string
Use LABORSHIFT
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 a Labor Shift
read
Parameters
Name
Required
Type
Description
object
Required
string
Use LABORSHIFT
keys
Required
string
Comma-separated list of RECORDNO of the labor shift 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.
returnFormat
Optional
string
Data format for the response body:
xml (default)
json
csv
Get a Labor Shift by ID
readByName
Parameters
Name
Required
Type
Description
object
Required
string
Use LABORSHIFT
keys
Required
string
Comma-separated list of LABORSHIFTID of the labor shift 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.
returnFormat
Optional
string
Data format for the response body:
xml (default)
json
csv
Create Labor Shift
create
Parameters
Name
Required
Type
Description
LABORSHIFT
Required
object
Object type to create.
LABORSHIFT
Name
Required
Type
Description
LABORSHIFTID
Required
string
User-defined unique ID of the labor shift.
NAME
Required
string
Name of the labor shift.
DESCRIPTION
Optional
string
Description of the labor shift.
STATUS
Optional
enum
Whether this labor shift is active and can be assigned to employees.
active (default)
inactive
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 #~#.
Update a Labor Shift
update
Parameters
Name
Required
Type
Description
LABORSHIFT
Required
object
Object type to update.
LABORSHIFT
Name
Required
Type
Description
RECORDNO
Required
string
RECORDNO of the labor shift to update. Required if not including LABORSHIFTID.
LABORSHIFTID
Optional
string
LABORSHIFTID of the labor shift to update. Required if not including RECORDNO.
NAME
Optional
string
Name of the labor shift.
DESCRIPTION
Optional
string
Description of the labor shift.
STATUS
Optional
enum
Whether this labor shift is active and can be assigned to employees.
active (default)
inactive
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 #~#.
Delete Labor Shift
delete
Parameters
Name
Required
Type
Description
object
Required
string
Use LABORSHIFT
keys
Required
string
Comma-separated list of RECORDNO of the labor shift to delete
Labor Unions
Get labor Union Object Definition
lookup
List all the fields and relationships for the labor union object:
Parameters
Name
Required
Type
Description
object
Required
string
Use LABORUNION
Query and List Labor Unions
query
List the record number, name, and labor union ID for each labor union:
Parameters
Name
Required
Type
Description
object
Required
string
Use LABORUNION
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 Labor Unions (Legacy)
readByQuery
Parameters
Name
Required
Type
Description
object
Required
string
Use LABORUNION
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 a Labor Union
read
Parameters
Name
Required
Type
Description
object
Required
string
Use LABORUNION
keys
Required
string
Comma-separated list of RECORDNO of the labor union 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.
returnFormat
Optional
string
Data format for the response body:
xml (default)
json
csv
Get a Labor Union by ID
readByName
Parameters
Name
Required
Type
Description
object
Required
string
Use LABORUNION
keys
Required
string
Comma-separated list of LABORUNIONID of the labor union 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.
returnFormat
Optional
string
Data format for the response body:
xml (default)
json
csv
Create Labor Union
create
Parameters
Name
Required
Type
Description
LABORUNION
Required
object
Object type to create.
LABORUNION
Name
Required
Type
Description
LABORUNIONID
Required
string
User-defined unique ID of the labor union.
NAME
Required
string
Name of the labor union.
DESCRIPTION
Optional
string
Description of the labor union.
STATUS
Optional
enum
Whether this labor union is active and can be assigned to employees.
active (default)
inactive
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 #~#.
Update a Labor Union
update
Parameters
Name
Required
Type
Description
LABORUNION
Required
object
Object type to update.
LABORUNION
Name
Required
Type
Description
RECORDNO
Required
string
RECORDNO of the labor union to update. Required if not including LABORUNIONID.
LABORUNIONID
Optional
string
LABORUNIONID of the labor union to update. Required if not including RECORDNO.
NAME
Optional
string
Name of the labor union.
DESCRIPTION
Optional
string
Description of the labor unio .
STATUS
Optional
enum
Whether this labor union is active and can be assigned to employees.
active (default)
inactive
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 #~#.
Delete Labor Union
delete
Parameters
Name
Required
Type
Description
object
Required
string
Use LABORUNION.
keys
Required
string
Comma-separated list of RECORDNO of the labor union to delete.