Hoppa till innehåll

subscription-exists

HTTP 409 Conflict

POST /v1/billing/checkout startar inte en andra checkout eftersom organisationen redan har ett abonnemang. API:et frågar först Stripe om det sparade abonnemanget: statusarna active, trialing, past_due, unpaid och paused räknas som befintliga. Om det sparade abonnemanget inte längre finns hos Stripe eller har avslutats, tar API:et bort referensen och checkout-processen fortsätter.

Vad du kan göra

Ändra eller avbryt planen i faktureringsportalen; GET /v1/billing/portal returnerar dess adress. Förutom standardfälten innehåller svaret current_plan och 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"
}

← Felreferens