Skip to main content
POST
Detect and fix duplicate active subscriptions (Stripe + local)
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

POST /billing/cleanup/duplicates Maintenance utility: runs Stripe-side and local-DB duplicate detection/cleanup in parallel, keeping one canonical active subscription per tenant. Authorization:
  • Required role: owner only

Code Examples

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Response

Cleanup complete (whether or not duplicates were found)

status
string
Example:

"success"

message
string
data
object