Credits

Turn unlimited credits on or off

PATCH/credits/accounts/{id}/

manage Delete and money: deletes, credits, servers or panel settings. Scopes

With unlimited credits, a reseller's lines cost nothing whatever their balance. Panel operators who may add or remove credits only.

Path parameters

  • idstring (uuid)required

Headers

  • Idempotency-Keystring

    A fresh value (up to 100 characters) per action you may retry. Sent again with the same request, it answers what the first one did without doing it twice; with another request, 409. Kept 24 hours.

Body

  • unlimitedboolean

Response

200 OK

  • idstring (uuid)required
  • usernamestringrequired
  • groupstringrequiredcan be null
  • parentobjectrequiredread-onlycan be null
    • idstring (uuid)required
    • usernamestringrequired
  • balancestring (decimal)required
  • unlimitedbooleanrequired
  • spent_this_monthstring (decimal)required
  • last_entry_atstring (date-time)requiredcan be null
  • cheapest_pricestring (decimal)requiredcan be null
  • lowbooleanrequiredread-only
  • is_activebooleanrequired

Errors

  • 400 Something sent is not valid. Each field that is wrong is named with what is wrong.
  • 401 No credential, or one that is wrong, expired or revoked.
  • 403 The account, or the key's or app's scopes, may not do this.
  • 404 Nothing with this id, or nothing the account can see.
  • 429 Slow down: wait the seconds in the Retry-After header, then try again.

What each error means