Error Codes
Starting with API version2026-01-01, error responses use a simplified, consistent format.
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.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.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