GET /locations/:locationId/taxes

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

Retrieves all taxes for the supplied location.

Response Payload Structure

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

Field NameField TypeField DescriptionOrg Level Attribute*
idstringThe unique ID for the tax.Yes
locationIdstringThe unique ID for the location.
namestringThe name of the tax.Yes
deletedbooleanTrue if the tax has been marked as deleted.Yes
defaultRatePercentagestringThe default rate for the tax at the location. The value is expressed as a decimal percentage string (e.g., "6.5" represents a tax rate of 6.5%).
rateOverrides[]RATEOVERRIDEAn array of tax rate overrides based on order type.

RATEOVERRIDE

Field NameField TypeField DescriptionOrg Level Attribute*
orderTypeIdstringThe unique ID for the order type.Yes
percentagestringThe overrided tax rate for the order type at the location. The value is expressed as a decimal percentage string (e.g., "6.5" represents a tax rate of 6.5%).

📘

*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": "5rym5kmjx3ct3de1wheuezzosy",
        "locationId": "LocationX",
        "name": "State MI",
        "deleted": false,
        "defaultRatePercentage": "6",
        "rateOverrides": [
            {
                "orderTypeId": "dv2zpeo2lzbcje0js2kcuth44e",
                "percentage": "6"
            },
            {
                "orderTypeId": "nwayw1vjfvfmtmc0ztd5ejlpbq",
                "percentage": "6"
            }
        ]
    }
]
Headers
x-api-keyYour API Key
Path Variables
locationIdThe unique ID for the location

GET /locations/:locationId/taxes/:taxId

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

Retrieves a single tax for the supplied location.

Response Payload Structure

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

Headers
x-api-keyYour API Key
Path Variables
locationIdThe unique ID for the location
taxIdThe unique ID for the tax