GET /v1/sales-taxUS Sales Tax lookup
Business Utils lf-business-utils
Tells you the sales tax for a US state and adds it onto a purchase amount. Returns the sales tax rate for a US state and calculates tax on a given purchase amount.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
state | string | No | Two-letter US state code |
amount | number | No | Purchase amount |
Response Schema
success (boolean): Operation success
state (string): State code
rate (number): Sales tax rate
amount (number): Purchase amount
tax (number): Calculated tax
total (number): Total with tax
cURL Example
curl 'https://lf-business-utils.laminarforge.dev/v1/sales-tax?state=CA&amount=100' -H 'Authorization: Bearer lf_YourApiKey'
Python Example
import requests
url = 'https://lf-business-utils.laminarforge.dev/v1/sales-tax'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'state': 'CA', 'amount': 100}
response = requests.get(url, headers=headers, params=params)
print(response.json())