MOR API location rule delete

From Kolmisoft Wiki
Revision as of 15:22, 3 April 2019 by Edvardas (talk | contribs) (Created page with '=Description= '''Admin''' – can delete any location rules.<br> '''Reseller''' – can delete his and his users location rules.<br> <br><br> =Usage= * From '''MOR X14''' call…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Description

Admin – can delete any location rules.
Reseller – can delete his and his users location rules.


Usage

  • From MOR X14 call: /api/location_rule_delete
  • Methods: POST, GET(if allowed, not recomended)



Parametres

  • u – username for authentication. This is owner (admin or reseller) Required.
  • location_rule_id - location rule ID in MOR database Required.
  • hash - SHA1 hash constructed using params and API_Secret_Key ( More described in Constructing hash). Required (if setting Disable hash checking is not checked).



Request

We send:

HTML POST: http://<SERVER_IP>/billing/api/location_rule_delete?u=admin&location_rule_id=19&hash=dc76cb355ae3bb77494de3fb276933c42b59ff22



Returns

Success

<status>
   <success>Rule deleted</success>
 </status>
</page>




Errors

  • <error>Rule was not found</error>
  • <error>Access denied</error> - authentication user is incorrect.
  • <error>Rule was not deleted</error>



See also