Difference between revisions of "MOR API rate get"

From Kolmisoft Wiki
Jump to navigationJump to search
Line 5: Line 5:
==Enable check check rate over http feature==
==Enable check check rate over http feature==


1. Go to '''SETTINGS - Setup -> Settings'''
Go to '''SETTINGS - Setup -> Settings'''
<br><br>  
<br><br>  
[[File:settings_path.png]]
[[File:settings_path.png]]
<br><br>
<br><br>
2. In Various tab check the marked option:
In API tab ensure that MOR API is enabled and check ''' Allow devices to check rate over HTTP:'' option :
<br><br>
<br><br>
[[File:Settings_various_rate_over_http.png]]
[[File:Settings_various_rate_over_http.png]]
<br><br>
3. Ensure that MOR API is enabled
<br><br>
[[File:Mor_api_rate_api_cfg.png]]
<br><br>
<br><br>
==Request==
==Request==

Revision as of 14:43, 5 April 2013

About

This feature enables you to check rate over http.

Enable check check rate over http feature

Go to SETTINGS - Setup -> Settings

Settings path.png

In API tab ensure that MOR API is enabled and check ' Allow devices to check rate over HTTP: option :

Settings various rate over http.png

Request

HTML POST: http://<SERVER_IP>/billing/api/rate?username=USERNAME&prefix=PREFIX
Example: http://127.0.0.1/billing/api/rate?username=admin&prefix=370



Result

Result is returned in format: rate#destination#prefix
Example: 35.0#Lithuania#370

NOTE. MOR API rate method shows rate, which is applied to User. If rate by prefix is not found in Custom Rates, it will be taken from Tariff assigned to User.

Problems and solutions

<status>GET Requests are disabled</status>

  • You did not enabled GET API - enable it as described in step 3



See Also