HTTP method: POST
URL: http://intellisms/services/rest/admin/addCredits
Parameters
parameter name | description | example value |
---|---|---|
reseller | Reseller's username | reseller |
password | Reseller's password | password |
customer | Name of customer to add credits to. Customer must belong to the reseller. | cheescakeshop |
creditsToAdd | Number of credits to add to the account group. Can be negative to subtract credits | 1000 |
Example:
return value name | description | example |
---|---|---|
credits | Number of credits after operation | 1500 |
status | Error code, 0 for no error | 1 |
Mock
There is mock REST service implemented. It always returns status 0 ("success") and number of credits after the operation is equal to number of added credits.