Error Codes
Starting with API version2026-01-01, error responses use a simplified, consistent format. Version 2026-03-01 adds IP resolution error types.
Error Response Format
All errors return a JSON object with three fields:Previous API versions used a nested
error object. The 2026-01-01+ format is flattened for easier parsing.Error Types Reference
Validation Errors
These errors occur when request data is invalid or malformed.Address Errors
These errors relate to address validation issues.IP Resolution Errors
These errors relate to IP-based tax resolution (new in 2026-03-01).IP resolution errors only occur when using
customer.ip with resolution: "strict" (the default). Use "best_effort" or "zero" to avoid these errors and receive zero-rate responses instead.Product Errors
These errors relate to product operations.Customer Errors
These errors relate to customer operations.Merchant Errors
These errors relate to merchant operations (new in 2026-01-01).Calculation Errors
These errors relate to tax calculation operations.Transaction Errors
These errors relate to transaction operations.Certificate Errors
These errors relate to exemption certificate operations.Certificate Request Errors
These errors relate to certificate-request operations.HTTP Status Codes
Handling Errors
Example Error Handling
Best Practices
- Always check the
typefield for programmatic error handling - Display the
messagefield to users when appropriate - Log the full error response for debugging
- Handle specific error types rather than just checking status codes
- Use
resolution: "best_effort"if you want to avoid IP resolution errors and prefer zero-rate fallbacks