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.
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.
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 Default: "active" 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. Example: "Seattle Sales Office" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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.
key required | string System-assigned key for a 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": "Suite 1400",
- "addressLine3": "East industrial area",
- "city": "Seattle",
- "country": "United States",
- "postCode": "98066",
- "state": "WA"
}, - "companyName": "InsideOut Technologies, Inc",
- "fax": "14085555309",
- "firstName": "John",
- "id": "InsideOut Technologies, Inc",
- "lastName": "Smith",
- "middleName": "Archibald",
- "mobile": "14085554420",
- "pager": "14085559987",
- "phone1": "14085551212",
- "phone2": "14085559876",
- "prefix": "Mr",
- "printAs": "InsideOut Technologies, Inc",
- "key": "984",
- "href": "/objects/company-config/contact/984"
}, - "shipTo": {
- "mailingAddress": {
- "addressLine1": "Rose Avenue",
- "addressLine2": "Suite 1405",
- "addressLine3": "Western industrial area",
- "city": "Seattle",
- "country": "United States",
- "postCode": "98066",
- "state": "WA"
}, - "companyName": "AlcoSoft Inc",
- "fax": "14085555309",
- "firstName": "John",
- "id": "AlcoSoft Inc",
- "lastName": "Smith",
- "middleName": "Archibald",
- "mobile": "14085554420",
- "pager": "14085559987",
- "phone1": "14085551212",
- "phone2": "14085559876",
- "prefix": "Mr",
- "printAs": "AlcoSoft Inc",
- "key": "985"
}
}, - "startDate": "2021-01-01",
- "endDate": "2021-04-01",
- "status": "active",
- "audit": {
- "createdDateTime": "2022-02-11T09:07:07Z",
- "modifiedDateTime": "2022-02-11T09:07:07Z",
- "createdBy": "110",
- "modifiedBy": "110",
- "createdByUser": {
- "key": "110",
- "id": "Admin",
- "href": "/objects/company-config/user/110"
}, - "modifiedByUser": {
- "key": "110",
- "id": "Admin",
- "href": "/objects/company-config/user/110"
}
}, - "locationReportingTitle": "Seattle Sales Office",
- "taxId": "US4321112",
- "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.
key required | string System-assigned key for a location. Example: 92 |
name | string Name of the location. Example: "Lyon-France" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
status | string Default: "active" 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. Example: "Seattle Sales Office" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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.
key required | string System-assigned key for a 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
}
}