Enable Auto-Topup
Automatically add funds to your wallet when the balance falls below a specified threshold. Requires that a billing method is already set in the user interface.
POST /wallet/auto-topup/enable
Required Permission
create:UserAutoTopUpYour API key must have this permission enabled in order to use this endpoint.
Example Request
curl --location 'https://<hostname>/wallet/auto-topup/enable' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"amount": 15,
"threshold": 10
}'Replace YOUR_API_KEY with your API key.
Query Parameters
Parameter
Type
Required
Description
amount
number
Yes
Amount to top-up automatically.
threshold
number
Yes
Minimum balance that triggers the top-up.
Response (HTTP 200)
Last updated