subscription-exists
HTTP 409 Conflict
POST /v1/billing/checkout nespustí druhý checkout, protože organizace již má předplatné. API se nejprve dotáže služby Stripe na uložené předplatné: stavy active, trialing, past_due, unpaid a paused se považují za existující. Pokud uložené předplatné u služby Stripe již neexistuje nebo skončilo, API odebere odkaz a checkout pokračuje.
Co dělat
Změňte nebo zrušte tarif v portálu pro fakturaci; GET /v1/billing/portal vrací jeho adresu. Kromě standardních polí obsahuje odpověď také current_plan a subscription_status.
{ "type": "https://docs.qr3.app/errors/subscription-exists", "title": "Subscription already active", "status": 409, "detail": "This organization already has an active subscription. Manage or change it in the billing portal (GET /v1/billing/portal) instead of starting a new checkout.", "current_plan": "pro", "subscription_status": "active"}