Auto top-up charges your saved card when your balance falls to or below a limit you set. It helps keep servers running. Owners and admins can set it.
What you need
A saved card. Add credit once and choose to save your card at checkout, or add a card with Manage in portal on Billing.
Turn it on
- Go to Billing and find Auto top-up.
- Set When the balance falls to or below (the threshold).
- Set Add this amount. The minimum is shown.
- Select Turn on auto top-up, then Save auto top-up.
What you agree to
Before you save, the card shows the exact authorization in your own amounts. By turning it on, you authorize us to charge your saved card through Stripe the amount you chose whenever your balance falls to or below the threshold, as set out in the Terms:
- If your balance is below zero when we charge, we charge more: enough to bring it back to the amount you chose.
- At most one automatic charge an hour.
- At most 4 automatic charges and $5,000 in any 24 hours, and at most $20,000 in any 30 days. A new account also has a lower cap in its first hours, which counts credit you add by hand; the card shows it. When a cap is nearly reached we charge less, and nothing when what is left is below the minimum top-up. Auto top-up stays on, and charges again when the window frees room. Add credit by hand for more.
The authorization lasts until you turn auto top-up off. A change of the amounts applies to later charges only.
Choose good values
Set the threshold to cover at least a few hours of your hourly burn, shown on Billing. Set the amount so one top-up lasts a useful time.
While a payment is in progress
The card says An automatic payment is in progress until the payment is confirmed, then your balance updates. No second charge is made while one is waiting for its result.
If a payment fails
No credit is added and we email you. A temporary refusal, such as insufficient funds or a generic decline, is tried once more after about an hour, while your balance is still at or below the threshold; the card shows the time. Your balance keeps falling in the meantime. See Billing and balance for what happens at zero.
When it turns itself off
Auto top-up switches itself off in these cases, and the Auto top-up card says which one applied:
| Reason | What to do |
|---|---|
| Two automatic payments in a row failed. | Check or replace your card, then turn it on again. |
| The card issuer gave a final decline: the card expired, was replaced, lost or stolen, or must not be charged again. It is not retried. | Save another card by adding credit, then turn it on again. |
| Your bank asked you to confirm a payment, which cannot happen while you are away. | Add credit once and confirm it with your bank, then turn it on again. |
| The card it used was removed, in the console or in the payment portal. | Save a card by adding credit, then turn it on again. |
| The card it charges changed: you added credit with another card, made another card the default, or changed it in the payment portal. Your agreement named the previous card, so the new one is not charged automatically, and we email you. | Turn it on again: that records your agreement for the new card. |
| A refund to your card left the balance at or below your threshold. Without this, the card would be charged again straight away for what was just refunded. | Turn it on again when you want it. |
| One of your payments is disputed or flagged as possible fraud, and is under review. | Contact support. It stays off after the review until you turn it on. |
| Our support team switched it off. Staff can never switch it on for you. | Contact support for details. |
Turning it on again is a new authorization, shown to you as above. Automatic charges are also never made while your account is suspended or closed.
After a payment provider outage
If our payment provider does not answer, no card has refused anything: nothing is counted as a failure and no email is sent. Before charging again, about an hour later, we first ask the provider whether the earlier attempt went through. If it did, it is credited once and not charged again; if it is still open, we wait for it. Right after an outage on our side we also wait a few minutes, until we see the real state of every account, before any automatic charge. So an outage can delay a top-up, but never charges you twice.
If we pause automatic top-ups
In rare cases, for example during a problem with payments, we pause automatic top-ups for all accounts. Your settings are kept and a payment that has already started still completes, but no new automatic charge is made. The auto top-up card and low-balance emails say so. Add credit by hand meanwhile. When the pause ends, automatic top-ups resume on their own, within the usual limits.
Turn it off
Select Turn off auto top-up. A payment that has already started is not cancelled; it is credited when it completes.
Emails
You choose which emails you get in Settings → Notifications. Billing receipts and security emails are always sent. See Settings and notifications.
Turn it off from a script
A script or a CI job can turn auto top-up off, never on: turning it on needs the consent the console asks of a person. The amount and the threshold are kept, so the console can turn it back on with the same values, and turning it off when it is already off gives the same answer. You need an API key with the full scope whose creator may manage billing (owners and admins). This may not be switched on for your account: then PATCH /api/v1/billing/auto-topup answers 404 feature_unavailable and the console is the way to turn it off.
curl -X PATCH "https://apidly.com/api/v1/billing/auto-topup" \
-H "Authorization: Bearer $APIDLY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"enabled":false}'
apidly billing auto-topup off --yesimport { Apidly } from "@apidly/sdk";
const apidly = new Apidly({ apiKey: process.env.APIDLY_API_KEY });
const { autoTopup } = await apidly.billing.disableAutoTopup();
console.log(autoTopup.enabled, autoTopup.amountCents);import os
from apidly import Client
client = Client(api_key=os.environ["APIDLY_API_KEY"])
print(client.billing.disable_auto_topup()["autoTopup"]["enabled"])Ready to try it?
Create a free account and add credit when you want to start a server. The smallest top-up is $10.
Was this helpful?