Skip to content

Payment Required

URI: https://docs.ankatech.co/errors/payment-required
HTTP Status: 402 Payment Required

When you see this

Your license has expired or you have exceeded your usage limits for the current billing period. Additional payment or license renewal is required to continue using the service.

Common Causes

  • License expiration
    Your AnkaSecure license has reached its expiration date and needs renewal.

  • Usage limit exceeded
    You have consumed all available API calls, cryptographic operations, or storage quota for your current plan.

  • Credit depletion
    Your prepaid credits have been exhausted and need to be replenished.

  • Feature tier restriction
    You attempted to use a premium feature not included in your current subscription tier.

  • Concurrent operation limit
    You've exceeded the maximum number of concurrent operations allowed by your license.

How to Resolve

  1. Check license status
  2. Review your license expiration date in the admin console or via the /api/v1/license/status endpoint.
  3. Verify your current usage against your plan limits.

  4. Renew or upgrade your license

  5. Contact your account manager or visit the AnkaSecure portal to renew your license.
  6. Consider upgrading to a higher tier if you consistently exceed usage limits.

  7. Purchase additional credits

  8. For pay-as-you-go plans, add credits through the billing portal.
  9. Review usage patterns to estimate required credit amounts.

  10. Optimize usage

  11. Implement caching strategies to reduce redundant API calls.
  12. Batch operations where possible to maximize efficiency.
  13. Review and remove unused keys or inactive services.

  14. Monitor usage proactively

  15. Set up usage alerts before reaching limits.
  16. Use the monitoring API to track consumption in real-time.

Response Example

{
  "error": {
    "code": "PAYMENT_REQUIRED",
    "message": "License expired or usage limit exceeded",
    "detail": "Your license expired on 2024-12-31. Please renew to continue service.",
    "timestamp": "2025-01-15T10:30:00Z",
    "traceId": "550e8400-e29b-41d4-a716-446655440000",
    "type": "https://docs.ankatech.co/errors/payment-required"
  },
  "usage": {
    "operations_used": 1000000,
    "operations_limit": 1000000,
    "license_expires": "2024-12-31T23:59:59Z",
    "renewal_url": "https://portal.ankatech.co/billing/renew"
  }
}

If you need immediate assistance with license renewal or have questions about pricing plans, please contact [email protected] or consult the full API Reference.