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

# Test Auto Topup

> Trigger a one-off recharge to verify auto topup configuration

# Test Auto Topup

Trigger a real one-off recharge using the configured payment method to verify auto topup is set up correctly. This bypasses the threshold check and immediately charges `recharge_amount`.

<Warning>
  This is a **real charge**, not a simulation. The amount will be billed to the saved payment method and credited to your account balance.
</Warning>

## Endpoint

```
POST /api/v1/auto-topup/test
```

## Request headers

<ParamField header="Authorization" type="string" required>
  Bearer token. Format: `Bearer talq_your_environment_token_here`
</ParamField>

## Examples

<RequestExample>
  ```bash theme={null}
  curl -X POST "https://app.talkover.ai/api/v1/auto-topup/test" \
    -H "Authorization: Bearer talq_your_environment_token_here"
  ```
</RequestExample>

## Response

<ResponseExample>
  ```json theme={null}
  {
    "success": true,
    "message": "Test recharge completed successfully",
    "data": {
      "amount_charged": 100.00,
      "currency": "USD",
      "new_balance": 250.00,
      "transaction_id": "txn_uuid_1"
    }
  }
  ```
</ResponseExample>

## Error responses

### 422 — Not Configured

<ResponseExample>
  ```json theme={null}
  {
    "success": false,
    "message": "Auto topup is not configured",
    "code": "AUTO_TOPUP_NOT_CONFIGURED"
  }
  ```
</ResponseExample>

### 402 — Payment Failed

<ResponseExample>
  ```json theme={null}
  {
    "success": false,
    "message": "Payment method declined",
    "code": "PAYMENT_FAILED",
    "details": {
      "decline_reason": "insufficient_funds"
    }
  }
  ```
</ResponseExample>

## Notes

* Use this endpoint sparingly — repeated test charges may be flagged by your payment provider.
* The test charge counts toward `daily_limit` and `recharge_count_today`.
