latestSwagger 2.02026-08-19218237253.7 KB

3af866d68651

Payments

Updates the user's auto top-up settings (Roles: user)

put/payment/topup/auto

Request body

enabledboolean required
thresholdnumber float
creditsinteger

Response

Success

enabledboolean
thresholdnumber float

When available credits (max + extra - current) drop below this, an automatic top-up is attempted

creditsinteger

Fixed credit amount to buy on each automatic top-up (TOPUP bracket pricing)

armedboolean

Hysteresis latch: true while the balance is above the threshold; consumed (set false) by the single attempt per below-threshold episode