getSalesTaxRate
function getSalesTaxRate(query): | SalesTaxRate | null;Defined in: salestax.ts:113
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.
Only standard rates are covered, from 1 July 2019. Reduced, higher and sector rates (telecom, restaurants paid by card, Third Schedule goods and so on) are not. Every rate comes from the authority’s own Act or Finance Act; see DATA.md.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
query |
SalesTaxRateQuery |
Returns
Section titled “Returns”| SalesTaxRate
| null
The rate and its source, or null for an unknown province or
kind, an invalid date, or a date before 1 July 2019. Never throws.
Example
Section titled “Example”getSalesTaxRate({ kind: 'goods', date: '2026-11-18' })?.rate; // 18getSalesTaxRate({ kind: 'services', province: 'Sindh', date: '2024-06-30' })?.rate; // 13