Skip to main content
If your API requests are failing with the HTTP status code 402 Payment Required, it means your account has reached a zero credit balance. When this happens, the API will block all incoming requests until credits are added to your account.

Sample Response

Your application will receive a JSON response similar to this:
{
    {
    "apiCode": 402,
    "message": "You have exhausted your API credits for this billing period.",
    "details": {
        "current_balance": 0,
        "action_required": "Please purchase a Top-up or Upgrade your plan to continue."
    },
    "dashboard_url": "https://dash.geekflare.com/billing",
    "documentation_url": "https://docs.geekflare.com/api/credit-exhausted",
    "apiStatus": "failure"
}
}

How to Resolve

To restore API access immediately, you have two options:

1. Purchase a Top-up (Instant)

Top-ups are one-time credit packs that do not expire. They act as a safety net when your monthly plan runs out.
  • Go to Dashboard > Billing.
  • Select a Top-up Pack.
  • Access is restored immediately upon payment.

2. Wait for Monthly Reset

If you are on a subscription plan, your credits will automatically reset on the 1st day of your billing cycle. You can check your next reset date on your Dashboard.

Need Help?

If you believe you received this error by mistake or need a custom enterprise plan with higher limits, please contact support.