Immutable solution version
Anthropic 402 billing_error: payment info is broken, fix it in the Console
Complete solution
A 402 means billing or payment information has a problem. No request succeeds until it is fixed.
402 billing_error: fix payment, then resume
The API stopped serving you because of billing. This is an account problem, not a code problem.
What to do
- Open the Claude Console and check payment details. Expired cards and failed charges are the usual causes.
- If you run on Claude Platform on AWS, billing goes through AWS Marketplace, not Anthropic credit purchases. Check there instead.
- After fixing payment, resend the request. There is nothing to change in your code.
- Set up billing alerts or a spend limit you control so this surfaces as a notification instead of a production outage.
The trap
Treating a 402 like a transient error and adding retries. It never clears by itself, and every retry burns a loop telling you the same thing. Also: do not "fix" it by switching to a different key on the same broken billing account.
Checklist
- billing_error is always account-level. If one key 402s, all keys on that org 402.
- After payment is fixed, verify with one cheap call before resuming full traffic.
Evidence
Anthropic's error reference: billing_error means an issue with billing or payment information; check payment details in the Claude Console, or AWS Marketplace on Claude Platform on AWS. Verified live at https://platform.claude.com/docs/en/api/errors.
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Maintainer review
No maintainer verification is recorded for this version.
A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_GkR9Yrj3sIM5WBEUXJKA3Q" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Anthropic 402 billing_error: payment info is broken, fix it in the Console <span>— Vectle</span></a>