MOR API provider rule delete

From Kolmisoft Wiki
Revision as of 08:15, 10 January 2023 by Dmitrij (talk | contribs) (Created page with "=Description= MOR API Delete Provider Rule. Can be used by Admin, reseller or accountant. <br><br> =Usage= * Call: /api/provider_rule_delete * Methods: POST, GET(if allowed, not recomended) <br><br> ===Parameters=== Parameters which are '''included''' into hash: * '''provider_rule_id''' - Provider rule id. '''Required'''. '''Note that parameters are shown in the same order as they have to be when generating the hash. Last parameter in a row is API_Secret_Key'''...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Description

MOR API Delete Provider Rule. Can be used by Admin, reseller or accountant.

Usage

  • Call: /api/provider_rule_delete
  • Methods: POST, GET(if allowed, not recomended)



Parameters

Parameters which are included into hash:

  • provider_rule_id - Provider rule id. Required.

Note that parameters are shown in the same order as they have to be when generating the hash. Last parameter in a row is API_Secret_Key

Parameters which are not included into hash:

  • hash - SHA1 hash constructed using parameters which are listed above. Note that parameters are shown in the same order as they have to be when generating the hash. Last parameter in a row is API_Secret_Key ( More described in Constructing hash). Required.
  • u - username for authentication. Required.



Request

HTML POST: http://<SERVER_IP>/billing/api/provider_rule_delete?u=admin&provider_rule_id=1&hash=297dab8c386794b2e947d52affb8f576c643569e



Returns

Success

<page>
 <status>
   <success>Provider rule was successfully deleted</success>
 </status>
</page>

Errors

  • <error>Incorrect hash</error> - Hash was not correct. Check API_Secret_Key and order or params while concatenating hash_string.
  • <error>Provider rule was not found</error> - Rule was not found or User does not have permissions to manage this rule.




See also