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)requiredA package they may sell.
pricestring (decimal)requiredcan be nullTheir price; null clears it (they pay the package's), "0.00" is free.
Response
200 OK
packageobjectrequiredidstring (uuid)requirednamestringrequiredcredit_coststring (decimal)requiredThe package's own price.
is_trialbooleanrequiredis_enabledbooleanrequireddurationstringrequiredIn words: "1 month", "7 days".
pricestring (decimal)requiredcan be nullTheir own price; null when none is set.
effective_pricestring (decimal)requiredWhat they pay for it.
sourcestringrequiredWhere
effective_pricecomes from.own- Their own priceparent- A price set by a reseller above themlist- 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.