Skip to main content

Error Codes

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

  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