Get location information

post

/bi/v1/{orgIdentifier}/getLocationDimensions

Gets the location information for all or a specified location.

Request

Path Parameters
Body ()
The request body defines the details of the API request.
Root Schema : locDimRequestPayload
Type: object
Request payload for location dimensions
Show Source
Back to Top

Response

Supported Media Types

200 Response

OK
Body ()
Root Schema : locationDimensions
Type: object
Show Source
Nested Schema : locations
Type: array
An array of Location Dimensions
Show Source
Nested Schema : location
Type: object
The response body contains information about a specified location.
Show Source
  • Title: Active
    Flag indicating if this location is active or not
  • Title: Currency
    Maximum Length: 3
    Abbreviation of the currency configured at the location. This attribute will not be returned in the response if value is null
  • Title: Location Reference
    Maximum Length: 99
    The location reference, this may be a store number or name depending on the organization
  • Title: Name
    Maximum Length: 99
    Name of the location
  • Title: Open Date
    The date this location was opened
  • Title: Source Name
    Maximum Length: 99
    The name of the POS system associated with this location
  • Title: Source Version
    Maximum Length: 99
    The POS version associated with this location
  • Title: Time Zone
    Maximum Length: 99
    Time zone configured at the location
  • Workstations
    Title: Workstations
    An array of workstations. This attribute will not be returned in the response if there are no workstations associated
Nested Schema : Workstations
Type: array
Title: Workstations
An array of workstations. This attribute will not be returned in the response if there are no workstations associated
Show Source
Nested Schema : workStation
Type: object
The response body contains information about a workstation for the specified location.
Show Source
  • Title: Workstation Name
    Maximum Length: 99
    Workstation Name. This attribute will not be returned in the response if value is null
  • Title: Workstation Number
    Maximum Length: 16
    Workstation number

400 Response

Bad Request
Body ()
Root Schema : exceptionDetailType
Type: object
Error details
Show Source

401 Response

Unauthorized
Body ()
Root Schema : exceptionDetailType
Type: object
Error details
Show Source

403 Response

Service Unavailable
Body ()
Root Schema : exceptionDetailType
Type: object
Error details
Show Source

404 Response

Resource Not Found
Body ()
Root Schema : exceptionDetailType
Type: object
Error details
Show Source

Default Response

Unexpected Error
Body ()
Root Schema : exceptionDetailType
Type: object
Error details
Show Source
Back to Top

Examples

The following example shows how to get the location dimensions for a specified location by submitting a POST request on the REST resource using cURL. For more information, see Use cURL

curl -i -X POST -H "Authorization: Bearer 
  
   " -H "Content-Type:application/json" -d {"locRef":"1234"} https://baseurl/bi/v1/orgidentifier/getLocationDimensions 
  

Example of Response Header

The following shows an example of the response header.

HTTP/1.1 200 OK  Date: Tue, 20 Oct 2020 21:24:33 GMT  Transfer-Encoding: chunked  Content-Type: application/json

Example of Response Body

The following example shows the contents of the response body in JSON format:

{
 "locations":[{
  "locRef": "1234",
  "name": "McLean VA",
  "openDt": "2010-07-20",
  "active": true,
  "srcName": "Simphony",
  "srcVer": "18.2",
  "tz": "America/Denver",
  "curr": "USD",
  "workstations":[{
   "wsNum":1,
   "wsName": "register 1"
  }]
 }]
}
Back to Top