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
  • Runtime facts: 80f6d0ab09ca1b2bfaa51bc30934eca7d1f0ea7e38c9d075b9100f098998c5d9
Complete OpenAPI definition Effective request and pricing declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based billing; Default request estimate: $0.00089 USD (not a fixed price). Declared unit rate: $0.000001 USD per provider_credit. Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.
  • Default request reference estimate (USD): 0.00089
  • Declared unit rate (USD): 1e-06
  • Billing unit: provider_credit
  • Cost contract: response_units
  • Published reference multiplier: 1.0
  • Declared maximum count/units: 10000000
  • Settlement evidence source: response_body

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

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