Facturation & Abonnements
Cancel the user's subscription.
Cancel the user's subscription.
- If linked to Stripe: schedule cancellation at period end (cancel_at_period_end=True)
- Otherwise (license key / trial without payment): mark canceled immediately
R230 BUG-028 Sprint+1 : action critique (impact billing) → step-up
TOTP requis (≤ 5 minutes). Compliance PCI-DSS 4.0 §8.6.
Vague 8 fuzz adversarial 2026-05-27 : `@step_up_required` skip pour les
rôles non-privileged sans 2FA (cf core/auth.py:754 — assomption "@
permissions_required aura refusé en amont" FAUSSE ici). Le service
impose désormais owner-only via `_assert_billing_owner_or_super_admin`.
Route catch PermissionError → 403 propre.
post/api/v1/billing/cancel
Request
- Base URL: https://erp.eyeot.fr/api/v1
- URL: https://erp.eyeot.fr/api/v1/api/v1/billing/cancel
- Auth: one of:
- HTTP bearer
- HTTP bearer
Response
Succès — payload {data, meta} (cf. API-GUIDE §3.1)
Changes
No recorded changes to this operation across all 1 revision of this API.