GET /locations/:locationId

https://restaurantapi-qa.spoton.com/posexport/v1/locations/:locationId
curl --location --request GET 'https://restaurantapi-qa.spoton.com/posexport/v1/locations/' \
--header 'x-api-key;'

Retrieves basic information for the supplied location.

Response Payload Structure

The response body for a "200 OK" response will contain a single location object structured as follows:

Field NameField TypeField DescriptionOrg Level Attribute*
idstringThe unique ID for the location.
organizationidstringThe unique ID for the organization that the location belongs to.Yes
namestringThe name of the location.
deletedbooleanTrue if the location has been marked as deleted.
fiscalendofdaytimeint64
spotonmerchantidstring

📘

  • Note that the values of fields marked as "Org Level Attribute" are shared amongst all locations that reside in the same POS organization.

Example Response

{
    "id": "LocationXXXX",
    "organizationId": "9eir75uthr746rhnjk234dg50",
    "name": "Smoke's Burgers",
    "deleted": false,
    "fiscalendofdaytime": 10800000,
    "spotonmerchantid": "2jf74gse87s4g365hjghejdi6"
}
Headers
x-api-keyYour API Key
Path Variables
LocationIDThe unique ID for the location