Taxes
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 Name | Field Type | Field Description | Org Level Attribute* |
---|---|---|---|
id | string | The unique ID for the tax. | Yes |
locationId | string | The unique ID for the location. | |
name | string | The name of the tax. | Yes |
deleted | boolean | True if the tax has been marked as deleted. | Yes |
defaultRatePercentage | string | The 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 | []RATEOVERRIDE | An array of tax rate overrides based on order type. |
RATEOVERRIDE
Field Name | Field Type | Field Description | Org Level Attribute* |
---|---|---|---|
orderTypeId | string | The unique ID for the order type. | Yes |
percentage | string | The 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-key | Your API Key |
Path Variables | |
---|---|
locationId | The 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-key | Your API Key |
Path Variables | |
---|---|
locationId | The unique ID for the location |
taxId | The unique ID for the tax |
Updated over 2 years ago