Add or remove credits
POST
/credits/accounts/{id}/adjust/manage Delete and money: deletes, credits, servers or panel settings. Scopes
Add credits to a reseller's balance, or remove them with a negative amount; reason is shown in their history. Panel operators who may add or remove credits only.
Path parameters
idstring (uuid)required
Headers
Idempotency-KeystringA 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
amountstring (decimal)requiredreasonstringrequiredtypestringWhy, for the history.
payment- They paidrefund- You refunded themcorrection- A correctionpromo- A promotionother- Anything else
Default:
"other"referencestring
Response
201 OK
entryobjectrequiredThe history row written.
idintegerrequiredread-onlycreated_atstring (date-time)requiredread-onlyaccountobjectrequiredread-onlycan be nullidstring (uuid)requiredusernamestringrequired
account_namestringrequiredread-onlyamountstring (decimal)requiredread-onlybalance_afterstring (decimal)requiredread-onlykindstringrequiredread-onlykind_labelstringrequiredread-onlytypestringrequiredread-onlytype_labelstringrequiredread-onlydescriptionstringrequiredread-onlyactor_namestringrequiredread-onlyby_mebooleanrequiredread-onlycan be nullcounterparty_namestringrequiredread-onlylineobjectrequiredread-onlycan be nullidstring (uuid)requiredusernamestringrequired
line_namestringrequiredread-onlypackage_namestringrequiredread-onlydurationstringrequiredread-onlyexpires_atstring (date-time)requiredread-onlycan be nullreasonstringrequiredread-onlyreferencestringrequiredread-only
balancestring (decimal)requiredTheir balance now.
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.