> ## Documentation Index
> Fetch the complete documentation index at: https://docs.queryful.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Sales taxes

> Tax charged on sales by jurisdiction: tax name, rate, country, region and city, and what was taxed.

Tax charged on sales by jurisdiction: tax name, rate, country, region and city, and what was taxed.

## Example

```sql theme={null}
FROM sales_taxes
  SHOW sales_taxes, managed_markets_taxes
  GROUP BY sales_channel
  SINCE startOfMonth(-1m) UNTIL today
  ORDER BY sales_taxes DESC
```

## Metrics

| Metric | Type | Description |
| - | - | - |
| `sales_taxes` | Currency | Tax charged on sales. |
| `managed_markets_taxes` | Currency | Taxes Shopify's Managed Markets collected and remits for you. |

## Dimensions

| Dimension | Description |
| - | - |
| `tax_name` | The tax's name, such as VAT or CA State Tax. |
| `tax_rate` | The rate charged, such as 20%. |
| `tax_country` | The country taxed. |
| `tax_region` | The state, province or region taxed. |
| `tax_city` | The city taxed. |
| `line_type` | What was taxed: product, shipping, duty or fee. |
| `filed_by_channel` | Whether the sales channel filed the tax for you. |
| `sales_channel` | The sales channel the order came through, such as Online Store or Point of Sale. |
| `order_name` | Order name, such as #1001. |

## Filters

| Filter | Type | Description |
| - | - | - |
| `tax_rate` | Text | The rate charged, such as 20%. |
| `tax_region` | Text | The state, province or region taxed. |
| `tax_city` | Text | The city taxed. |
| `line_type` | Text | What was taxed: product, shipping, duty or fee. |
| `filed_by_channel` | Text | Whether the sales channel filed the tax for you. |
| `sales_channel` | Text | The sales channel the order came through, such as Online Store or Point of Sale. |
| `tax_country` | Text | The country taxed. |
| `tax_name` | Text | The tax's name. |

## Linked records

Fields of the records this dataset reaches can be shown, grouped by and filtered on, written with a dot after the record (for example `order.name`). Each record's page lists its fields.

| Write | Record | Reached through |
| - | - | - |
| `order.<field>` | [Order](https://docs.queryful.app/queryfulql/records/order.md) | Order |
| `order.customer.<field>` | [Customer](https://docs.queryful.app/queryfulql/records/customer.md) | Order › Customer |
| `order.customer.company.<field>` | [Company](https://docs.queryful.app/queryfulql/records/company.md) | Order › Customer › Company |
| `order.company.<field>` | [Company](https://docs.queryful.app/queryfulql/records/company.md) | Order › Company |
| `order.company_location.<field>` | [Company location](https://docs.queryful.app/queryfulql/records/company_location.md) | Order › Company location |
| `order.company_location.company.<field>` | [Company](https://docs.queryful.app/queryfulql/records/company.md) | Order › Company location › Company |
| `order.location.<field>` | [Location](https://docs.queryful.app/queryfulql/records/location.md) | Order › Location |
| `order.market.<field>` | [Market](https://docs.queryful.app/queryfulql/records/market.md) | Order › Market |
| `shop.<field>` | [Store](https://docs.queryful.app/queryfulql/records/shop.md) | Store |

## Related datasets

* [Sales](https://docs.queryful.app/queryfulql/datasets/sales.md)
* [Orders](https://docs.queryful.app/queryfulql/datasets/orders.md)
* [Order line items](https://docs.queryful.app/queryfulql/datasets/order_lines.md)
* [Returns](https://docs.queryful.app/queryfulql/datasets/returns.md)
* [Restocks](https://docs.queryful.app/queryfulql/datasets/refund_lines.md)
* [Refunds](https://docs.queryful.app/queryfulql/datasets/refunds.md)
* [Write-offs](https://docs.queryful.app/queryfulql/datasets/sale_write_offs.md)
* [Profitability](https://docs.queryful.app/queryfulql/datasets/profitability.md)
* [Agentic sales](https://docs.queryful.app/queryfulql/datasets/agentic_sales.md)
* [Products bought together](https://docs.queryful.app/queryfulql/datasets/product_pairs.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.