Billing
Auto-topup config
Set the threshold and amount for automatic wallet refills from the saved card.
PUT
Requires a saved card on file (see
Card on file).
Master switch.
When
availableCents falls below this value, an auto-topup fires.
Required if enabled=true. Range: 100–100000 (1,000).How much to add when the threshold trips. Range:
1000–500000
(5,000).How it fires
A background worker checks every running rental’s heartbeat. After each metering tick, ifavailableCents < thresholdCents AND auto-topup is
enabled AND a saved card exists, we:
- Charge the saved card for
topupAmountCentsvia Stripe PaymentIntent - On success: write an
auto_topupledger entry, credit the wallet - On failure: disable auto-topup, send an email asking the user to update their card
Caps
No hard daily cap is enforced server-side today. If you’re worried about runaway burn, settopupAmountCents to a conservative value and rely on
the cooldown.