MOR API reseller groups get
From Kolmisoft Wiki
Jump to navigationJump to search
Description
MOR API Retrieve list of Reseller Groups.
Usage
- Call: /api/reseller_groups_get
- Methods: POST, GET(if allowed, not recomended)
Parameters
Parameters which are included into hash:
- u - username for authentication.
Parameters which are not included into hash:
- hash - SHA1 hash constructed using params above and API_Secret_Key ( More described in Constructing hash). Required (if setting Disable hash checking is not checked).
Request
HTML POST: http://<SERVER_IP>/api/reseller_groups_get?u=admin&hash=sd5g16sd1g6s
Returns
Success
<page>
<reseller_groups>
<reseller_group>
<id>2</id>
<name> test_1</name>
<description></description>
</reseller_group>
<reseller_group>
<id>3</id>
<name>test_2</name>
<description>some text</description>
</reseller_group>
</reseller_groups>
</page>
Errors
- <error>Incorrect hash</error> - Hash was not correct. Check API_Secret_Key and order or params while concatenating hash_string.
- <error>Access Denied</error> - User with params u not found or params u not send. Enter correct username.
- <error>You are not authorized to use this functionality</error>
- <error>No Reseller Groups found</error> - No Reseller Groups to be listed