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
Section titled “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
Section titled “Example”{ "enabled": false, "thresholdAmount": 0, "topUpAmount": 0}Where it’s used
Section titled “Where it’s used”billing.setAutoTopUp(PUT /billing/auto-top-up)