Locations

Locations are typically a restaurant or other venue, but could also be a floor or subsection of a venue.

Location Attributes

NameDescriptionDetails
accountGuidUnique identifier for the managing account.
locationGuidUnique identifier for the location.
nameThe name of the location.
addressLine11st line of address.
addressLine22nd line of address.
countryCountry
countryCodeCountry code
statestate
cityCity
provinceProvince OR State
zipcodeMailing zipcode.
phoneNumberPhone Number
cacheKeyCRC32 bit checksum. The value for this key will get change if anything updated from location object.
primaryWaitlistPrimary waitlist information
primaryWaitlist.isDeletedDoes waitlist removed
primaryWaitlist.guidGuid of primary waitlist
primaryWaitlist.nameName of the waitlist
primaryWaitlist.numberNumber of waitlistexample. 1, 2 etc
primaryWaitlist.cacheKeyCache key of waitlistThis will get updated if anything update from waitlist.
primaryWaitlist.waitlistSettingConfiguration of waitlist
primaryWaitlist.waitlistSetting.maxCapacityMaximum party size for waitlist
primaryWaitlist.waitlistSetting.minPartySizeMinimum party size for waitlist
primaryWaitlist.waitlistSetting.isWaitlistOpenDoes waitlist open for bookingtrue: Waitlist is open for booking.
false: Waitlist is closed for booking.

/rest/v3/locations{?accountGuid}

Retrieve locations for all authorized accounts of a single account by passing in the accountGuid query parameter.

Parameters

NameDescriptionDetails
accountGuidThe unique identifier of the account managing the location.string, optional

Request

// Report Controller single location (GET https://connect.lrsus.com/rest/v3/locations)

$.ajax({
    url: "https://connect.lrsus.com/rest/v3/locations",
    type: "GET",
    headers: {
        "Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0MzU3NjkzNjQsInN1YiI6IjNJWFFIRVA0SDhWNUdJUjVMNDBLMVo5STkiLCJpc3MiOiJodHRwczovL2FwaS5zdG9ybXBhdGguY29tL3YxL2FwcGxpY2F0aW9ucy81c3VtdGdod3A2Vkw2cUdTbUN3VDJjIiwiaWF0IjoxNDM1NzY4MTY0fQ.xmtQRP19eiWhe4ci7QCQLwkCNwnMhnIoA73zTVvKwmA",
    },
})
.done(function(data, textStatus, jqXHR) {
    console.log("HTTP Request Succeeded: " + jqXHR.status);
    console.log(data);
})
.fail(function(jqXHR, textStatus, errorThrown) {
    console.log("HTTP Request Failed");
})
.always(function() {
    /* ... */
});
import java.io.IOException;
import org.apache.http.client.fluent.*;

public class SendRequest
{
  public static void main(String[] args) {
    sendRequest();
  }
  
  private static void sendRequest() {
    
    // Report Controller single location (GET )
    
    try {
      
      // Create request
      Content content = Request.Get("https://connect.lrsus.com/rest/v3/locations")
      
      // Add headers
      .addHeader("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0MzU3NjkzNjQsInN1YiI6IjNJWFFIRVA0SDhWNUdJUjVMNDBLMVo5STkiLCJpc3MiOiJodHRwczovL2FwaS5zdG9ybXBhdGguY29tL3YxL2FwcGxpY2F0aW9ucy81c3VtdGdod3A2Vkw2cUdTbUN3VDJjIiwiaWF0IjoxNDM1NzY4MTY0fQ.xmtQRP19eiWhe4ci7QCQLwkCNwnMhnIoA73zTVvKwmA")
      
      // Fetch request and return content
      .execute().returnContent();
      
      // Print content
      System.out.println(content);
    }
    catch (IOException e) { System.out.println(e); }
  }
}
// Report Controller single location (GET https://connect.lrsus.com/rest/v3/locations)

NSURL* URL = [NSURL URLWithString:@"https://connect.lrsus.com/rest/v3/locations"];
NSMutableURLRequest* request = [NSMutableURLRequest requestWithURL:URL];
request.HTTPMethod = @"GET";

// Headers

[request addValue:@"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0MzU3NjkzNjQsInN1YiI6IjNJWFFIRVA0SDhWNUdJUjVMNDBLMVo5STkiLCJpc3MiOiJodHRwczovL2FwaS5zdG9ybXBhdGguY29tL3YxL2FwcGxpY2F0aW9ucy81c3VtdGdod3A2Vkw2cUdTbUN3VDJjIiwiaWF0IjoxNDM1NzY4MTY0fQ.xmtQRP19eiWhe4ci7QCQLwkCNwnMhnIoA73zTVvKwmA" forHTTPHeaderField:@"Authorization"];

// Connection

NSURLConnection* connection = [NSURLConnection connectionWithRequest:request delegate:nil];
[connection start];
curl -X "GET" "https://connect.lrsus.com/rest/v3/locations" \
	-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0MzU3NjkzNjQsInN1YiI6IjNJWFFIRVA0SDhWNUdJUjVMNDBLMVo5STkiLCJpc3MiOiJodHRwczovL2FwaS5zdG9ybXBhdGguY29tL3YxL2FwcGxpY2F0aW9ucy81c3VtdGdod3A2Vkw2cUdTbUN3VDJjIiwiaWF0IjoxNDM1NzY4MTY0fQ.xmtQRP19eiWhe4ci7QCQLwkCNwnMhnIoA73zTVvKwmA"
# Install the Python Requests library:
# `pip install requests`

import requests

def send_request():
    # Report Controller single location (GET https://connect.lrsus.com/rest/v3/locations)

    try:
        r = requests.get(
            url="https://connect.lrsus.com/rest/v3/locations",
            headers = {
                "Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0MzU3NjkzNjQsInN1YiI6IjNJWFFIRVA0SDhWNUdJUjVMNDBLMVo5STkiLCJpc3MiOiJodHRwczovL2FwaS5zdG9ybXBhdGguY29tL3YxL2FwcGxpY2F0aW9ucy81c3VtdGdod3A2Vkw2cUdTbUN3VDJjIiwiaWF0IjoxNDM1NzY4MTY0fQ.xmtQRP19eiWhe4ci7QCQLwkCNwnMhnIoA73zTVvKwmA",
            },
        )
        print('Response HTTP Status Code   : {status_code}'.format(status_code=r.status_code))
        print('Response HTTP Response Body : {content}'.format(content=r.content))
    except requests.exceptions.RequestException as e:
        print('HTTP Request failed')

Response 200 (application/json)

{
          "status": 200,
          "count": "25",
          "offset" : 50,
          "limit" : 25,
          "first" : "https://connect.lrsus.com/rest/v3/locations?offset=0&limit=25",
          "previous" : "https://connect.lrsus.com/rest/v3/locations?offset=25&limit=25",
          "next" : "https://connect.lrsus.com/rest/v3/locations?offset=75&limit=25",
          "last" : "https://connect.lrsus.com/rest/v3/locations?offset=8745&limit=25",
          "items": [
            {
              "accountGuid": "777a5eb-59ea-4003-9c1c-77760879c88d",
              "locationGuid": "9e1da5eb-59ea-4003-9c1c-15160879c88d",
              "name": "Bob's Deli",
              "addressLine1": "5050 Beltline Rd.",
              "addressLine2": "5000 Frisco Rd.",
              "country": "United states",
              "countryCode" : "US",
              "city": "Addison",
              "province": "TX",
              "zipcode": "75254",
              "phoneNumber" : "888-999-9999",
              "cacheKey": "2452593609",
              "primaryWaitlist": {
                "isDeleted": false,
                "guid": "c2210066-20fb-47b0-ab19-c4013008646e",
                "number": 1,
                "name": "Waiting",
                "cacheKey": "3607024173",
                "waitlistSetting": {
                    "maxCapacity": 10,
                    "minPartySize": 1,
                    "isWaitlistOpen": true
                }
            	}
            },
            ...
            {
              "accountGuid": "777a5eb-59ea-4003-9c1c-77760879c88d",
              "locationGuid": "9e1da5eb-59ea-4003-9c1c-15160879c88d",
              "name": "Bob's Deli Frisco",
              "addressLine1": "5555 Frisco Rd.",
              "addressLine2": "5000 Frisco Rd.",
						  "country": "United states",
              "countryCode" : "US",
              "city": "Frisco",
              "province": "TX",
              "zipcode": "75254",
              "phoneNumber" : "888-999-9999",
              "cacheKey": "2630976542",
              "primaryWaitlist": {
                "isDeleted": false,
                "guid": "c2210066-20fb-47b0-ab19-c401233008646e",
                "number": 1,
                "name": "Waiting",
                "cacheKey": "36070241273",
                "waitlistSetting": {
                    "maxCapacity": 10,
                    "minPartySize": 1,
                    "isWaitlistOpen": true
                }
            	}
            }
          ]
      }

/rest/v3/locations/{locationGuid}

Request

// Report Controller locations (GET https://connect.lrsus.com/rest/v3/locations/e35bdd62-c807-4e89-9cb1-3178075a3b06)

$.ajax({
    url: "https://connect.lrsus.com/rest/v3/locations/e35bdd62-c807-4e89-9cb1-3178075a3b06",
    type: "GET",
    headers: {
        "Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0MzU3NjkzNjQsInN1YiI6IjNJWFFIRVA0SDhWNUdJUjVMNDBLMVo5STkiLCJpc3MiOiJodHRwczovL2FwaS5zdG9ybXBhdGguY29tL3YxL2FwcGxpY2F0aW9ucy81c3VtdGdod3A2Vkw2cUdTbUN3VDJjIiwiaWF0IjoxNDM1NzY4MTY0fQ.xmtQRP19eiWhe4ci7QCQLwkCNwnMhnIoA73zTVvKwmA",
    },
})
.done(function(data, textStatus, jqXHR) {
    console.log("HTTP Request Succeeded: " + jqXHR.status);
    console.log(data);
})
.fail(function(jqXHR, textStatus, errorThrown) {
    console.log("HTTP Request Failed");
})
.always(function() {
    /* ... */
});
import java.io.IOException;
import org.apache.http.client.fluent.*;

public class SendRequest
{
  public static void main(String[] args) {
    sendRequest();
  }
  
  private static void sendRequest() {
    
    // Report Controller locations (GET )
    
    try {
      
      // Create request
      Content content = Request.Get("https://connect.lrsus.com/rest/v3/locations/e35bdd62-c807-4e89-9cb1-3178075a3b06")
      
      // Add headers
      .addHeader("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0MzU3NjkzNjQsInN1YiI6IjNJWFFIRVA0SDhWNUdJUjVMNDBLMVo5STkiLCJpc3MiOiJodHRwczovL2FwaS5zdG9ybXBhdGguY29tL3YxL2FwcGxpY2F0aW9ucy81c3VtdGdod3A2Vkw2cUdTbUN3VDJjIiwiaWF0IjoxNDM1NzY4MTY0fQ.xmtQRP19eiWhe4ci7QCQLwkCNwnMhnIoA73zTVvKwmA")
      
      // Fetch request and return content
      .execute().returnContent();
      
      // Print content
      System.out.println(content);
    }
    catch (IOException e) { System.out.println(e); }
  }
}
// Report Controller locations (GET https://connect.lrsus.com/rest/v3/locations/e35bdd62-c807-4e89-9cb1-3178075a3b06)

NSURL* URL = [NSURL URLWithString:@"https://connect.lrsus.com/rest/v3/locations/e35bdd62-c807-4e89-9cb1-3178075a3b06"];
NSMutableURLRequest* request = [NSMutableURLRequest requestWithURL:URL];
request.HTTPMethod = @"GET";

// Headers

[request addValue:@"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0MzU3NjkzNjQsInN1YiI6IjNJWFFIRVA0SDhWNUdJUjVMNDBLMVo5STkiLCJpc3MiOiJodHRwczovL2FwaS5zdG9ybXBhdGguY29tL3YxL2FwcGxpY2F0aW9ucy81c3VtdGdod3A2Vkw2cUdTbUN3VDJjIiwiaWF0IjoxNDM1NzY4MTY0fQ.xmtQRP19eiWhe4ci7QCQLwkCNwnMhnIoA73zTVvKwmA" forHTTPHeaderField:@"Authorization"];

// Connection

NSURLConnection* connection = [NSURLConnection connectionWithRequest:request delegate:nil];
[connection start];
curl -X "GET" "https://connect.lrsus.com/rest/v3/locations/e35bdd62-c807-4e89-9cb1-3178075a3b06" \
	-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0MzU3NjkzNjQsInN1YiI6IjNJWFFIRVA0SDhWNUdJUjVMNDBLMVo5STkiLCJpc3MiOiJodHRwczovL2FwaS5zdG9ybXBhdGguY29tL3YxL2FwcGxpY2F0aW9ucy81c3VtdGdod3A2Vkw2cUdTbUN3VDJjIiwiaWF0IjoxNDM1NzY4MTY0fQ.xmtQRP19eiWhe4ci7QCQLwkCNwnMhnIoA73zTVvKwmA"
# Install the Python Requests library:
# `pip install requests`

import requests

def send_request():
    # Report Controller locations (GET https://connect.lrsus.com/rest/v3/locations/e35bdd62-c807-4e89-9cb1-3178075a3b06)

    try:
        r = requests.get(
            url="https://connect.lrsus.com/rest/v3/locations/e35bdd62-c807-4e89-9cb1-3178075a3b06",
            headers = {
                "Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0MzU3NjkzNjQsInN1YiI6IjNJWFFIRVA0SDhWNUdJUjVMNDBLMVo5STkiLCJpc3MiOiJodHRwczovL2FwaS5zdG9ybXBhdGguY29tL3YxL2FwcGxpY2F0aW9ucy81c3VtdGdod3A2Vkw2cUdTbUN3VDJjIiwiaWF0IjoxNDM1NzY4MTY0fQ.xmtQRP19eiWhe4ci7QCQLwkCNwnMhnIoA73zTVvKwmA",
            },
        )
        print('Response HTTP Status Code   : {status_code}'.format(status_code=r.status_code))
        print('Response HTTP Response Body : {content}'.format(content=r.content))
    except requests.exceptions.RequestException as e:
        print('HTTP Request failed')

Parameters

NameDescriptionDetails
locationGuidThe unique identifier of the location to retrieve.string, required

Response 200 (application/json)

{
          "status": 200,
          "location" :  {
              "accountGuid": "777a5eb-59ea-4003-9c1c-77760879c88d",
              "locationGuid": "9e1da5eb-59ea-4003-9c1c-15160879c88d",
              "name": "Jason's Deli Frisco",
              "addressLine1": "5000 Frisco Rd.",
              "addressLine2": "5000 Frisco Rd.",
						  "country": "United states",
	            "countryCode": "US",
              "city": "Frisco",
              "province": "TX",
              "zipcode": "75254",
              "phoneNumber" : "888-999-9999",
              "cacheKey": "2630976542",
            	"primaryWaitlist": {
                "isDeleted": false,
                "guid": "c2210066-20fb22-47b0-ab19-c4013008646e",
                "number": 1,
                "name": "Waiting",
                "cacheKey": "360702412273",
                "waitlistSetting": {
                    "maxCapacity": 10,
                    "minPartySize": 1,
                    "isWaitlistOpen": true
                }
            	}
           }
}