Location is a dimension that can be defined by the company and set on transactions to expand report functionality and insight.
Get Location Object Definition
lookup
List all the fields and relationships for the location object:
Parameters
Name
Required
Type
Description
object
Required
string
Use LOCATION
Query and List Locations
readByQuery
Parameters
Name
Required
Type
Description
object
Required
string
Use LOCATION
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
STATUS
Optional
string
Status. Use T for Active and F for Inactive.
Get Location
read
Parameters
Name
Required
Type
Description
object
Required
string
Use LOCATION
keys
Required
string
Comma-separated list of location 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.
returnFormat
Optional
string
Data format for the response body:
xml (default)
json
csv
Get Location by ID
readByName
Parameters
Name
Required
Type
Description
object
Required
string
Use LOCATION
keys
Required
string
Comma-separated list of location LOCATIONID 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 Location
create
Parameters
Name
Required
Type
Description
LOCATION
Required
object
Object to create
LOCATION
Name
Required
Type
Description
LOCATIONID
Required
string
Location ID to create
NAME
Required
string
Location name
PARENTID
Optional
string
Parent location ID
SUPERVISORID
Optional
string
Manager employee ID
CONTACTINFO
Optional
object
Primary contact info
SHIPTO
Optional
object
Ship to contact info
STARTDATE
Optional
string
Start date in format mm/dd/yyyy
ENDDATE
Optional
string
End date in format mm/dd/yyyy
CUSTTITLE
Optional
string
Location title for reporting
STATUS
Optional
string
Location status. Use active for Active otherwise use inactive for Inactive (Default: active)
CONTACTINFO
Name
Required
Type
Description
CONTACTNAME
Required
string
Contact name
SHIPTO
Name
Required
Type
Description
CONTACTNAME
Required
string
Contact name
Create Location (Legacy)
create_location
Parameters
Name
Required
Type
Description
locationid
Required
string
Location ID to create
name
Required
string
Location name
parentid
Optional
string
Parent location ID
supervisorid
Optional
string
Manager employee ID
startdate
Optional
object
Start date
enddate
Optional
object
End date
status
Optional
string
Location status. Use active for Active otherwise use inactive for Inactive. (Default: active)
primary
Optional
object
Primary contact info
shipto
Optional
object
Ship to contact info
customfields
Optional
array of customfield
Custom fields
custtitle
Optional
string
Location title for reporting
startdate enddate
Name
Required
Type
Description
year
Required
string
Year yyyy
month
Required
string
Month mm
day
Required
string
Day dd
primary shipto
Name
Required
Type
Description
contactname
Required
string
Contact name of an existing contact
customfield
Name
Required
Type
Description
customfieldname
Optional
string
Custom field ID
customfieldvalue
Optional
varies
Custom field value. For a multi-pick-list custom field, implode multiple field values with #~#.
Update Location
update
Parameters
Name
Required
Type
Description
LOCATION
Required
object
Object to update
LOCATION
Name
Required
Type
Description
RECORDNO
Optional
integer
Record number of location to update. Required if not using LOCATIONID.
LOCATIONID
Optional
string
Location ID. Required if not using RECORDNO.
NAME
Required
string
Location name
PARENTID
Optional
string
Parent location ID
SUPERVISORID
Optional
string
Manager employee ID
CONTACTINFO
Optional
object
Primary contact info
SHIPTO
Optional
object
Ship to contact info
STARTDATE
Optional
string
Start date in format mm/dd/yyyy
ENDDATE
Optional
string
End date in format mm/dd/yyyy
CUSTTITLE
Optional
string
Location title for reporting
STATUS
Optional
string
Location status. Use active for Active otherwise use inactive for Inactive. (Default: active)
CONTACTINFO
Name
Required
Type
Description
CONTACTNAME
Required
string
Contact name
SHIPTO
Name
Required
Type
Description
CONTACTNAME
Required
string
Contact name
Update Location (Legacy)
update_location
Parameters
Name
Required
Type
Description
locationid
Required
string
Location ID to update
name
Optional
string
Location name
parentid
Optional
string
Parent location ID
supervisorid
Optional
string
Manager employee ID
startdate
Optional
object
Start date
enddate
Optional
object
End date
status
Optional
string
Location status. Use active for Active otherwise use inactive for Inactive.
primary
Optional
object
Primary contact info
shipto
Optional
object
Ship to contact info
customfields
Optional
array of customfield
Custom fields
custtitle
Optional
string
Location title for reporting
enddate startdate
Name
Required
Type
Description
year
Required
string
Year yyyy
month
Required
string
Month mm
day
Required
string
Day dd
primary shipto
Name
Required
Type
Description
contactname
Required
string
Contact name of an existing contact
customfield
Name
Required
Type
Description
customfieldname
Optional
string
Custom field ID
customfieldvalue
Optional
varies
Custom field value. For a multi-pick-list custom field, implode multiple field values with #~#.
Delete Location
delete
Parameters
Name
Required
Type
Description
object
Required
string
Use LOCATION
keys
Required
string
Comma-separated list of location RECORDNO to delete