Errors & Rate Limits

Errors & Rate Limits

All errors are returned as JSON with a stable shape:

{
  "error": {
    "code": "INVALID_REQUEST",
    "message": "destinationCountry is required",
    "details": {
      "field": "destinationCountry"
    }
  }
}

Common Error Codes

CodeHTTPDescription
INVALID_REQUEST400Request body is malformed or missing fields.
INVALID_COUNTRY400originCountry or destinationCountry is not a valid supported ISO code.
INVALID_CATEGORY400productCategory is unknown.
INVALID_CURRENCY400baseCurrency is unsupported.
UNSUPPORTED_COUNTRY400Destination country not yet supported by tax profiles.
FX_LOOKUP_FAILED500FX provider unavailable or returned a malformed payload.
INTERNAL_ERROR500Unexpected failure.
RATE_LIMITED429You exceeded your RapidAPI quota.

Rate Limiting

Rate limits are enforced by:

  1. RapidAPI plan quotas, based on your subscription.
  2. Optional internal safety limits per key.

If you receive RATE_LIMITED:

  • Implement exponential backoff.
  • Cache successful responses.
  • Consider upgrading your plan for higher throughput.