Set the account's auto reload
Whether auto reload is on, the line below which the balance is topped up, and the amount of a top-up: each of the three that is given, for the account. An account that has set none of them has them as the control plane was started (auto reload off, below 5 Credits, $20, by default). Any account turns it on and off, on either plan, whether it ever topped up or not (on Free it reloads nothing: Free is never charged); turning it on takes a card on record (Balance.card), and gives an account that never chose a spend limit, and has none, the one its plan gives an account when it first pays (spend_limit_usd of the plan's flag: $50 on Paid as the control plane is started by default; Free gives none, and such an account on it is given what its trust level lets auto reload take in a month), no more than its trust level lets auto reload take. The account is looked at with this call: a top-up that is due by what was set is made before the answer. Setting any of them, or nothing, is a new start for an auto reload that has failed and is no longer tried by itself. What auto reload may take in a month is the account's spend limit (PATCH /v1/billing). Takes admin.
https://api.glac.ai/v1/billing/balanceAutorisation
Corps de la requêteJSONobligatoire
- auto_reloadoptionalboolean
truetakes a card on record (Balance.card): 409no_cardwithout one. An account that never chose a spend limit is given its plan's when it turns auto reload on (spend_limit_usdof the plan's flag: $50 on Paid as the control plane is started by default; Free gives none, and an account on it is given what its trust level lets auto reload take in a month; no more than its trust level lets). - start_nowoptionalboolean
With
auto_reloadtrue: the request each auto reload carries while auto reload stays on (turned off, it is forgotten).true: the account asks for what it buys to be provided at once, within the 14 days in which a consumer in the European Economic Area or the United Kingdom may withdraw from it, and acknowledges that it pays for what was provided if it withdraws and that a top-up whose Credits are all used has been provided in full and can no longer be withdrawn from (GET /v1/billing/withdrawals,right.start_now, has the words). Required of an account that buys as a consumer there (no tax id that is verified or being verified, and its billing address there, or, without one, the address the call comes from): 400start_now_requiredwithout it. Kept with the purchase wherever it is given: without it, a withdrawal gives back all that was paid (control/README.md, 撤回).
Returns
200
The balance, with the auto reload as it is now.
- owednumberrequired
What the account owes: what it kept (sleeping sandboxes, volumes, snapshots, backups, buckets) past the storage its plan includes that none of its Credits has paid. The first thing the next Credits pay, the earliest month first. From
--debt-charge-least($0.50) it is a debt (GET /v1/billing,debt); less is carried by the next charge of the account's subscription (Charge.debt_usd). - lotstableau deobjectrequired
The lots that have not lapsed and of which something is left, the one that lapses first first: the order they pay in. What is left of them adds up to
creditswhen nothing is owed (what is left of a lot that has just lapsed is increditsfor the seconds until it is written off). - reload_left_usdnumber | nullrequired
What auto reload may take still this month: what the spend limit leaves it (the limit, less what auto reload took,
reloaded_usd, and what was owed, charged on the billing day), and no more than the amounts of the account's trust level in force leave it (GET /v1/billing,trust: what may be taken by auto reload, and by top-ups and auto reloads together, in a month), the smaller of the two; null when neither has a limit. A spend limit the account set stays as it set it when its level is lowered: the level holds every charge as it is made. A top-up is made only if its whole amount is left. - cardrequired
The account's card on record: what auto reload, and what it owes on its billing day, are charged to. Where Stripe collects (
--collector stripe), the card of its customer, which a payment page saves (POST /v1/billing/checkout); null: it has none, and auto reload cannot be turned on. Where what stands in for a collector collects, every account has one, of which nothing is known.