Skip to main content

Endpoint

POST https://api.ugc.inc/billing/cancel-subscription

Overview

Cancel every active account under your billing. Each account keeps access until the end of the current billing period, then is reclaimed automatically. Individual accounts can be reactivated with /billing/reactivate-account before that date.

Request

No request body required.

Response

data
object
curl -X POST https://api.ugc.inc/billing/cancel-subscription \
  -H "Authorization: Bearer YOUR_API_KEY"
import { UGCClient } from 'ugcinc';

const client = new UGCClient({ apiKey: 'YOUR_API_KEY' });
const response = await client.billing.cancelSubscription();

if (response.ok) {
  console.log(`Cancelled ${response.data.cancelled} accounts`);
}
{
  "ok": true,
  "code": 200,
  "message": "Success",
  "data": {
    "message": "All accounts will be cancelled at the end of the current billing period",
    "cancelled": 5,
    "cancel_at": "2026-05-01T00:00:00.000Z"
  }
}