Difference between revisions of "MOR API did rates details get"
From Kolmisoft Wiki
Jump to navigationJump to search
(Created page with "=Description= <!---This functionality is available from MOR X17--> MOR API Get DID rates details <br><br> =Usage= * From '''MOR X17''' call: '''/api/did_rates_details_get''' * Methods: POST, GET(if allowed, not recommended) <br><br> ===Parameters=== Parameters which are '''included''' into hash: * did_id - DID number '''Required'''. Parameters which are '''not included''' into hash: * u - username for authentication. '''Required'''. * MOR API hash construction...") |
|||
Line 1: | Line 1: | ||
=Description= | =Description= | ||
<!---This functionality is available from MOR X17--> | <!---This functionality is available from MOR X17--> | ||
[[MOR API]] Get DID rates details | [[MOR API]] Get DID rates details get | ||
<br><br> | <br><br> | ||
=Usage= | =Usage= | ||
Revision as of 07:29, 28 March 2023
Description
MOR API Get DID rates details get
Usage
- From MOR X17 call: /api/did_rates_details_get
- Methods: POST, GET(if allowed, not recommended)
Parameters
Parameters which are included into hash:
- did_id - DID number Required.
Parameters which are not included into hash:
- u - username for authentication. Required.
- hash - SHA1 hash constructed using params and API_Secret_Key ( More described in Constructing hash). Required.
Request
We have DID id 3, API Secret Key = secret
We send
HTML POST: http://<SERVER_IP>/billing/api/did_rates_details_get?did_id=3&u=admin&hash=350c0745ac7cb1565efda7e9c0e6ad2c6f9569c7
Returns
Information will be available soon
Errors
<?xml version="1.0" encoding="UTF-8"?> <page> <status> <error>Error message</error> </status> </page>
Error messages:
- Incorrect hash – Hash was not correct. Check API_Secret_Key and order or params while concatenating hash_string.
- Access Denied – Only Admin, Accountant or Reseller may use API.
- DID was not found – DID number does not exist or is incorrect.