Skip to main content

Error Codes

Starting with API version 2026-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

  1. Always check the type field for programmatic error handling
  2. Display the message field to users when appropriate
  3. Log the full error response for debugging
  4. Handle specific error types rather than just checking status codes
  5. Use resolution: "best_effort" if you want to avoid IP resolution errors and prefer zero-rate fallbacks