Give credits to a reseller
POST
/credits/accounts/{id}/give/manage Delete and money: deletes, credits, servers or panel settings. Scopes
Move credits from your balance to a reseller below you, or take them back with a negative amount. Answers both history rows and both balances. Resellers who may give 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)requiredreasonstring
Response
201 OK
entriesobject[]requiredThe two history rows written: yours, then theirs.
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.
my_balancestring (decimal)requiredYour 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.