Location is a dimension that is used to represent the geographic locations of offices or facilities, or to represent divisions in a company. Once you have defined some locations, you can set locations on transactions, and that information can be used to provide new insights in reports.
You can create a hierarchy of locations to reflect how locations are organized within your company.
Returns up to 100 locations from the collection with a key, ID, and link for each location. This operation is mostly for use in testing; use the query service to find locations that meet certain criteria and specify the properties that are returned.
Subscription | Company |
---|---|
User type | Business, Employee, Payment Approver |
Permissions | List, View Locations |
OK
Bad Request
{- "ia::result": [
- {
- "key": "1",
- "id": "US-PNW",
- "href": "/objects/company-config/location/1"
}, - {
- "key": "96",
- "id": "US-EAST",
- "href": "/objects/company-config/location/96"
}, - {
- "key": "21",
- "id": "US-SOUTH",
- "href": "/objects/company-config/location/21"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Creates a new location. You can think of this as adding a new value to the dimension that you can use to tag transactions for reporting.
Subscription | Company |
---|---|
User type | Business user with admin privileges |
Permissions | Add Location |
Create location object
id required | string Unique identifier for the location. Example: "1-Lyon" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name required | string Name of the location. Example: "Lyon-France" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
status | string Status of the dimension object:
Example: "active" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
taxId | string State tax ID or VAT registration number. Example: "US4321112" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
startDate | string <date> Start date of operation at this location. Example: "2021-01-01" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
endDate | string <date> End date of operation at this location. Example: "2022-04-01" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object The list of contacts for the location. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
locationReportingTitle | string Location information displayed in reports, in addition to the location name. For example, a location title might include the address and manager name. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Parent location, for location hierarchies. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object The employee that manages the location. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Created
Bad Request
{- "id": "loc22",
- "name": "22-India",
- "description": "All India offices",
- "status": "active"
}
{- "ia::result": {
- "key": "234",
- "id": "22-India",
- "href": "/objects/company-config/location/234"
}, - "ia::meta": {
- "totalCount": 1
}
}
Returns detailed information for a specified location.
Subscription | Company |
---|---|
User type | Business, Employee, Payment Approver |
Permissions | List, View Locations |
key required | string System-assigned key for the location. Example: 92 |
OK
Bad Request
{- "ia::result": {
- "id": "WEN",
- "key": "6",
- "name": "Wenatchee",
- "parent": {
- "id": "PNW--Pacific Northwest",
- "key": "5",
- "href": "/objects/company-config/location/5"
}, - "manager": {
- "name": "miller, dan",
- "id": "EE-0000123--miller, dan",
- "key": "2",
- "href": "/objects/company-config/employee/2"
}, - "contacts": {
- "primary": {
- "mailingAddress": {
- "addressLine1": "900 Cherry Avenue, #300",
- "addressLine2": null,
- "addressLine3": null,
- "city": "Seattle",
- "country": "United States",
- "postCode": "98066",
- "state": "WA"
}, - "URL1": null,
- "URL2": null,
- "companyName": "InsideOut Technologies, Inc",
- "email1": null,
- "email2": null,
- "fax": null,
- "firstName": null,
- "id": "InsideOut Technologies, Inc",
- "lastName": null,
- "middleName": null,
- "mobile": null,
- "pager": null,
- "phone1": null,
- "phone2": null,
- "prefix": null,
- "printAs": "InsideOut Technologies, Inc",
- "key": "984",
- "href": "/objects/company-config/contact/984"
}, - "shipTo": {
- "mailingAddress": {
- "addressLine1": null,
- "addressLine2": null,
- "addressLine3": null,
- "city": null,
- "country": null,
- "postCode": null,
- "state": null
}, - "URL1": null,
- "URL2": null,
- "companyName": null,
- "email1": null,
- "email2": null,
- "fax": null,
- "firstName": null,
- "id": null,
- "lastName": null,
- "middleName": null,
- "mobile": null,
- "pager": null,
- "phone1": null,
- "phone2": null,
- "prefix": null,
- "printAs": null,
- "key": null
}
}, - "startDate": null,
- "endDate": null,
- "status": "active",
- "audit": {
- "createdDateTime": "2022-02-11T09:07:07Z",
- "modifiedDateTime": "2022-02-11T09:07:07Z",
- "createdBy": "110",
- "modifiedBy": "110"
}, - "locationReportingTitle": "Seattle Sales Office",
- "taxId": null,
- "href": "/objects/company-config/location/102"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing location by setting field values. Any fields not provided remain unchanged.
Subscription | Company |
---|---|
User type | Business user with admin privileges |
Permissions | Edit Locations |
key required | string System-assigned key for the location. Example: 92 |
name | string Name of the location. Example: "Lyon-France" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
status | string Status of the dimension object:
Example: "active" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
taxId | string State tax ID or VAT registration number. Example: "US4321112" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
startDate | string <date> Start date of operation at this location. Example: "2021-01-01" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
endDate | string <date> End date of operation at this location. Example: "2022-04-01" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object The list of contacts for the location. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
locationReportingTitle | string Location information displayed in reports, in addition to the location name. For example, a location title might include the address and manager name. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Parent location, for location hierarchies. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object The employee that manages the location. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
OK
Bad Request
{- "manager": {
- "key": "12"
}, - "contacts": {
- "primary": {
- "id": "john.doe"
}, - "shipTo": {
- "id": "jane.daw"
}
}
}
{- "ia::result": {
- "key": "12",
- "id": "SW",
- "href": "/objects/company-config/location/12"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Deletes a location. You can delete a location if it is not being used or referenced. Deleted locations cannot be recovered.
Subscription | Company |
---|---|
User type | Business user with admin privileges |
Permissions | Delete Locations |
key required | string System-assigned key for the location. Example: 92 |
No Content
Bad Request
{- "ia::result": {
- "ia::error": {
- "code": "invalidRequest",
- "message": "A POST request requires a payload",
- "errorId": "REST-1028",
- "additionalInfo": {
- "messageId": "IA.REQUEST_REQUIRES_A_PAYLOAD",
- "placeholders": {
- "OPERATION": "POST"
}, - "propertySet": { }
}, - "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
}
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 0,
- "totalError": 1
}
}
Queries an object for filtered data.
object | string Object type to query, in the form Example: "company-config/location" | ||||||||
fields | Array of strings List of fields to include in the response. Can be any combination of these:
Example: ["key","id","max:vendor.creditLimit"] | ||||||||
Array of equal (object) or not equal (object) or less than (object) or (less than or equal (object)) or greater than (object) or (greater than or equal (object)) or in (object) or not in (object) or between (object) or not between (object) or contains (object) or does not contain (object) or starts with (object) or does not start with (object) or ends with (object) or does not end with (object) Filter conditions to select the objects to return based on their field values. You use operators and conditions to build your filter, such as Example: [{"$eq":{"status":"active"}},{"$gt":{"totalDue":"1000"}},{"$contains":{"name":"Acme"}}] | |||||||||
Array Any of: Field value must be equal to this specified value. For date fields, you can use these macro values that are relative to the current date or the
These are most useful for queries that you want to save and use repeatedly, such as for views or reports. Just change the For example,
| |||||||||
filterExpression | string Default: "and" Logical operators to apply when there are multiple filter conditions. The conditions in the Shortcuts:
Example: "(1 and 2) or 3" | ||||||||
| |||||||||
Array of objects Set the order of the results by specifying field names to sort by and whether they should be in ascending or descending order. Example: [{"totalDue":"asc"},{"lastPaymentMadeDate":"desc"}] | |||||||||
Array
| |||||||||
start | integer First record of the result set to include in the response. Example: 1 | ||||||||
size | integer Number of records to include in the response. Example: 100 |
OK
Bad Request
{- "object": "company-config/location",
- "filters": [
- {
- "$eq": {
- "status": "active"
}
}, - {
- "$eq": {
- "parent.id": "California"
}
}
], - "filterExpression": "1 and 2",
- "fields": [
- "id",
- "name",
- "href"
], - "orderBy": [
- {
- "id": "asc"
}
]
}
{- "ia::result": [
- {
- "key": "6",
- "id": "SJ",
- "name": "San Jose",
- "status": "active",
- "href": "/objects/company-config/location/6"
}, - {
- "key": "19",
- "id": "LA",
- "name": "Los Angeles",
- "status": "active",
- "href": "/objects/company-config/location/19"
}
], - "ia::meta": {
- "totalCount": 2,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}