Skip to main content
POST
Calculate Sales Tax

Request contract

  • Method and path: POST /apis/v1/api-ninjas/calculate-sales-tax
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/api-ninjas/calculate-sales-tax
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.00089 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
amount
number
required

Purchase amount to calculate sales tax on. Must be non-negative.

Required range: x >= 0
Examples:

100

250.5

city
string

City name (must be used with state parameter). Use this with state OR use zip_code for location.

Examples:

"Beverly Hills"

"New York"

"Chicago"

state
string

State name (must be used with city parameter). Use this with city OR use zip_code for location.

Examples:

"California"

"New York"

"Illinois"

zip_code
string

Valid US ZIP code (5 digits). Use this OR both city and state parameters for location.

Examples:

"90210"

"10001"

"60601"

Response

Tool result data

additional_rate
number
additional_tax
number
city_rate
number
city_tax
number
county_rate
number
county_tax
number
state_rate
number
state_tax
number
total_price
number
total_rate
number
total_tax
number
zip_code
string