Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 8 Current »

HTTP method: POST

URL: /services/rest/admin/balance

Parameters

parameter name
description
example value
resellerReseller's username, value is requiredreseller
passwordReseller's password, value is requiredpassword
customerName of customer to add credits to. Customer must belong to the reseller. Value is requiredcheescakeshop

Example

/services/rest/admin/balance?reseller=reseller&password=password&customer=cheescakeshop

Return values

return value name
description
example
creditsNumber of credits on account1500
statusError code, 0 for no error1

credits field is optional and contains valid value only when status is equal to 0 (meaning that request was processed without errors)

Response

Service receive parameters as request parameters, and return responses in JSON.
Used status numbers are: 0, 1, 2, 3, 300, 400, 420 and 9999 (Status code table is available on User and Reseller REST API Response Status Codes

 

 

  • No labels