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
- Check license status
- Review your license expiration date in the admin console or via the
/api/v1/license/statusendpoint. -
Verify your current usage against your plan limits.
-
Renew or upgrade your license
- Contact your account manager or visit the AnkaSecure portal to renew your license.
-
Consider upgrading to a higher tier if you consistently exceed usage limits.
-
Purchase additional credits
- For pay-as-you-go plans, add credits through the billing portal.
-
Review usage patterns to estimate required credit amounts.
-
Optimize usage
- Implement caching strategies to reduce redundant API calls.
- Batch operations where possible to maximize efficiency.
-
Review and remove unused keys or inactive services.
-
Monitor usage proactively
- Set up usage alerts before reaching limits.
- 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.