Order Types

GET /locations/:locationId/order-types

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

Retrieves all order types for the supplied location.

Response Payload Structure

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

Field NameField TypeField DescriptionOrg Level Attribute*
idstringThe unique ID for the order type.Yes
locationIdstringThe unique ID for the location.
namestringThe name of the order type.Yes
deletedbooleanTrue if the order type has been marked as deleted.Yes
enabledbooleanTrue if the order type is enabled at the location.
wtmIdint64an integer that identifies this order type uniquely within an organizationYes

📘

  • 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": "Dine In",
        "deleted": false,
        "enabled": true
      	"wtmId": 6543
    }
]
Headers
x-api-keyYour API Key
Path Variables
locationIdThe unique ID for the location

GET /locations/:locationId/order-types/:orderTypeId

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

Retrieves a single order type for the supplied location.

Response Payload Structure

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

Headers
x-api-keyYour API Key
Path Variables
locationIdThe unique ID for the location
orderTypeIdThe unique ID for the order type