List sales_taxes
GET/v1/entities/:entity_id/sales_taxes
Returns a list of sales taxe entries created. The sales taxes are returned in sorted order, with the most recent sales taxes appearing first. Authentication
Request
Path Parameters
Unique identifier for the Entity object.
Query Parameters
Date in YYYY-MM-DD format. Ex: 2023-01-22
A date used for selecting sales tax entries that were last updated after (or at) a specified time in YYYY-MM-DD format. Ex: 2023-01-22
A date used for selecting sales tax entries that were last updated before (or at) a specified time in YYYY-MM-DD format. Ex: 2023-01-22
Unique identifier for the Location object.
Responses
- 200
- 400
- 401
- 404
A dictionary with a data property that contains an array of objects. Each entry in the array is a separate sales tax entry object. If no more sales tax entries are available, the resulting array will be empty. You can list Sales Tax Entries by date or updated_after or updated_before.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- Array [
- ]
- ]
- ]
Default value: list
data object
locations object[]
Unique identifier for the Location object.
Name of Location.
dates object[]
taxes object[]
{
"object": "list",
"total_records": 1,
"data": {
"locations": [
{
"location_id": "GBraaEVr7mNqW",
"location_name": "JT Bottle Shop",
"dates": [
{
"date": "2023-01-22",
"gross_sales": 1438.25,
"discounts": 32.53,
"refunds": 0,
"cash_payments": 42.56,
"non_cash_payments": 1528.39,
"taxes": [
{
"id": "aGmyPmwz0n4K",
"name": "JT-CA 7.75%",
"taxable_revenue": 1405.81,
"collected_amount": 108.95,
"rate": 0.0775,
"city": "",
"county": "SAN BERNARDINO",
"state": "CA",
"updated_at": "2023-11-16T23:41:47.987Z"
}
]
}
]
}
],
"entity_id": "nGBr7Vr7mNqW"
},
"status": "ok"
}
Returns an error if atleast one param date, updated_before, or updated_after was not provided.
- application/json
- Schema
- Example (from schema)
Schema
error object
{
"error": {
"message": "At least one param date, updated_before, or updated_after is required",
"type": "invalid_request_error"
}
}
HTTP Basic: Access denied.
Returns an error if a invalid entity identifier was provided.
- application/json
- Schema
- Example (from schema)
Schema
error object
{
"error": {
"message": "Couldn't find Organization",
"type": "invalid_request_error",
"status": "ok"
}
}