Ga naar inhoud

subscription-exists

HTTP 409 Conflict

POST /v1/billing/checkout start geen tweede checkout omdat de organisatie al een abonnement heeft. De API vraagt eerst bij Stripe naar het opgeslagen abonnement: de statussen active, trialing, past_due, unpaid en paused tellen als bestaand. Als het opgeslagen abonnement niet meer bestaat bij Stripe of is beëindigd, verwijdert de API de verwijzing en gaat de checkout door.

Wat te doen

Wijzig of annuleer het plan in het facturatieportaal; GET /v1/billing/portal retourneert het adres hiervan. Naast de standaardvelden bevat de respons current_plan en 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"
}

← Foutreferentie