# salestax

Source: https://pakdatakit.dev/api/typescript/salestax/

## Interfaces

| Interface | Description |
| :------ | :------ |
| [SalesTaxRate](https://pakdatakit.dev/api/typescript/salestax/interfaces/salestaxrate/) | One standard rate and the period it applied. |
| [SalesTaxRateQuery](https://pakdatakit.dev/api/typescript/salestax/interfaces/salestaxratequery/) | Options for [getSalesTaxRate](https://pakdatakit.dev/api/typescript/salestax/functions/getsalestaxrate/). |
| [SalesTaxAmounts](https://pakdatakit.dev/api/typescript/salestax/interfaces/salestaxamounts/) | Result of [calculateSalesTax](https://pakdatakit.dev/api/typescript/salestax/functions/calculatesalestax/) and [splitInclusive](https://pakdatakit.dev/api/typescript/salestax/functions/splitinclusive/). |
| [SalesTaxOptions](https://pakdatakit.dev/api/typescript/salestax/interfaces/salestaxoptions/) | Options for [calculateSalesTax](https://pakdatakit.dev/api/typescript/salestax/functions/calculatesalestax/): a `rate`, or a `province`/`kind` to look one up. |

## Type Aliases

| Type Alias | Description |
| :------ | :------ |
| [SalesTaxKind](https://pakdatakit.dev/api/typescript/salestax/type-aliases/salestaxkind/) | What is taxed: goods (federal sales tax) or services (provincial or ICT). |

## Functions

| Function | Description |
| :------ | :------ |
| [getSalesTaxRate](https://pakdatakit.dev/api/typescript/salestax/functions/getsalestaxrate/) | Returns the standard sales tax rate for goods (federal, Sales Tax Act 1990) or for services in a province or Islamabad Capital Territory, on a given date. |
| [splitInclusive](https://pakdatakit.dev/api/typescript/salestax/functions/splitinclusive/) | Splits an amount that includes sales tax into its value and tax. |
| [calculateSalesTax](https://pakdatakit.dev/api/typescript/salestax/functions/calculatesalestax/) | Adds sales tax to an amount, or splits it out when `inclusive` is set. |
