# AutoTopUpApiRequest

Turns auto top-up on or off, with the balance that triggers it and how much it buys.

**Kind:** an object, used in requests.

## Fields

| Field | Type | Required | Description |
|---|---|---|---|
| `enabled` | `boolean` |  |  |
| `thresholdAmount` | `number` |  | Buy more when the balance falls below this, in the billing currency. |
| `topUpAmount` | `number` |  | How much to buy each time; at least the minimum top-up. |

## Example

```json
{
  "enabled": false,
  "thresholdAmount": 0,
  "topUpAmount": 0
}
```

## Where it's used

- [`billing.setAutoTopUp`](https://docs.maitento.com/reference/api/billing.md) (`PUT /billing/auto-top-up`)
