MOR API reseller groups get

From Kolmisoft Wiki
Revision as of 08:14, 20 June 2022 by Nerijuss (talk | contribs) (Created page with "=Description= MOR API Retrieve list of Reseller Groups. <br><br> =Usage= * Call: /api/reseller_groups_get * Methods: POST, GET(if allowed, not recomended) <br><br> ===Parameters=== Parameters which are '''included''' into hash: * u - username for authentication. <br/><br/> Parameters which are '''not included''' into hash: * hash - SHA1 hash constructed using '''params above''' and '''API_Secret_Key''' (MOR API hash construction...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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