Differences
This shows you the differences between two versions of the page.
|
|
en:sidebar:remoteapi:apiref:account:do_payment [13/02/2013 14:56] alek |
en:sidebar:remoteapi:apiref:account:do_payment [29/11/2013 13:31] |
{{indexmenu_n>10}} | |
====== Make payment ====== | |
| |
To make a payment, use the command **account/do_payment**: | |
| |
<code javascript> | |
svc=account/do_payment¶ms={"itemId":<long>, | |
"balanceUpdate":<double>, | |
"daysUpdate":<int>, | |
"description":<text>} | |
</code> | |
| |
===== Parameters ===== | |
^ Name ^ Description ^ | |
| itemId | resource (account) ID | | |
| balanceUpdate | sum of payment (can be negative) | | |
| daysUpdate | quantity of days added (can be negative) | | |
| description | description (required parameter) | | |
| |
===== Response ===== | |
<code=javascript> | |
{} /* empty object if execution successful, if not - error code */ | |
</code> | |