MOR API provider rule delete

From Kolmisoft Wiki
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. The 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. The 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 permission to manage this rule.




See also