> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ugc.inc/llms.txt
> Use this file to discover all available pages before exploring further.

# Reactivate Account

> Undo a pending cancellation on an account

## Endpoint

```
POST https://api.ugc.inc/billing/reactivate-account
```

## Overview

Undo a pending cancellation on an account, restoring it to its prior status. Must be called before the billing period ends. No billing change occurs — quantity was never decremented.

## Request Body

<ParamField body="account_id" type="string" required>
  ID of the account to reactivate
</ParamField>

## Response

<ResponseField name="data" type="object">
  <Expandable title="Response properties">
    <ResponseField name="message" type="string">
      Confirmation message
    </ResponseField>

    <ResponseField name="account_id" type="string">
      ID of the reactivated account
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST https://api.ugc.inc/billing/reactivate-account \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"account_id": "acc_123"}'
  ```

  ```typescript React theme={null}
  import { UGCClient } from 'ugcinc';

  const client = new UGCClient({ apiKey: 'YOUR_API_KEY' });
  const response = await client.billing.reactivateAccount({
    account_id: 'acc_123'
  });
  ```
</RequestExample>

<ResponseExample>
  ```json Success Response theme={null}
  {
    "ok": true,
    "code": 200,
    "message": "Success",
    "data": {
      "message": "Cancellation undone",
      "account_id": "acc_123"
    }
  }
  ```
</ResponseExample>
