Fixing a 402 error

Why does the API return a 402 error?

Updated 23 November 2026

A 402 error from the IPzentra API means your account has no plan with API access. This is now rare: when a free trial or Pro subscription ends, the account moves to the Free plan and keeps working with basic fields. Your account, API keys and settings are all kept. As soon as a plan is active again, the same requests work without any change to your code.

What a 402 error looks like

The API responds with HTTP status 402 and a JSON body like this:

{"error": "subscription_required", "message": "..."}

Every key on the account returns the same response, because plans belong to the account rather than to individual keys.

Why you get a 402 error

There are three common causes:

  • An older integration message. Before the Free plan existed, an ended trial returned 402. Today an ended trial moves to the Free plan instead, so you should not see this for that reason.
  • A problem with your plan record. If you see a 402 today, contact our billing team and we will fix it quickly.
  • A renewal payment failed. If your card was declined or has expired, the plan ends when the paid period runs out.

How to fix a 402 error

  • Log in at app.ipzentra.com and open Billing.
  • Choose monthly or yearly billing and subscribe. Your plan activates as soon as the payment is confirmed, usually within a minute.
  • Send a test request. A lookup that returned 402 a moment ago should now return 200 with a full result.

If you have already paid but still see a 402 error, wait two minutes and try again. If it continues, contact our billing team with the email address on your account and the payment date.

Check your status in the dashboard

The Billing page shows your current plan, when it ends and how you are billed. Check it whenever you are unsure whether a plan is active.

Handle a 402 error in your code

Your application should treat a 402 response differently from a network error. Retrying will not help, because the answer stays the same until the plan changes. A safe pattern is:

  • Log the response and alert your team, so someone renews the plan.
  • Let the visitor continue as if the check had passed, or fall back to your own rules, so real customers are not blocked by a billing issue.
  • Stop retrying the same request until the plan is active again.

Avoiding a 402 error in future

  • Keep the card on your account up to date. You can change it from Billing.
  • Choose yearly billing if you prefer to renew once a year.
  • Make sure billing emails reach someone who can act on them, not an unattended inbox.

Related guides: rate limits and the 429 error, how to cancel your subscription and the pricing page.

Common questions about the 402 error

Will my API keys be deleted? No. Keys, restrictions and usage history all stay in place while the plan is inactive, so nothing needs to change in your code.

Is the 402 error the same for every key? Yes. Plans belong to the account, so every key on it behaves the same way until a plan is active again.

What should I tell my team? Share this guide and the Billing page with whoever manages payments, so the plan can be renewed quickly and nobody spends time debugging code that is working correctly.

Can I get a short extension instead? If you need a few more days to finish testing or to arrange payment, contact us and explain what you need. We look at each request individually.

How to fix a 402 error from the IPzentra API

Was this article helpful?

Related articles

Still need help?

Our team usually replies within one business day.

Open a support ticketContact us