v1
latestOpenAPI 3.0.1MIT2026-07-13153492.5 KBGet tax information for a given product and address
post/tax/calculations
Headers
X-API-Version'2026-03-01' | '2026-01-01' | '2025-05-12' | '2024-09-01' required
API version to use.
Request body
Example request
{
"customer": {
"id": "cus_123456789",
"type": "CONSUMER",
"tax_ids": [
{
"type": "us_ein"
}
],
"address": {
"address_line_1": "3990 N County Rd 300 E",
"address_line_2": "Unit 2",
"address_city": "Danville",
"address_province": "IN",
"address_postal_code": "46122",
"address_country": "US",
"address_type": "shipping"
},
"ip": {
"value": "217.217.113.167"
}
},
"origin_address": {
"address_line_1": "3990 N County Rd 300 E",
"address_line_2": "Unit 2",
"address_city": "Danville",
"address_province": "IN",
"address_postal_code": "46122",
"address_country": "US"
},
"order_details": {
"customer_currency_code": "USD",
"automatic_tax": "auto",
"line_items": [
{
"reference_line_item_id": "line_123456789",
"reference_product_id": "p-1233543",
"product_category": "GENERAL_MERCHANDISE",
"fallback_product_category": "GENERAL_MERCHANDISE",
"amount": 200,
"quantity": 2
}
]
},
"metadata": {
"example_key": "example_value"
},
"default_customer_type": "CONSUMER"
}Response
Calculate response
Example response
{
"id": "calc_123456789",
"object": "tax.calculation",
"customer_currency_code": "USD",
"customer": {
"type": "CONSUMER"
},
"automatic_tax": "auto",
"line_items": [
{
"product": {
"reference_product_name": "Widget",
"reference_line_item_id": "line_987654321",
"reference_product_id": "p-1233543",
"product_tax_code": "GENERAL_MERCHANDISE"
},
"tax_jurisdictions": [
{
"tax_rate": 0.07,
"tax_due_decimal": 700,
"rate_type": "GENERAL STATE SALES TAX",
"tax_authority_name": "Tennessee",
"tax_type": "SALES"
}
],
"quantity": 2,
"tax_amount": 14,
"amount_excluding_tax": 200,
"amount_including_tax": 214
}
],
"total_tax_amount": 14,
"total_amount_excluding_tax": 200,
"total_amount_including_tax": 214,
"expires_at": 1714787673,
"address_resolution_status": "EXACT",
"address_used": {
"address_line_1": "4 Privet Drive",
"address_line_2": "Unit 2",
"address_city": "Little Whinging",
"address_province": "CA",
"address_postal_code": "90210",
"address_country": "US"
},
"metadata": {
"example_key": "example_value"
},
"location_source": "address",
"resolution_precision": "POSTAL"
}