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:



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



See also