Report Categories

GET /locations/:locationId/report-categories

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

Retrieves all report categories for the supplied location.

Response Payload Structure

The response body for a "200 OK" response will contain a JSON array of report category objects. Each object in the array will be structured as follows:

Field NameField TypeField DescriptionOrg Level Attribute*
idstringThe unique ID for the report category.Yes
locationIdstringThe unique ID for the location.
namestringThe name of the report category.Yes
parentIdstringThe unique ID of the parent report category (report categories can be organized in a hierarchical fashion).Yes
deletedbooleanTrue if the report category has been marked as deleted.Yes

📘

*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": "abc123",
        "locationId": "LocationX",
        "name": "Food",
        "parentId": "abc1234",
        "deleted": false
    }
]
Headers
x-api-keyYour API Key
Path Variables
locationIdThe unique ID for the location

GET /locations/:locationId/report-categories/:reportCategoryId

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

Retrieves a single report category for the supplied location.

Response Payload Structure

The response body for a "200 OK" response will contain a single JSON report category object. See the parent route's documentation for more details.

Headers
x-api-keyYour API Key
Path Variables
locationIdThe unique ID for the location
reportCategoryIdThe unique ID for the report category