Credits

Set a reseller's package prices

PUT/credits/accounts/{id}/prices/

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

Set or clear the reseller's own price for the packages listed; others are left as they are. A reseller sets prices only for the resellers below them, never under what they pay themselves. Needs the permission to manage reseller prices.

Path parameters

  • idstring (uuid)required

Body

  • packagestring (uuid)required

    A package they may sell.

  • pricestring (decimal)requiredcan be null

    Their price; null clears it (they pay the package's), "0.00" is free.

Response

200 OK

  • packageobjectrequired
    • idstring (uuid)required
    • namestringrequired
    • credit_coststring (decimal)required

      The package's own price.

    • is_trialbooleanrequired
    • is_enabledbooleanrequired
    • durationstringrequired

      In words: "1 month", "7 days".

  • pricestring (decimal)requiredcan be null

    Their own price; null when none is set.

  • effective_pricestring (decimal)required

    What they pay for it.

  • sourcestringrequired

    Where effective_price comes from.

    • own - Their own price
    • parent - A price set by a reseller above them
    • list - The package's price

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