MOR API location rule delete

From Kolmisoft Wiki

Revision as of 15:22, 3 April 2019 by Edvardas (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

[edit] Description

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


[edit] Usage

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



[edit] 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).



[edit] Request

We send:

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



[edit] 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>



[edit] See also

Personal tools

Try MOR

Try M2