402. billingUrl links to your organization’s billing page in the dashboard.
When it is returned
When a renewal payment fails, Stripe marks your subscription as past due and retries the charge over the next days. Until a payment succeeds, requests that need your paid plan get this error. That covers requests beyond the Free plan’s monthly credits, and endpoints that are not on the Free plan.How to fix
- Open
billingUrl, or go to Settings → Billing in the dashboard. - Update your card or pay the open invoice.
Handling it in code
Treatpayment-failed as a non-retryable error. Retrying won’t help until the payment is fixed. Alert whoever manages billing and include billingUrl.