<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.kolmisoft.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Edvinas</id>
	<title>Kolmisoft Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kolmisoft.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Edvinas"/>
	<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php/Special:Contributions/Edvinas"/>
	<updated>2026-04-16T21:25:36Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_Card_Group_create&amp;diff=20318</id>
		<title>MOR API Card Group create</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_Card_Group_create&amp;diff=20318"/>
		<updated>2015-11-11T14:45:37Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Description=&lt;br /&gt;
[[MOR API]] Card Group create&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* From '''MOR X7''' Calling Card: '''/api/cc_group_create'''&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parameters===&lt;br /&gt;
&lt;br /&gt;
Parameters which are '''included''' into hash:&lt;br /&gt;
&lt;br /&gt;
* name - name of a Card Group '''Required'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Parameters which are '''not included''' into hash:&lt;br /&gt;
&lt;br /&gt;
* '''[[MOR API hash construction | hash]]''' - SHA1 hash constructed using the '''parameters''' which are listed above. Note that the parameters are shown in the same order as they need to be when generating the hash. The last parameter in a row is '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&amp;lt;br&amp;gt;&lt;br /&gt;
* '''u''' - username for authentication. '''Required'''.&lt;br /&gt;
* '''description''' - description for Card Group.&lt;br /&gt;
* '''price_with_vat''' - price with TAX for Card Group.&lt;br /&gt;
* '''setup_fee''' - setup fee for Card Group.&lt;br /&gt;
* '''ghost_min_perc''' - ghost min percent for Card Group.&lt;br /&gt;
* '''daily_charge''' - daily charge for Card Group.&lt;br /&gt;
* '''tariff_id''' - Card Group Tariff ID.&lt;br /&gt;
* '''lcr_id''' - Card Group LCR id.&lt;br /&gt;
* '''date_from''' - Card Group valid from date.&lt;br /&gt;
* '''date_till''' - Card Group valid till date.&lt;br /&gt;
* '''number_length''' - Card Group number length.&lt;br /&gt;
* '''pin_length''' - Card Group pin length.&lt;br /&gt;
* '''location_id''' - Card Group Location ID.&lt;br /&gt;
* '''tax_id''' - Card Group TAX ID.&lt;br /&gt;
* '''valid_after_first_use''' - number of days, after which Card Group gets valid.&lt;br /&gt;
* '''ghost_balance_perc''' - Card Group ghost balance percent.&lt;br /&gt;
* '''use_external_function''' - enable or disable use of external script.&lt;br /&gt;
* '''allow_loss_calls''' - Allow Loss Calls for Card Group.&lt;br /&gt;
* '''tell_cents''' - tell cents for Card Group.&lt;br /&gt;
* '''tell_balance_in_currency''' - Card Group Balance/Rate Currency.&lt;br /&gt;
* '''solo_pinless''' - enable or disable solo pinless.&lt;br /&gt;
* '''disable_voucher''' - enable or disable voucher.&lt;br /&gt;
* '''callerid_leave''' - enable or disable Caller ID leave.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have u = admin, API Secret Key = secret&lt;br /&gt;
We send:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/cc_group_create?u=admin&amp;amp;name=card_group_test&amp;amp;hash=7e112ededcfee097cce21b6201c6d2a00dda1f4c&lt;br /&gt;
&lt;br /&gt;
* Now we can find 1 newly created Card Group.'''&amp;lt;br&amp;gt;&lt;br /&gt;
'''* Note that if not passing optional parameters, default values will be used.'''&amp;lt;br&amp;gt;&lt;br /&gt;
'''* Note that a Username and a Password are not included into hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Returns===&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
   &amp;lt;status&amp;gt;&lt;br /&gt;
     &amp;lt;success&amp;gt;Card Group was successfully created&amp;lt;/success&amp;gt;&lt;br /&gt;
   &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Errors'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; - User is not authorized or is a Simple User. Only Admin, Reseller or Accounant can use this API method. &lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; - hash is not correct. Check API_Secret_Key and order or parameters while concatenating a hash_string.&lt;br /&gt;
* &amp;lt;error&amp;gt;You are not authorized to use this functionality&amp;lt;/error&amp;gt; - User has no permissions to manage Calling Cards.  &lt;br /&gt;
* &amp;lt;error&amp;gt;Card Group must have name&amp;lt;/error&amp;gt; - Card Group name is not given. Name is required parameter.&lt;br /&gt;
* &amp;lt;error&amp;gt;Use external function is incorrect format&amp;lt;/error&amp;gt; - use external script parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Allow loss calls is incorrect format&amp;lt;/error&amp;gt; - allow loss calls parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Tell cents is incorrect format&amp;lt;/error&amp;gt; - tell cents parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Solo pinless is incorrect format&amp;lt;/error&amp;gt; - solo pinless parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Disable voucher is incorrect format&amp;lt;/error&amp;gt; - voucher parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Callerid leave is incorrect format&amp;lt;/error&amp;gt; - Caller ID leave parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid date from&amp;lt;/error&amp;gt; - UNIX time stamp date not correct.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid date till&amp;lt;/error&amp;gt; - UNIX time stamp date not correct.&lt;br /&gt;
* &amp;lt;error&amp;gt;Date from is greater than date till&amp;lt;/error&amp;gt; - valid from is greater than valid till.&lt;br /&gt;
* &amp;lt;error&amp;gt;Tariff was not found&amp;lt;/error&amp;gt; - Tariff id is not correct. There is no such Tariff.&lt;br /&gt;
* &amp;lt;error&amp;gt;LCR was not found&amp;lt;/error&amp;gt; - LCR ID is not correct. There is no such LCR.&lt;br /&gt;
* &amp;lt;error&amp;gt;Location was not found&amp;lt;/error&amp;gt; - Location ID is not correct. There is no such Location.&lt;br /&gt;
* &amp;lt;error&amp;gt;Currency was not found&amp;lt;/error&amp;gt; - Currency ID is not correct. There is no such Currency.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Price with TAX&amp;lt;/error&amp;gt; - price is not correct, can not be negative.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
   &amp;lt;status&amp;gt;&lt;br /&gt;
     &amp;lt;error&amp;gt;Invalid solo pinless parameter, should be: 0 or 1&amp;lt;/error&amp;gt;&lt;br /&gt;
   &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API&amp;diff=20315</id>
		<title>MOR API</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API&amp;diff=20315"/>
		<updated>2015-11-11T09:00:17Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:warning.png|100px|alt=&amp;quot;warning&amp;quot;|link=]]&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;IMPORTANT!!! API methods described here are for MOR X6. For previous versions please check appropriate [http://wiki.kolmisoft.com/index.php/MOR_Manual#Old_Manuals manual].&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
[[File:api.png|right|alt=&amp;quot;api&amp;quot;|link=]]&lt;br /&gt;
&amp;lt;mkmeta&amp;gt;Application Program Interface for MOR Class 5 Softswitch&amp;lt;/mkmeta&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=About=&lt;br /&gt;
MOR API lets other software interact with MOR without knowing the internal structure of the database (DB) and other logic.&lt;br /&gt;
&lt;br /&gt;
MOR accepts requests by HTML POST and returns results in XML.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=MOR users that are allowed to use MOR API=&lt;br /&gt;
* Admin&lt;br /&gt;
* Reseller&lt;br /&gt;
* Accountant - only by using Admin Hash and Secret key&lt;br /&gt;
* Simple User&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Functions=&lt;br /&gt;
&lt;br /&gt;
== API Related ==&lt;br /&gt;
* [[API Configuration]] – configuration options for API.&lt;br /&gt;
* [[MOR API hash construction|Hash construction]] – how to construct hash to authenticate data over API.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Balance==&lt;br /&gt;
* [[MOR API user balance update | user_balance_update]] (change_user_balance) – changes User's Balance&lt;br /&gt;
Various methods to retrieve User balance&lt;br /&gt;
* [[MOR API user_balance_get|user_balance_get]] (balance) – retrieves a User Balance.&lt;br /&gt;
* [[Balance in phone | user_simple_balance_get]] (simple_balance) – gets User's Balance&lt;br /&gt;
* [[MOR API user balance get by psw | user_balance_get_by_psw]] – gets User's Balance by his owned Device's Password&lt;br /&gt;
* [[MOR API User Balance get by Username | user_balance_get_by_username]] – gets User's Balance by his owned Device's Username&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Callback==&lt;br /&gt;
* [[MOR API callback init|callback_init]] (callback) – initiates callback.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Calling Cards==&lt;br /&gt;
* [[MOR API card_by_cli_update| card_by_cli_update]] (cc_by_cli) – creates and updates calling cards, including adding and transferring funds, by being identified according the Caller_ID.&lt;br /&gt;
* [[MOR API card_from_group_sell| card_from_group_sell]] (buy_card_from_callingroup) – sells cards from calling card group.&lt;br /&gt;
* [[MOR API card_group_get| card_group_get]] (show_calling_card_group) – show calling group info.&lt;br /&gt;
* [[MOR API card_balance_get| card_balance_get]] (card_balance_get) – show card's balance.&lt;br /&gt;
* [[MOR API card_payment_add| card_payment_add]] – add payment to the calling card.&lt;br /&gt;
* [[MOR_API_Calling_Cards_create| calling_cards_create]] – create Calling Cards.&lt;br /&gt;
* [[MOR_API_Calling_Card_update| calling_card_update]] – update Calling Card.&lt;br /&gt;
* [[MOR_API_Calling_Cards_get| calling_cards_get]] - get Calling Cards.&lt;br /&gt;
* [[MOR_API_Card_Group_create| cc_group_create]] – create Card Group.&lt;br /&gt;
* [[MOR_API_Card_Group_update| cc_group_update]] – update Card Group.&lt;br /&gt;
* [[MOR_API_cc_groups_get| cc_groups_get]] – show Calling Cards Group info.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Calls==&lt;br /&gt;
* [[MOR API user calls get|user_calls_get]] (user_calls) – retrieves a list of calls in a selected time period for a user/device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Conflines==&lt;br /&gt;
* [[MOR API conflines update|conflines_update]] – changes settings for API, Default User or Default Device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Credit notes==&lt;br /&gt;
* [[MOR API credit_notes_get| credit_notes_get]] (credit_notes) – credit notes list.&lt;br /&gt;
* [[MOR API credit_note_update| credit_note_update]] – credit note update.&lt;br /&gt;
* [[MOR API credit_notes_create| credit_note_create]] – credit note create.&lt;br /&gt;
* [[MOR API credit_notes_delete| credit_note_delete]] – credit note delete.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Device==&lt;br /&gt;
* [[MOR API device create| device_create]] – create device&lt;br /&gt;
* [[MOR API device delete| device_delete]] (delete_device) – delete device&lt;br /&gt;
* [[MOR API devices get | devices_get]] (device_list) – users device list&lt;br /&gt;
* [[MOR API device callflow get| device_callflow_get]] - returns information about specified device callflow state.&lt;br /&gt;
* [[MOR API device callflow update | device_callflow_update]] – updates information of specified device callflow state. &lt;br /&gt;
* [[MOR API CLI info get | cli_info_get]] (cli_get_info) – shows id of device where CLI belongs.&lt;br /&gt;
* [[MOR API CLI delete | cli_delete]] – deletes specified CLI. &lt;br /&gt;
* [[MOR API CLI add | cli_add]] – creates CLI and assigns it to the specified device.&lt;br /&gt;
* [[MOR API device clis get | device_clis_get]] – CLIs list by User and/or Device&lt;br /&gt;
* [[MOR API device details get | device_details_get]] – shows all information about specified device.&lt;br /&gt;
* [[MOR_API_device_update | device_update]]  –  updates location_id of selected Device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==DID==&lt;br /&gt;
&lt;br /&gt;
* [[MOR API dids get| dids_get]] – get list of particular DIDs&lt;br /&gt;
* [[MOR API did_create| did_create]] – DID create&lt;br /&gt;
* [[MOR_API_did_device_assign| did_device_assign]] (did_assign_device) – Assign Device to DID&lt;br /&gt;
* [[MOR_API_did_device_unassign| did_device_unassign]] (did_unassign_device) – Unassign Device from DID&lt;br /&gt;
* [[MOR_API_did_details_update| did_details_update]] (did_details_update) – Update DID details &lt;br /&gt;
* [[MOR API did subscription stop|did_subscription_stop]] – STOP DID subscription&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Email==&lt;br /&gt;
* [[MOR API email send| email_send]] (send_email) – send Email.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Financial statements==&lt;br /&gt;
* [[MOR API financial_statements_get| financial_statements_get]] (financial_statements) – financial statements list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Invoices==&lt;br /&gt;
* [[MOR API invoices_get|invoices_get]] (invoices) – retrieves a list of invoices in a selected time period.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Login==&lt;br /&gt;
* [[MOR API user_login|user_login]] (login) – logs user in to MOR.&lt;br /&gt;
* [[MOR API user_logout|user_logout]] (logout) – logs user out from MOR.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Monitorings==&lt;br /&gt;
* [[MOR API ma_activate_api| ma_activate]] – turn on monitorings addon&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Payments==&lt;br /&gt;
* [[MOR API payment_create| payment_create]] (create_payment) – create payment.&lt;br /&gt;
* [[MOR API payments_get| payments_get]] (payments_list) – payments list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Phonebooks==&lt;br /&gt;
* [[MOR API phonebooks_get| phonebooks_get]] (phonebooks_api ) – phonebooks list.&lt;br /&gt;
* [[MOR API phonebook_edit| phonebook_edit]] (phonebook_edit_api) – edit phonebook.&lt;br /&gt;
* [[MOR API phonebook_record_create| phonebook_record_create]]  – create phonebook.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Quickforwards==&lt;br /&gt;
* [[MOR API Quickforwards get| quickforwards_dids_get]] (quickforwards_dids_get) – get Quickforwards.&lt;br /&gt;
* [[MOR API Quickforwards update| quickforwards_did_update]] (quickforwards_did_update) – update Quickforwards.&lt;br /&gt;
* [[MOR API Quickforwards delete| quickforwards_did_delete]] (quickforwards_did_delete) – delete Quickforwards.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Rates==&lt;br /&gt;
* [[MOR API rate get|rate_get]] (rate) – check user rate by prefix&lt;br /&gt;
* [[MOR API tariff rates get| tariff_rates_get]] (get_tariff) – get all tariff's rates&lt;br /&gt;
* [[MOR API tariff_retail_import | tariff_retail_import ]] (import_relail_tariff) – import xml retail tariff&lt;br /&gt;
* [[MOR API tariff_wholesale_update | tariff_wholesale_update ]] (wholesale_tariff) – update or create wholesale tariff&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Services==&lt;br /&gt;
* [[MOR API Service create| service_create]] – create Service.&lt;br /&gt;
* [[MOR API Service delete| service_delete]] – delete Service.&lt;br /&gt;
* [[MOR API Services get| services_get]] – get Services.&lt;br /&gt;
* [[MOR API Service update| service_update]] – update Service.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==SMS==&lt;br /&gt;
* [[MOR API sms send| sms_send]] (send_sms) – send SMS.&lt;br /&gt;
* [[MOR_API_user_sms_service_subscribe | user_sms_service_subscribe ]] – User subscription to SMS Service.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Subscriptions==&lt;br /&gt;
* [[MOR API subscription delete|subscription_delete]] - Subscription delete.&lt;br /&gt;
* [[MOR API Subscriptions get|subscriptions_get]] - Subscriptions get.&lt;br /&gt;
* [[MOR API subscription create|subscription_create]] - Subscription create.&lt;br /&gt;
* [[MOR API subscription update|subscription_update]] - Subscription delete.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==User==&lt;br /&gt;
&lt;br /&gt;
* [[MOR API user_register| user_register]] – create new user from params.&lt;br /&gt;
* [[MOR API user_details_get | user_details_get]] (user_details) – gets user details.&lt;br /&gt;
* [[MOR_API_user_details_update| user_details_update]] (user_update_api) – update user from params.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Resellers ==&lt;br /&gt;
* [[MOR API reseller group create]] - create new Reseller Group&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Version==&lt;br /&gt;
* [[MOR API system version get| system_version_get]] (get_version) – get MOR version number.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
= Examples =&lt;br /&gt;
* [[MOR API PHP Examples]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=HTML POST=&lt;br /&gt;
All requests are in a similar format:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/&amp;lt;function&amp;gt;?u=username&lt;br /&gt;
&lt;br /&gt;
* username - the user name and password of the user who is asking for the data. &lt;br /&gt;
&lt;br /&gt;
If the user has 'admin' rights, he will get more results and  can perform more actions compared to a user who does not have such rights.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Useful to know=&lt;br /&gt;
&lt;br /&gt;
* All API methods returns data straight from database. It means that MOR GUI settings does not affect data, it will be returned as it is saved in database. For example:&lt;br /&gt;
** Value of money will be returned in Default System [[Currencies|Currency]].&lt;br /&gt;
** Date will not be affected of [[Configuration_from_GUI#Visual| Default date format]] setting.&lt;br /&gt;
** Value of money will not be affected of [[Configuration_from_GUI#Visual|Number digits]] setting.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=See also =&lt;br /&gt;
* [[API Configuration]]&lt;br /&gt;
* [[MOR integration]]&lt;br /&gt;
* [[How to block access to some API functions]]&lt;br /&gt;
* [[API specification to be implemented in the future]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_Card_Group_create&amp;diff=20314</id>
		<title>MOR API Card Group create</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_Card_Group_create&amp;diff=20314"/>
		<updated>2015-11-11T08:57:24Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Description=&lt;br /&gt;
[[MOR API]] Card Group create&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* From '''MOR X7''' Calling Card: '''/api/cc_group_create'''&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parameters===&lt;br /&gt;
&lt;br /&gt;
Parameters which are '''included''' into hash:&lt;br /&gt;
&lt;br /&gt;
* name - name of a Card Group '''Required'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Parameters which are '''not included''' into hash:&lt;br /&gt;
&lt;br /&gt;
* '''[[MOR API hash construction | hash]]''' - SHA1 hash constructed using the '''parameters''' which are listed above. Note that the parameters are shown in the same order as they need to be when generating the hash. The last parameter in a row is '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&amp;lt;br&amp;gt;&lt;br /&gt;
* '''u''' - username for authentication. '''Required'''.&lt;br /&gt;
* '''description''' - description for Card Group.&lt;br /&gt;
* '''price_with_vat''' - price with TAX for Card Group.&lt;br /&gt;
* '''setup_fee''' - setup fee for Card Group.&lt;br /&gt;
* '''ghost_min_perc''' - ghost min percent for Card Group.&lt;br /&gt;
* '''daily_charge''' - daily charge for Card Group.&lt;br /&gt;
* '''tariff_id''' - Card Group Tariff ID.&lt;br /&gt;
* '''lcr_id''' - Card Group LCR id.&lt;br /&gt;
* '''date_from''' - Card Group valid from date.&lt;br /&gt;
* '''date_till''' - Card Group valid till date.&lt;br /&gt;
* '''number_length''' - Card Group number length.&lt;br /&gt;
* '''pin_length''' - Card Group pin length.&lt;br /&gt;
* '''dialplan_id''' - Card Group Dialplan ID.&lt;br /&gt;
* '''location_id''' - Card Group Location ID.&lt;br /&gt;
* '''tax_id''' - Card Group TAX ID.&lt;br /&gt;
* '''valid_after_first_use''' - number of days, after which Card Group gets valid.&lt;br /&gt;
* '''ghost_balance_perc''' - Card Group ghost balance percent.&lt;br /&gt;
* '''use_external_function''' - enable or disable use of external script.&lt;br /&gt;
* '''allow_loss_calls''' - Allow Loss Calls for Card Group.&lt;br /&gt;
* '''tell_cents''' - tell cents for Card Group.&lt;br /&gt;
* '''tell_balance_in_currency''' - Card Group Balance/Rate Currency.&lt;br /&gt;
* '''solo_pinless''' - enable or disable solo pinless.&lt;br /&gt;
* '''disable_voucher''' - enable or disable voucher.&lt;br /&gt;
* '''hidden''' - enable or disable hidden status.&lt;br /&gt;
* '''callerid_leave''' - enable or disable Caller ID leave.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have u = admin, API Secret Key = secret&lt;br /&gt;
We send:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/cc_group_create?u=admin&amp;amp;name=card_group_test&amp;amp;hash=7e112ededcfee097cce21b6201c6d2a00dda1f4c&lt;br /&gt;
&lt;br /&gt;
* Now we can find 1 newly created Card Group.'''&amp;lt;br&amp;gt;&lt;br /&gt;
'''* Note that if not passing optional parameters, default values will be used.'''&amp;lt;br&amp;gt;&lt;br /&gt;
'''* Note that a Username and a Password are not included into hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Returns===&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
   &amp;lt;status&amp;gt;&lt;br /&gt;
     &amp;lt;success&amp;gt;Card Group was successfully created&amp;lt;/success&amp;gt;&lt;br /&gt;
   &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Errors'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; - User is not authorized or is a Simple User. Only Admin, Reseller or Accounant can use this API method. &lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; - hash is not correct. Check API_Secret_Key and order or parameters while concatenating a hash_string.&lt;br /&gt;
* &amp;lt;error&amp;gt;You are not authorized to use this functionality&amp;lt;/error&amp;gt; - User has no permissions to manage Calling Cards.  &lt;br /&gt;
* &amp;lt;error&amp;gt;Card Group must have name&amp;lt;/error&amp;gt; - Card Group name is not given. Name is required parameter.&lt;br /&gt;
* &amp;lt;error&amp;gt;Use external function is incorrect format&amp;lt;/error&amp;gt; - use external script parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Allow loss calls is incorrect format&amp;lt;/error&amp;gt; - allow loss calls parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Tell cents is incorrect format&amp;lt;/error&amp;gt; - tell cents parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Solo pinless is incorrect format&amp;lt;/error&amp;gt; - solo pinless parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Disable voucher is incorrect format&amp;lt;/error&amp;gt; - voucher parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Hidden is incorrect format&amp;lt;/error&amp;gt; - hidden parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Callerid leave is incorrect format&amp;lt;/error&amp;gt; - Caller ID leave parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid date from&amp;lt;/error&amp;gt; - UNIX time stamp date not correct.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid date till&amp;lt;/error&amp;gt; - UNIX time stamp date not correct.&lt;br /&gt;
* &amp;lt;error&amp;gt;Date from is greater than date till&amp;lt;/error&amp;gt; - valid from is greater than valid till.&lt;br /&gt;
* &amp;lt;error&amp;gt;Tariff was not found&amp;lt;/error&amp;gt; - Tariff id is not correct. There is no such Tariff.&lt;br /&gt;
* &amp;lt;error&amp;gt;LCR was not found&amp;lt;/error&amp;gt; - LCR ID is not correct. There is no such LCR.&lt;br /&gt;
* &amp;lt;error&amp;gt;Dialplan was not found&amp;lt;/error&amp;gt; - Dialplan ID is not correct. There is no such Dialplan.&lt;br /&gt;
* &amp;lt;error&amp;gt;Location was not found&amp;lt;/error&amp;gt; - Location ID is not correct. There is no such Location.&lt;br /&gt;
* &amp;lt;error&amp;gt;Currency was not found&amp;lt;/error&amp;gt; - Currency ID is not correct. There is no such Currency.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Price with TAX&amp;lt;/error&amp;gt; - price is not correct, can not be negative.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
   &amp;lt;status&amp;gt;&lt;br /&gt;
     &amp;lt;error&amp;gt;Invalid solo pinless parameter, should be: 0 or 1&amp;lt;/error&amp;gt;&lt;br /&gt;
   &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_Card_Group_create&amp;diff=20312</id>
		<title>MOR API Card Group create</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_Card_Group_create&amp;diff=20312"/>
		<updated>2015-11-11T08:37:37Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Description=&lt;br /&gt;
[[MOR API]] Card Group create&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* From '''MOR X7''' Calling Card: '''/api/cc_group_create'''&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parameters===&lt;br /&gt;
&lt;br /&gt;
Parameters which are '''included''' into hash:&lt;br /&gt;
&lt;br /&gt;
* name - name of a Card Group '''Required'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Parameters which are '''not included''' into hash:&lt;br /&gt;
&lt;br /&gt;
* '''[[MOR API hash construction | hash]]''' - SHA1 hash constructed using the '''parameters''' which are listed above. Note that the parameters are shown in the same order as they need to be when generating the hash. The last parameter in a row is '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&amp;lt;br&amp;gt;&lt;br /&gt;
* '''u''' - username for authentication. '''Required'''.&lt;br /&gt;
* '''description''' - description for Card Group.&lt;br /&gt;
* '''price_with_vat''' - price with TAX for Card Group.&lt;br /&gt;
* '''setup_fee''' - setup fee for Card Group.&lt;br /&gt;
* '''ghost_min_perc''' - ghost min percent for Card Group.&lt;br /&gt;
* '''daily_charge''' - daily charge for Card Group.&lt;br /&gt;
* '''tariff_id''' - Card Group tariff id.&lt;br /&gt;
* '''lcr_id''' - Card Group lcr id.&lt;br /&gt;
* '''date_from''' - Card Group valid from date.&lt;br /&gt;
* '''date_till''' - Card Group valid till date.&lt;br /&gt;
* '''number_length''' - Card Group number length.&lt;br /&gt;
* '''pin_length''' - Card Group pin length.&lt;br /&gt;
* '''dialplan_id''' - Card Group dial plan id.&lt;br /&gt;
* '''location_id''' - Card Group location id.&lt;br /&gt;
* '''tax_id''' - Card Group tax id.&lt;br /&gt;
* '''valid_after_first_use''' - number of days, after which Card Group gets valid.&lt;br /&gt;
* '''ghost_balance_perc''' - Card Group ghost balance percent.&lt;br /&gt;
* '''use_external_function''' - enable or disable use of external script;&lt;br /&gt;
* '''allow_loss_calls''' - Allow Loss Calls for Card Group.&lt;br /&gt;
* '''tell_cents''' - tell cents for Card Group.&lt;br /&gt;
* '''tell_balance_in_currency''' - Card Group Balance/Rate Currency.&lt;br /&gt;
* '''solo_pinless''' - enable or disable solo pinless.&lt;br /&gt;
* '''disable_voucher''' - enable or disable voucher.&lt;br /&gt;
* '''hidden''' - enable or disable hidden status.&lt;br /&gt;
* '''callerid_leave''' - enable or disable caller id leave.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have u = admin, API Secret Key = secret&lt;br /&gt;
We send:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/cc_group_create?u=admin&amp;amp;name=card_group_test&amp;amp;hash=7e112ededcfee097cce21b6201c6d2a00dda1f4c&lt;br /&gt;
&lt;br /&gt;
* Now we can find 1 newly created Card Group.'''&amp;lt;br&amp;gt;&lt;br /&gt;
'''* Note that if not passing optional parameters, default values will be used.'''&amp;lt;br&amp;gt;&lt;br /&gt;
'''* Note that a Username and a Password are not included into hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Returns===&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
   &amp;lt;status&amp;gt;&lt;br /&gt;
     &amp;lt;success&amp;gt;Card Group was successfully created&amp;lt;/success&amp;gt;&lt;br /&gt;
   &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Errors'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; - User is not authorized or is a Simple User. Only Admin, Reseller or Accounant can use this API method. &lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; - hash is not correct. Check API_Secret_Key and order or parameters while concatenating a hash_string.&lt;br /&gt;
* &amp;lt;error&amp;gt;You are not authorized to use this functionality&amp;lt;/error&amp;gt; - User has no permissions to manage Calling Cards. &lt;br /&gt;
* &amp;lt;error&amp;gt;Bad login&amp;lt;/error&amp;gt; - User is not authorized (possibly wrong Username). &lt;br /&gt;
* &amp;lt;error&amp;gt;Card Group must have name&amp;lt;/error&amp;gt; - Card Group name is not given. Name is requered parameter.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid use external function parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - use external script parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid allow loss calls parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - allow loss calls parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid tell cents parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - tell cents parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid solo pinless parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - solo pinless parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid disable voucher parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - voucher parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid hidden parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - hidden parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid callerid leave parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - caller id leave parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid date from&amp;lt;/error&amp;gt; - unix time stamp date not correct.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid date till&amp;lt;/error&amp;gt; - unix time stamp date not correct.&lt;br /&gt;
* &amp;lt;error&amp;gt;Date from is greater than date till&amp;lt;/error&amp;gt; - valid from is greater than valid till.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Tariff id&amp;lt;/error&amp;gt; - Tariff id is not correct. There is no such Tariff.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Lcr id&amp;lt;/error&amp;gt; - Lcr id is not correct. There is no such Lcr.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Dialplan id&amp;lt;/error&amp;gt; - Dialplan id is not correct. There is no such Dialplan.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Location id&amp;lt;/error&amp;gt; - Location id is not correct. There is no such Location.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Currency&amp;lt;/error&amp;gt; - Currency id is not correct. There is no such Currency.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Price with TAX&amp;lt;/error&amp;gt; - price is not correct, can not be negative.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
   &amp;lt;status&amp;gt;&lt;br /&gt;
     &amp;lt;error&amp;gt;Invalid solo pinless parameter, should be: 0 or 1&amp;lt;/error&amp;gt;&lt;br /&gt;
   &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API&amp;diff=20309</id>
		<title>MOR API</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API&amp;diff=20309"/>
		<updated>2015-11-06T10:32:22Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: /* Calling Cards */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:warning.png|100px|alt=&amp;quot;warning&amp;quot;|link=]]&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;IMPORTANT!!! API methods described here are for MOR X6. For previous versions please check appropriate [http://wiki.kolmisoft.com/index.php/MOR_Manual#Old_Manuals manual].&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
[[File:api.png|right|alt=&amp;quot;api&amp;quot;|link=]]&lt;br /&gt;
&amp;lt;mkmeta&amp;gt;Application Program Interface for MOR Class 5 Softswitch&amp;lt;/mkmeta&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=About=&lt;br /&gt;
MOR API lets other software interact with MOR without knowing the internal structure of the database (DB) and other logic.&lt;br /&gt;
&lt;br /&gt;
MOR accepts requests by HTML POST and returns results in XML.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=MOR users that are allowed to use MOR API=&lt;br /&gt;
* Admin&lt;br /&gt;
* Reseller&lt;br /&gt;
* Accountant - only by using Admin Hash and Secret key&lt;br /&gt;
* Simple User&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Functions=&lt;br /&gt;
&lt;br /&gt;
== API Related ==&lt;br /&gt;
* [[API Configuration]] – configuration options for API.&lt;br /&gt;
* [[MOR API hash construction|Hash construction]] – how to construct hash to authenticate data over API.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Balance==&lt;br /&gt;
* [[MOR API user balance update | user_balance_update]] (change_user_balance) – changes User's Balance&lt;br /&gt;
Various methods to retrieve User balance&lt;br /&gt;
* [[MOR API user_balance_get|user_balance_get]] (balance) – retrieves a User Balance.&lt;br /&gt;
* [[Balance in phone | user_simple_balance_get]] (simple_balance) – gets User's Balance&lt;br /&gt;
* [[MOR API user balance get by psw | user_balance_get_by_psw]] – gets User's Balance by his owned Device's Password&lt;br /&gt;
* [[MOR API User Balance get by Username | user_balance_get_by_username]] – gets User's Balance by his owned Device's Username&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Callback==&lt;br /&gt;
* [[MOR API callback init|callback_init]] (callback) – initiates callback.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Calling Cards==&lt;br /&gt;
* [[MOR API card_by_cli_update| card_by_cli_update]] (cc_by_cli) – creates and updates calling cards, including adding and transferring funds, by being identified according the Caller_ID.&lt;br /&gt;
* [[MOR API card_from_group_sell| card_from_group_sell]] (buy_card_from_callingroup) – sells cards from calling card group.&lt;br /&gt;
* [[MOR API card_group_get| card_group_get]] (show_calling_card_group) – show calling group info.&lt;br /&gt;
* [[MOR API card_balance_get| card_balance_get]] (card_balance_get) – show card's balance.&lt;br /&gt;
* [[MOR API card_payment_add| card_payment_add]] – add payment to the calling card.&lt;br /&gt;
* [[MOR_API_Calling_Cards_create| calling_cards_create]] – create Calling Cards.&lt;br /&gt;
* [[MOR_API_cc_groups_get| cc_groups_get]] – show Calling Cards Group info.&lt;br /&gt;
* [[MOR_API_Calling_Card_update| calling_card_update]] – update Calling Card.&lt;br /&gt;
* [[MOR_API_Card_Group_create| cc_group_create]] – create Card Group.&lt;br /&gt;
* [[MOR_API_Calling_Cards_get| calling_cards_get]] - get Calling Cards.&lt;br /&gt;
* [[MOR_API_Card_Group_update| cc_group_update]] – update Card Group.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Calls==&lt;br /&gt;
* [[MOR API user calls get|user_calls_get]] (user_calls) – retrieves a list of calls in a selected time period for a user/device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Conflines==&lt;br /&gt;
* [[MOR API conflines update|conflines_update]] – changes settings for API, Default User or Default Device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Credit notes==&lt;br /&gt;
* [[MOR API credit_notes_get| credit_notes_get]] (credit_notes) – credit notes list.&lt;br /&gt;
* [[MOR API credit_note_update| credit_note_update]] – credit note update.&lt;br /&gt;
* [[MOR API credit_notes_create| credit_note_create]] – credit note create.&lt;br /&gt;
* [[MOR API credit_notes_delete| credit_note_delete]] – credit note delete.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Device==&lt;br /&gt;
* [[MOR API device create| device_create]] – create device&lt;br /&gt;
* [[MOR API device delete| device_delete]] (delete_device) – delete device&lt;br /&gt;
* [[MOR API devices get | devices_get]] (device_list) – users device list&lt;br /&gt;
* [[MOR API device callflow get| device_callflow_get]] - returns information about specified device callflow state.&lt;br /&gt;
* [[MOR API device callflow update | device_callflow_update]] – updates information of specified device callflow state. &lt;br /&gt;
* [[MOR API CLI info get | cli_info_get]] (cli_get_info) – shows id of device where CLI belongs.&lt;br /&gt;
* [[MOR API CLI delete | cli_delete]] – deletes specified CLI. &lt;br /&gt;
* [[MOR API CLI add | cli_add]] – creates CLI and assigns it to the specified device.&lt;br /&gt;
* [[MOR API device clis get | device_clis_get]] – CLIs list by User and/or Device&lt;br /&gt;
* [[MOR API device details get | device_details_get]] – shows all information about specified device.&lt;br /&gt;
* [[MOR_API_device_update | device_update]]  –  updates location_id of selected Device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==DID==&lt;br /&gt;
&lt;br /&gt;
* [[MOR API dids get| dids_get]] – get list of particular DIDs&lt;br /&gt;
* [[MOR API did_create| did_create]] – DID create&lt;br /&gt;
* [[MOR_API_did_device_assign| did_device_assign]] (did_assign_device) – Assign Device to DID&lt;br /&gt;
* [[MOR_API_did_device_unassign| did_device_unassign]] (did_unassign_device) – Unassign Device from DID&lt;br /&gt;
* [[MOR_API_did_details_update| did_details_update]] (did_details_update) – Update DID details &lt;br /&gt;
* [[MOR API did subscription stop|did_subscription_stop]] – STOP DID subscription&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Email==&lt;br /&gt;
* [[MOR API email send| email_send]] (send_email) – send Email.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Financial statements==&lt;br /&gt;
* [[MOR API financial_statements_get| financial_statements_get]] (financial_statements) – financial statements list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Invoices==&lt;br /&gt;
* [[MOR API invoices_get|invoices_get]] (invoices) – retrieves a list of invoices in a selected time period.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Login==&lt;br /&gt;
* [[MOR API user_login|user_login]] (login) – logs user in to MOR.&lt;br /&gt;
* [[MOR API user_logout|user_logout]] (logout) – logs user out from MOR.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Monitorings==&lt;br /&gt;
* [[MOR API ma_activate_api| ma_activate]] – turn on monitorings addon&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Payments==&lt;br /&gt;
* [[MOR API payment_create| payment_create]] (create_payment) – create payment.&lt;br /&gt;
* [[MOR API payments_get| payments_get]] (payments_list) – payments list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Phonebooks==&lt;br /&gt;
* [[MOR API phonebooks_get| phonebooks_get]] (phonebooks_api ) – phonebooks list.&lt;br /&gt;
* [[MOR API phonebook_edit| phonebook_edit]] (phonebook_edit_api) – edit phonebook.&lt;br /&gt;
* [[MOR API phonebook_record_create| phonebook_record_create]]  – create phonebook.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Quickforwards==&lt;br /&gt;
* [[MOR API Quickforwards get| quickforwards_dids_get]] (quickforwards_dids_get) – get Quickforwards.&lt;br /&gt;
* [[MOR API Quickforwards update| quickforwards_did_update]] (quickforwards_did_update) – update Quickforwards.&lt;br /&gt;
* [[MOR API Quickforwards delete| quickforwards_did_delete]] (quickforwards_did_delete) – delete Quickforwards.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Rates==&lt;br /&gt;
* [[MOR API rate get|rate_get]] (rate) – check user rate by prefix&lt;br /&gt;
* [[MOR API tariff rates get| tariff_rates_get]] (get_tariff) – get all tariff's rates&lt;br /&gt;
* [[MOR API tariff_retail_import | tariff_retail_import ]] (import_relail_tariff) – import xml retail tariff&lt;br /&gt;
* [[MOR API tariff_wholesale_update | tariff_wholesale_update ]] (wholesale_tariff) – update or create wholesale tariff&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Services==&lt;br /&gt;
* [[MOR API Service create| service_create]] – create Service.&lt;br /&gt;
* [[MOR API Service delete| service_delete]] – delete Service.&lt;br /&gt;
* [[MOR API Services get| services_get]] – get Services.&lt;br /&gt;
* [[MOR API Service update| service_update]] – update Service.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==SMS==&lt;br /&gt;
* [[MOR API sms send| sms_send]] (send_sms) – send SMS.&lt;br /&gt;
* [[MOR_API_user_sms_service_subscribe | user_sms_service_subscribe ]] – User subscription to SMS Service.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Subscriptions==&lt;br /&gt;
* [[MOR API subscription delete|subscription_delete]] - Subscription delete.&lt;br /&gt;
* [[MOR API Subscriptions get|subscriptions_get]] - Subscriptions get.&lt;br /&gt;
* [[MOR API subscription create|subscription_create]] - Subscription create.&lt;br /&gt;
* [[MOR API subscription update|subscription_update]] - Subscription delete.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==User==&lt;br /&gt;
&lt;br /&gt;
* [[MOR API user_register| user_register]] – create new user from params.&lt;br /&gt;
* [[MOR API user_details_get | user_details_get]] (user_details) – gets user details.&lt;br /&gt;
* [[MOR_API_user_details_update| user_details_update]] (user_update_api) – update user from params.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Resellers ==&lt;br /&gt;
* [[MOR API reseller group create]] - create new Reseller Group&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Version==&lt;br /&gt;
* [[MOR API system version get| system_version_get]] (get_version) – get MOR version number.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
= Examples =&lt;br /&gt;
* [[MOR API PHP Examples]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=HTML POST=&lt;br /&gt;
All requests are in a similar format:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/&amp;lt;function&amp;gt;?u=username&lt;br /&gt;
&lt;br /&gt;
* username - the user name and password of the user who is asking for the data. &lt;br /&gt;
&lt;br /&gt;
If the user has 'admin' rights, he will get more results and  can perform more actions compared to a user who does not have such rights.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Useful to know=&lt;br /&gt;
&lt;br /&gt;
* All API methods returns data straight from database. It means that MOR GUI settings does not affect data, it will be returned as it is saved in database. For example:&lt;br /&gt;
** Value of money will be returned in Default System [[Currencies|Currency]].&lt;br /&gt;
** Date will not be affected of [[Configuration_from_GUI#Visual| Default date format]] setting.&lt;br /&gt;
** Value of money will not be affected of [[Configuration_from_GUI#Visual|Number digits]] setting.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=See also =&lt;br /&gt;
* [[API Configuration]]&lt;br /&gt;
* [[MOR integration]]&lt;br /&gt;
* [[How to block access to some API functions]]&lt;br /&gt;
* [[API specification to be implemented in the future]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_Card_Group_update&amp;diff=20308</id>
		<title>MOR API Card Group update</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_Card_Group_update&amp;diff=20308"/>
		<updated>2015-11-06T10:31:19Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: Created page with '=Description= MOR API Card Group update &amp;lt;br&amp;gt;&amp;lt;br&amp;gt; =Usage=  * From '''MOR X7''' Calling Card: '''/api/cc_group_update''' * Methods: POST, GET(if allowed, not recomended) &amp;lt;br&amp;gt;&amp;lt;b…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Description=&lt;br /&gt;
[[MOR API]] Card Group update&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* From '''MOR X7''' Calling Card: '''/api/cc_group_update'''&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parameters===&lt;br /&gt;
&lt;br /&gt;
Parameters which are '''included''' into hash:&lt;br /&gt;
&lt;br /&gt;
* cc_Group_id - id of a Card Group '''Required'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Parameters which are '''not included''' into hash:&lt;br /&gt;
&lt;br /&gt;
* '''[[MOR API hash construction | hash]]''' - SHA1 hash constructed using the '''parameters''' which are listed above. Note that the parameters are shown in the same order as they need to be when generating the hash. The last parameter in a row is '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&amp;lt;br&amp;gt;&lt;br /&gt;
* '''u''' - username for authentication. '''Required'''.&lt;br /&gt;
* '''description''' - description for Card Group.&lt;br /&gt;
* '''price_with_vat''' - price with TAX for Card Group.&lt;br /&gt;
* '''setup_fee''' - setup fee for Card Group.&lt;br /&gt;
* '''ghost_min_perc''' - ghost min percent for Card Group.&lt;br /&gt;
* '''daily_charge''' - daily charge for Card Group.&lt;br /&gt;
* '''tariff_id''' - Card Group tariff id.&lt;br /&gt;
* '''lcr_id''' - Card Group lcr id.&lt;br /&gt;
* '''date_from''' - Card Group valid from date.&lt;br /&gt;
* '''date_till''' - Card Group valid till date.&lt;br /&gt;
* '''dialplan_id''' - Card Group dial plan id.&lt;br /&gt;
* '''location_id''' - Card Group location id.&lt;br /&gt;
* '''tax_id''' - Card Group tax id.&lt;br /&gt;
* '''valid_after_first_use''' - number of days, after which Card Group gets valid.&lt;br /&gt;
* '''ghost_balance_perc''' - Card Group ghost balance percent.&lt;br /&gt;
* '''use_external_function''' - enable or disable use of external script;&lt;br /&gt;
* '''allow_loss_calls''' - Allow Loss Calls for Card Group.&lt;br /&gt;
* '''tell_cents''' - tell cents for Card Group.&lt;br /&gt;
* '''tell_balance_in_currency''' - Card Group Balance/Rate Currency.&lt;br /&gt;
* '''solo_pinless''' - enable or disable solo pinless.&lt;br /&gt;
* '''disable_voucher''' - enable or disable voucher.&lt;br /&gt;
* '''hidden''' - enable or disable hidden status.&lt;br /&gt;
* '''callerid_leave''' - enable or disable caller id leave.&lt;br /&gt;
* '''name''' - name of Card Group.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have u = admin, API Secret Key = secret&lt;br /&gt;
We send:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/cc_group_update?u=admin&amp;amp;cc_Group_id=1&amp;amp;hash=7e112ededcfee097cce21b6201c6d2a00dda1f4c&lt;br /&gt;
&lt;br /&gt;
* Now we can find 1 updated Card Group.'''&amp;lt;br&amp;gt;&lt;br /&gt;
'''* Note that a Username and a Password are not included into hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Returns===&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
   &amp;lt;status&amp;gt;&lt;br /&gt;
     &amp;lt;success&amp;gt;Card Group was successfully updated&amp;lt;/success&amp;gt;&lt;br /&gt;
   &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Errors'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; - User is not authorized or is a Simple User. Only Admin, Reseller or Accounant can use this API method. &lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; - hash is not correct. Check API_Secret_Key and order or parameters while concatenating a hash_string.&lt;br /&gt;
* &amp;lt;error&amp;gt;You are not authorized to use this functionality&amp;lt;/error&amp;gt; - User has no permissions to manage Calling Cards. &lt;br /&gt;
* &amp;lt;error&amp;gt;Bad login&amp;lt;/error&amp;gt; - User is not authorized (possibly wrong Username). &lt;br /&gt;
* &amp;lt;error&amp;gt;Wrong Card Group ID&amp;lt;/error&amp;gt; - cc_Group_id is not a number.&lt;br /&gt;
* &amp;lt;error&amp;gt;Card Group not found&amp;lt;/error&amp;gt; - there is no such Card Group, wrong cc_Group_id.&lt;br /&gt;
* &amp;lt;error&amp;gt;Tax not found&amp;lt;/error&amp;gt; - there is no such Tax, wrong tax_id.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Price with TAX&amp;lt;/error&amp;gt; - wrong price with TAX for Card Group.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Currency&amp;lt;/error&amp;gt; - Currency id is not correct. There is no such Currency.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Tariff id&amp;lt;/error&amp;gt; - Tariff id is not correct. There is no such Tariff.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Lcr id&amp;lt;/error&amp;gt; - Lcr id is not correct. There is no such Lcr.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Dialplan id&amp;lt;/error&amp;gt; - Dialplan id is not correct. There is no such Dialplan.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Location id&amp;lt;/error&amp;gt; - Location id is not correct. There is no such Location.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid date from&amp;lt;/error&amp;gt; - unix time stamp date not correct.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid date till&amp;lt;/error&amp;gt; - unix time stamp date not correct.&lt;br /&gt;
* &amp;lt;error&amp;gt;Date from is greater than date till&amp;lt;/error&amp;gt; - valid from is greater than valid till.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid use external function parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - use external script parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid allow loss calls parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - allow loss calls parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid tell cents parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - tell cents parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid solo pinless parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - solo pinless parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid disable voucher parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - voucher parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid hidden parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - hidden parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid callerid leave parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - caller id leave parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
   &amp;lt;status&amp;gt;&lt;br /&gt;
     &amp;lt;error&amp;gt;Invalid Price with TAX&amp;lt;/error&amp;gt;&lt;br /&gt;
   &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_Calling_Cards_create&amp;diff=20307</id>
		<title>MOR API Calling Cards create</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_Calling_Cards_create&amp;diff=20307"/>
		<updated>2015-11-05T14:38:15Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Description=&lt;br /&gt;
[[MOR API]] Calling Cards create&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* Call: /api/calling_cards_create '''(from MOR X7)'''&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parameters===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Parameters which are '''included''' into hash:&lt;br /&gt;
&lt;br /&gt;
* card_group_id - id of a Card Group '''Required'''.&lt;br /&gt;
* cards_from - Cards' (to be created) number range beginning '''Required'''.&lt;br /&gt;
* cards_till - Cards' (to be created) number range ending '''Required'''.&lt;br /&gt;
&lt;br /&gt;
'''* Note that cards_from &amp;lt;= cards_till. Both of the previous parameters are 10-digit-long integers.'''&amp;lt;br&amp;gt;&lt;br /&gt;
'''* Note that the parameters are shown in the same order as they need to be when generating the hash. The last parameter in a row is an API_Secret_Key.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Parameters which are '''not included''' into hash:&lt;br /&gt;
&lt;br /&gt;
* '''[[MOR API hash construction | hash]]''' - SHA1 hash constructed using the '''parameters''' which are listed above. Note that the parameters are shown in the same order as they need to be when generating the hash. The last parameter in a row is '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&amp;lt;br&amp;gt;&lt;br /&gt;
* '''u''' - username for authentication. '''Required'''.&lt;br /&gt;
* batch_number - batch number for the Calling Cards.&lt;br /&gt;
* min_balance - minimum balance for the Calling Cards.&lt;br /&gt;
* distributor_id - Calling Cards' distributor's (User's) id.&lt;br /&gt;
* language - Language for the Calling Cards.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have u = admin, API Secret Key = secret&lt;br /&gt;
&lt;br /&gt;
We send:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/calling_cards_create?u=admin&amp;amp;card_group_id=1&amp;amp;cards_from=1000000025&amp;amp;cards_till=1000000035&amp;amp;batch_number=50&amp;amp;&lt;br /&gt;
 min_balance=15&amp;amp;language=en&amp;amp;distributor_id=2&amp;amp;hash=7e112ededcfee097cce21b6201c6d2a00dda1f4c&lt;br /&gt;
&lt;br /&gt;
* Now we can find 11 newly created Calling Cards (number range: 1000000025-1000000035) in the Card Group's (id = 1) Cards' list.'''&amp;lt;br&amp;gt;&lt;br /&gt;
'''* Note that some Calling Cards may fail on creation if a given range overlaps with already existing Cards in a Card Group.'''&amp;lt;br&amp;gt;&lt;br /&gt;
'''* Note that passing invalid optional parameters will not be notified. Default values will be used instead.'''&amp;lt;br&amp;gt;&lt;br /&gt;
'''* Note that a Username and a Password are not included into hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
   &amp;lt;status&amp;gt;&lt;br /&gt;
     &amp;lt;success&amp;gt;Cards created: 11/11&amp;lt;/success&amp;gt;&lt;br /&gt;
   &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Errors'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; - User is not authorized or is a Simple User. Only Admin, Reseller or Accounant can use this API method. &lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; - hash is not correct. Check API_Secret_Key and order or parameters while concatenating a hash_string.&lt;br /&gt;
* &amp;lt;error&amp;gt;You are not authorized to use this functionality&amp;lt;/error&amp;gt; - User has no permissions to manage Calling Cards.&lt;br /&gt;
* &amp;lt;error&amp;gt;Card Group was not found&amp;lt;/error&amp;gt; - Card Group under a given id does not exist or a card_group_id parameter is missing from the API parameters' list.&lt;br /&gt;
* &amp;lt;error&amp;gt;Cards from was not found&amp;lt;/error&amp;gt; - required cards_from parameter is missing.&lt;br /&gt;
* &amp;lt;error&amp;gt;Cards till was not found&amp;lt;/error&amp;gt; - required cards_till parameter is missing. &lt;br /&gt;
* &amp;lt;error&amp;gt;Cards from is in incorrect format&amp;lt;/error&amp;gt; - cards_from parameter's value is not numeric or is not 10-digit-long. &lt;br /&gt;
* &amp;lt;error&amp;gt;Cards till is in incorrect format&amp;lt;/error&amp;gt; - cards_till parameter's value is not numeric or is not 10-digit-long. &lt;br /&gt;
* &amp;lt;error&amp;gt;Cards from must not be greater than Cards till&amp;lt;/error&amp;gt; - cards_from parameter's value must not be grater than cards_till parameter's value. No proper Cards' number range is possible.&lt;br /&gt;
* &amp;lt;error&amp;gt;PIN is too short for this interval&amp;lt;/error&amp;gt; - Card Group does not provide enough PIN codes for a given Cards' number range. &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
   &amp;lt;status&amp;gt;&lt;br /&gt;
     &amp;lt;error&amp;gt;Cards from must not be greater than Cards till&amp;lt;/error&amp;gt;&lt;br /&gt;
   &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_Calling_Cards_get&amp;diff=20306</id>
		<title>MOR API Calling Cards get</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_Calling_Cards_get&amp;diff=20306"/>
		<updated>2015-11-05T14:37:54Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Description=&lt;br /&gt;
[[MOR API]] Returns the list of Calling Cards with respect to provided search parameters. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* Call: /api/calling_cards_get '''(from MOR X7)'''&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parameters===&lt;br /&gt;
&lt;br /&gt;
* '''[[MOR API hash construction | hash]]''' - SHA1 hash constructed using the required '''parameters''' (in this case none of the parameters is required). The hash will contain only an '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&amp;lt;br&amp;gt;&lt;br /&gt;
* '''u''' - username for authentication. '''Required'''.&lt;br /&gt;
* number - Calling Card's number.&lt;br /&gt;
* name - Calling Card's name&lt;br /&gt;
* pin - Calling Card's PIN code.&lt;br /&gt;
* batch_number - Calling Card's batch number.&lt;br /&gt;
* min_balance - lower boundary of the Calling Card's balance range.&lt;br /&gt;
* max_balance - upper boundary of the Calling Card's balance range.&lt;br /&gt;
* callerid - Calling Card's CallerID for &amp;quot;pinless&amp;quot; dialing.&lt;br /&gt;
* language - Calling Card's language.&lt;br /&gt;
* sold - determines whether a Calling Card is sold or not (yes|no 1|0).&lt;br /&gt;
* distributor - Calling Card's distributor's (User's) id.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have u = admin, API Secret Key = secret&lt;br /&gt;
&lt;br /&gt;
We send:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/calling_cards_get?u=admin&amp;amp;number=1111111119&amp;amp;name=test_card&amp;amp;pin=2668&amp;amp;min_balance=10&amp;amp;max_balance=50&amp;amp;language=en&amp;amp;callerid=3&amp;amp;sold=0&amp;amp;distributor=2&amp;amp;hash=e5e9fa1ba31ecd1ae84f75caaa474f3a663f05f4&lt;br /&gt;
&lt;br /&gt;
* Now we get a search result containing the Calling Cards with the specified attributes data.&amp;lt;br&amp;gt;&lt;br /&gt;
'''* Note that a Username and a Password are not included into hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
   &amp;lt;cards&amp;gt;&lt;br /&gt;
     &amp;lt;card&amp;gt;&lt;br /&gt;
       &amp;lt;card_id&amp;gt;26&amp;lt;/card_id&amp;gt;&lt;br /&gt;
       &amp;lt;card_number&amp;gt;1111111119&amp;lt;/card_number&amp;gt;&lt;br /&gt;
       &amp;lt;card_name&amp;gt;test_card&amp;lt;/card_name&amp;gt;&lt;br /&gt;
       &amp;lt;card_pin&amp;gt;2668&amp;lt;/card_pin&amp;gt;&lt;br /&gt;
       &amp;lt;card_batch_number&amp;gt;5&amp;lt;/card_batch_number&amp;gt;&lt;br /&gt;
       &amp;lt;card_callerid&amp;gt;3&amp;lt;/card_callerid&amp;gt;&lt;br /&gt;
       &amp;lt;card_balance&amp;gt;10.0840336134454&amp;lt;/card_balance&amp;gt;&lt;br /&gt;
       &amp;lt;card_minimal_balance&amp;gt;20.0&amp;lt;/card_minimal_balance&amp;gt;&lt;br /&gt;
       &amp;lt;card_first_use/&amp;gt;&lt;br /&gt;
       &amp;lt;card_daily_charge_paid_till&amp;gt;2015-11-05 02:00:00 +0200&amp;lt;/card_daily_charge_paid_till&amp;gt;&lt;br /&gt;
       &amp;lt;card_sold&amp;gt;0&amp;lt;/card_sold&amp;gt;&lt;br /&gt;
       &amp;lt;card_language&amp;gt;en&amp;lt;/card_language&amp;gt;&lt;br /&gt;
       &amp;lt;card_distributor&amp;gt;Test User #1&amp;lt;/card_distributor&amp;gt;&lt;br /&gt;
     &amp;lt;/card&amp;gt;&lt;br /&gt;
   &amp;lt;/cards&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Errors'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; - User is not authorized or is a Simple User. Only Admin, Reseller or Accounant can use this API method. &lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; - hash is not correct. Check API_Secret_Key and order or parameters while concatenating a hash_string.&lt;br /&gt;
* &amp;lt;error&amp;gt;You are not authorized to use this functionality&amp;lt;/error&amp;gt; - User has no permissions to manage Calling Cards.&lt;br /&gt;
* &amp;lt;error&amp;gt;Cards were not found&amp;lt;/error&amp;gt; - no Cards were found with provided search parameters.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
   &amp;lt;status&amp;gt;&lt;br /&gt;
     &amp;lt;error&amp;gt;Cards were not found&amp;lt;/error&amp;gt;&lt;br /&gt;
   &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_Calling_Cards_get&amp;diff=20305</id>
		<title>MOR API Calling Cards get</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_Calling_Cards_get&amp;diff=20305"/>
		<updated>2015-11-05T14:36:17Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Description=&lt;br /&gt;
[[MOR API]] Returns the list of Calling Cards with respect to provided search parameters. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* Call: /api/calling_cards_get&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parameters===&lt;br /&gt;
&lt;br /&gt;
* '''[[MOR API hash construction | hash]]''' - SHA1 hash constructed using the required '''parameters''' (in this case none of the parameters is required). The hash will contain only an '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&amp;lt;br&amp;gt;&lt;br /&gt;
* '''u''' - username for authentication. '''Required'''.&lt;br /&gt;
* number - Calling Card's number.&lt;br /&gt;
* name - Calling Card's name&lt;br /&gt;
* pin - Calling Card's PIN code.&lt;br /&gt;
* batch_number - Calling Card's batch number.&lt;br /&gt;
* min_balance - lower boundary of the Calling Card's balance range.&lt;br /&gt;
* max_balance - upper boundary of the Calling Card's balance range.&lt;br /&gt;
* callerid - Calling Card's CallerID for &amp;quot;pinless&amp;quot; dialing.&lt;br /&gt;
* language - Calling Card's language.&lt;br /&gt;
* sold - determines whether a Calling Card is sold or not (yes|no 1|0).&lt;br /&gt;
* distributor - Calling Card's distributor's (User's) id.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have u = admin, API Secret Key = secret&lt;br /&gt;
&lt;br /&gt;
We send:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/calling_cards_get?u=admin&amp;amp;number=1111111119&amp;amp;name=test_card&amp;amp;pin=2668&amp;amp;min_balance=10&amp;amp;max_balance=50&amp;amp;language=en&amp;amp;callerid=3&amp;amp;sold=0&amp;amp;distributor=2&amp;amp;hash=e5e9fa1ba31ecd1ae84f75caaa474f3a663f05f4&lt;br /&gt;
&lt;br /&gt;
* Now we get a search result containing the Calling Cards with the specified attributes data.&amp;lt;br&amp;gt;&lt;br /&gt;
'''* Note that a Username and a Password are not included into hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
   &amp;lt;cards&amp;gt;&lt;br /&gt;
     &amp;lt;card&amp;gt;&lt;br /&gt;
       &amp;lt;card_id&amp;gt;26&amp;lt;/card_id&amp;gt;&lt;br /&gt;
       &amp;lt;card_number&amp;gt;1111111119&amp;lt;/card_number&amp;gt;&lt;br /&gt;
       &amp;lt;card_name&amp;gt;test_card&amp;lt;/card_name&amp;gt;&lt;br /&gt;
       &amp;lt;card_pin&amp;gt;2668&amp;lt;/card_pin&amp;gt;&lt;br /&gt;
       &amp;lt;card_batch_number&amp;gt;5&amp;lt;/card_batch_number&amp;gt;&lt;br /&gt;
       &amp;lt;card_callerid&amp;gt;3&amp;lt;/card_callerid&amp;gt;&lt;br /&gt;
       &amp;lt;card_balance&amp;gt;10.0840336134454&amp;lt;/card_balance&amp;gt;&lt;br /&gt;
       &amp;lt;card_minimal_balance&amp;gt;20.0&amp;lt;/card_minimal_balance&amp;gt;&lt;br /&gt;
       &amp;lt;card_first_use/&amp;gt;&lt;br /&gt;
       &amp;lt;card_daily_charge_paid_till&amp;gt;2015-11-05 02:00:00 +0200&amp;lt;/card_daily_charge_paid_till&amp;gt;&lt;br /&gt;
       &amp;lt;card_sold&amp;gt;0&amp;lt;/card_sold&amp;gt;&lt;br /&gt;
       &amp;lt;card_language&amp;gt;en&amp;lt;/card_language&amp;gt;&lt;br /&gt;
       &amp;lt;card_distributor&amp;gt;Test User #1&amp;lt;/card_distributor&amp;gt;&lt;br /&gt;
     &amp;lt;/card&amp;gt;&lt;br /&gt;
   &amp;lt;/cards&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Errors'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; - User is not authorized or is a Simple User. Only Admin, Reseller or Accounant can use this API method. &lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; - hash is not correct. Check API_Secret_Key and order or parameters while concatenating a hash_string.&lt;br /&gt;
* &amp;lt;error&amp;gt;You are not authorized to use this functionality&amp;lt;/error&amp;gt; - User has no permissions to manage Calling Cards.&lt;br /&gt;
* &amp;lt;error&amp;gt;Cards were not found&amp;lt;/error&amp;gt; - no Cards were found with provided search parameters.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
   &amp;lt;status&amp;gt;&lt;br /&gt;
     &amp;lt;error&amp;gt;Cards were not found&amp;lt;/error&amp;gt;&lt;br /&gt;
   &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API&amp;diff=20304</id>
		<title>MOR API</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API&amp;diff=20304"/>
		<updated>2015-11-05T14:33:01Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: /* Calling Cards */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:warning.png|100px|alt=&amp;quot;warning&amp;quot;|link=]]&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;IMPORTANT!!! API methods described here are for MOR X6. For previous versions please check appropriate [http://wiki.kolmisoft.com/index.php/MOR_Manual#Old_Manuals manual].&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
[[File:api.png|right|alt=&amp;quot;api&amp;quot;|link=]]&lt;br /&gt;
&amp;lt;mkmeta&amp;gt;Application Program Interface for MOR Class 5 Softswitch&amp;lt;/mkmeta&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=About=&lt;br /&gt;
MOR API lets other software interact with MOR without knowing the internal structure of the database (DB) and other logic.&lt;br /&gt;
&lt;br /&gt;
MOR accepts requests by HTML POST and returns results in XML.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=MOR users that are allowed to use MOR API=&lt;br /&gt;
* Admin&lt;br /&gt;
* Reseller&lt;br /&gt;
* Accountant - only by using Admin Hash and Secret key&lt;br /&gt;
* Simple User&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Functions=&lt;br /&gt;
&lt;br /&gt;
== API Related ==&lt;br /&gt;
* [[API Configuration]] – configuration options for API.&lt;br /&gt;
* [[MOR API hash construction|Hash construction]] – how to construct hash to authenticate data over API.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Balance==&lt;br /&gt;
* [[MOR API user balance update | user_balance_update]] (change_user_balance) – changes User's Balance&lt;br /&gt;
Various methods to retrieve User balance&lt;br /&gt;
* [[MOR API user_balance_get|user_balance_get]] (balance) – retrieves a User Balance.&lt;br /&gt;
* [[Balance in phone | user_simple_balance_get]] (simple_balance) – gets User's Balance&lt;br /&gt;
* [[MOR API user balance get by psw | user_balance_get_by_psw]] – gets User's Balance by his owned Device's Password&lt;br /&gt;
* [[MOR API User Balance get by Username | user_balance_get_by_username]] – gets User's Balance by his owned Device's Username&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Callback==&lt;br /&gt;
* [[MOR API callback init|callback_init]] (callback) – initiates callback.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Calling Cards==&lt;br /&gt;
* [[MOR API card_by_cli_update| card_by_cli_update]] (cc_by_cli) – creates and updates calling cards, including adding and transferring funds, by being identified according the Caller_ID.&lt;br /&gt;
* [[MOR API card_from_group_sell| card_from_group_sell]] (buy_card_from_callingroup) – sells cards from calling card group.&lt;br /&gt;
* [[MOR API card_group_get| card_group_get]] (show_calling_card_group) – show calling group info.&lt;br /&gt;
* [[MOR API card_balance_get| card_balance_get]] (card_balance_get) – show card's balance.&lt;br /&gt;
* [[MOR API card_payment_add| card_payment_add]] – add payment to the calling card.&lt;br /&gt;
* [[MOR_API_Calling_Cards_create| calling_cards_create]] – create Calling Cards.&lt;br /&gt;
* [[MOR_API_cc_groups_get| cc_groups_get]] – show Calling Cards Group info.&lt;br /&gt;
* [[MOR_API_Calling_Card_update| calling_card_update]] – update Calling Card.&lt;br /&gt;
* [[MOR_API_Card_Group_create| cc_group_create]] – create Card Group.&lt;br /&gt;
* [[MOR_API_Calling_Cards_get| calling_cards_get]] - get Calling Cards.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Calls==&lt;br /&gt;
* [[MOR API user calls get|user_calls_get]] (user_calls) – retrieves a list of calls in a selected time period for a user/device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Conflines==&lt;br /&gt;
* [[MOR API conflines update|conflines_update]] – changes settings for API, Default User or Default Device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Credit notes==&lt;br /&gt;
* [[MOR API credit_notes_get| credit_notes_get]] (credit_notes) – credit notes list.&lt;br /&gt;
* [[MOR API credit_note_update| credit_note_update]] – credit note update.&lt;br /&gt;
* [[MOR API credit_notes_create| credit_note_create]] – credit note create.&lt;br /&gt;
* [[MOR API credit_notes_delete| credit_note_delete]] – credit note delete.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Device==&lt;br /&gt;
* [[MOR API device create| device_create]] – create device&lt;br /&gt;
* [[MOR API device delete| device_delete]] (delete_device) – delete device&lt;br /&gt;
* [[MOR API devices get | devices_get]] (device_list) – users device list&lt;br /&gt;
* [[MOR API device callflow get| device_callflow_get]] - returns information about specified device callflow state.&lt;br /&gt;
* [[MOR API device callflow update | device_callflow_update]] – updates information of specified device callflow state. &lt;br /&gt;
* [[MOR API CLI info get | cli_info_get]] (cli_get_info) – shows id of device where CLI belongs.&lt;br /&gt;
* [[MOR API CLI delete | cli_delete]] – deletes specified CLI. &lt;br /&gt;
* [[MOR API CLI add | cli_add]] – creates CLI and assigns it to the specified device.&lt;br /&gt;
* [[MOR API device clis get | device_clis_get]] – CLIs list by User and/or Device&lt;br /&gt;
* [[MOR API device details get | device_details_get]] – shows all information about specified device.&lt;br /&gt;
* [[MOR_API_device_update | device_update]]  –  updates location_id of selected Device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==DID==&lt;br /&gt;
&lt;br /&gt;
* [[MOR API dids get| dids_get]] – get list of particular DIDs&lt;br /&gt;
* [[MOR API did_create| did_create]] – DID create&lt;br /&gt;
* [[MOR_API_did_device_assign| did_device_assign]] (did_assign_device) – Assign Device to DID&lt;br /&gt;
* [[MOR_API_did_device_unassign| did_device_unassign]] (did_unassign_device) – Unassign Device from DID&lt;br /&gt;
* [[MOR_API_did_details_update| did_details_update]] (did_details_update) – Update DID details &lt;br /&gt;
* [[MOR API did subscription stop|did_subscription_stop]] – STOP DID subscription&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Email==&lt;br /&gt;
* [[MOR API email send| email_send]] (send_email) – send Email.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Financial statements==&lt;br /&gt;
* [[MOR API financial_statements_get| financial_statements_get]] (financial_statements) – financial statements list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Invoices==&lt;br /&gt;
* [[MOR API invoices_get|invoices_get]] (invoices) – retrieves a list of invoices in a selected time period.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Login==&lt;br /&gt;
* [[MOR API user_login|user_login]] (login) – logs user in to MOR.&lt;br /&gt;
* [[MOR API user_logout|user_logout]] (logout) – logs user out from MOR.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Monitorings==&lt;br /&gt;
* [[MOR API ma_activate_api| ma_activate]] – turn on monitorings addon&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Payments==&lt;br /&gt;
* [[MOR API payment_create| payment_create]] (create_payment) – create payment.&lt;br /&gt;
* [[MOR API payments_get| payments_get]] (payments_list) – payments list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Phonebooks==&lt;br /&gt;
* [[MOR API phonebooks_get| phonebooks_get]] (phonebooks_api ) – phonebooks list.&lt;br /&gt;
* [[MOR API phonebook_edit| phonebook_edit]] (phonebook_edit_api) – edit phonebook.&lt;br /&gt;
* [[MOR API phonebook_record_create| phonebook_record_create]]  – create phonebook.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Quickforwards==&lt;br /&gt;
* [[MOR API Quickforwards get| quickforwards_dids_get]] (quickforwards_dids_get) – get Quickforwards.&lt;br /&gt;
* [[MOR API Quickforwards update| quickforwards_did_update]] (quickforwards_did_update) – update Quickforwards.&lt;br /&gt;
* [[MOR API Quickforwards delete| quickforwards_did_delete]] (quickforwards_did_delete) – delete Quickforwards.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Rates==&lt;br /&gt;
* [[MOR API rate get|rate_get]] (rate) – check user rate by prefix&lt;br /&gt;
* [[MOR API tariff rates get| tariff_rates_get]] (get_tariff) – get all tariff's rates&lt;br /&gt;
* [[MOR API tariff_retail_import | tariff_retail_import ]] (import_relail_tariff) – import xml retail tariff&lt;br /&gt;
* [[MOR API tariff_wholesale_update | tariff_wholesale_update ]] (wholesale_tariff) – update or create wholesale tariff&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Services==&lt;br /&gt;
* [[MOR API Service create| service_create]] – create Service.&lt;br /&gt;
* [[MOR API Service delete| service_delete]] – delete Service.&lt;br /&gt;
* [[MOR API Services get| services_get]] – get Services.&lt;br /&gt;
* [[MOR API Service update| service_update]] – update Service.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==SMS==&lt;br /&gt;
* [[MOR API sms send| sms_send]] (send_sms) – send SMS.&lt;br /&gt;
* [[MOR_API_user_sms_service_subscribe | user_sms_service_subscribe ]] – User subscription to SMS Service.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Subscriptions==&lt;br /&gt;
* [[MOR API subscription delete|subscription_delete]] - Subscription delete.&lt;br /&gt;
* [[MOR API Subscriptions get|subscriptions_get]] - Subscriptions get.&lt;br /&gt;
* [[MOR API subscription create|subscription_create]] - Subscription create.&lt;br /&gt;
* [[MOR API subscription update|subscription_update]] - Subscription delete.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==User==&lt;br /&gt;
&lt;br /&gt;
* [[MOR API user_register| user_register]] – create new user from params.&lt;br /&gt;
* [[MOR API user_details_get | user_details_get]] (user_details) – gets user details.&lt;br /&gt;
* [[MOR_API_user_details_update| user_details_update]] (user_update_api) – update user from params.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Resellers ==&lt;br /&gt;
* [[MOR API reseller group create]] - create new Reseller Group&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Version==&lt;br /&gt;
* [[MOR API system version get| system_version_get]] (get_version) – get MOR version number.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
= Examples =&lt;br /&gt;
* [[MOR API PHP Examples]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=HTML POST=&lt;br /&gt;
All requests are in a similar format:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/&amp;lt;function&amp;gt;?u=username&lt;br /&gt;
&lt;br /&gt;
* username - the user name and password of the user who is asking for the data. &lt;br /&gt;
&lt;br /&gt;
If the user has 'admin' rights, he will get more results and  can perform more actions compared to a user who does not have such rights.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Useful to know=&lt;br /&gt;
&lt;br /&gt;
* All API methods returns data straight from database. It means that MOR GUI settings does not affect data, it will be returned as it is saved in database. For example:&lt;br /&gt;
** Value of money will be returned in Default System [[Currencies|Currency]].&lt;br /&gt;
** Date will not be affected of [[Configuration_from_GUI#Visual| Default date format]] setting.&lt;br /&gt;
** Value of money will not be affected of [[Configuration_from_GUI#Visual|Number digits]] setting.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=See also =&lt;br /&gt;
* [[API Configuration]]&lt;br /&gt;
* [[MOR integration]]&lt;br /&gt;
* [[How to block access to some API functions]]&lt;br /&gt;
* [[API specification to be implemented in the future]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_Calling_Cards_get&amp;diff=20303</id>
		<title>MOR API Calling Cards get</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_Calling_Cards_get&amp;diff=20303"/>
		<updated>2015-11-05T14:30:11Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Description=&lt;br /&gt;
[[MOR API]] Returns the list of Calling Cards with respect to provided search parameters. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* Call: /api/calling_cards_get&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parameters===&lt;br /&gt;
&lt;br /&gt;
* '''[[MOR API hash construction | hash]]''' - SHA1 hash constructed using the required '''parameters''' (in this case none of the parameters is required). The hash will contain only an '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&amp;lt;br&amp;gt;&lt;br /&gt;
* '''u''' - username for authentication. '''Required'''.&lt;br /&gt;
* number - Calling Card's number.&lt;br /&gt;
* name - Calling Card's name&lt;br /&gt;
* pin - Calling Card's PIN code.&lt;br /&gt;
* batch_number - Calling Card's batch number.&lt;br /&gt;
* min_balance - lower boundary of the Calling Card's balance range.&lt;br /&gt;
* max_balance - upper boundary of the Calling Card's balance range.&lt;br /&gt;
* callerid - Calling Card's CallerID for &amp;quot;pinless&amp;quot; dialing.&lt;br /&gt;
* language - Calling Card's language.&lt;br /&gt;
* sold - determines whether a Calling Card is sold or not (yes|no 1|0).&lt;br /&gt;
* distributor - Calling Card's distributor's (User's) id.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have u = admin, API Secret Key = secret&lt;br /&gt;
&lt;br /&gt;
We send:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/calling_cards_get?u=admin&amp;amp;number=1111111119&amp;amp;name=test_card&amp;amp;pin=2668&amp;amp;min_balance=10&amp;amp;max_balance=50&amp;amp;language=en&amp;amp;callerid=3&amp;amp;sold=0&amp;amp;distributor=2&amp;amp;hash=e5e9fa1ba31ecd1ae84f75caaa474f3a663f05f4&lt;br /&gt;
&lt;br /&gt;
* Now we get a search result containing the Calling Card's with the specified attributes data.&amp;lt;br&amp;gt;&lt;br /&gt;
'''* Note that a Username and a Password are not included into hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
   &amp;lt;cards&amp;gt;&lt;br /&gt;
     &amp;lt;card&amp;gt;&lt;br /&gt;
       &amp;lt;card_id&amp;gt;26&amp;lt;/card_id&amp;gt;&lt;br /&gt;
       &amp;lt;card_number&amp;gt;1111111119&amp;lt;/card_number&amp;gt;&lt;br /&gt;
       &amp;lt;card_name&amp;gt;test_card&amp;lt;/card_name&amp;gt;&lt;br /&gt;
       &amp;lt;card_pin&amp;gt;2668&amp;lt;/card_pin&amp;gt;&lt;br /&gt;
       &amp;lt;card_batch_number&amp;gt;5&amp;lt;/card_batch_number&amp;gt;&lt;br /&gt;
       &amp;lt;card_callerid&amp;gt;3&amp;lt;/card_callerid&amp;gt;&lt;br /&gt;
       &amp;lt;card_balance&amp;gt;10.0840336134454&amp;lt;/card_balance&amp;gt;&lt;br /&gt;
       &amp;lt;card_minimal_balance&amp;gt;20.0&amp;lt;/card_minimal_balance&amp;gt;&lt;br /&gt;
       &amp;lt;card_first_use/&amp;gt;&lt;br /&gt;
       &amp;lt;card_daily_charge_paid_till&amp;gt;2015-11-05 02:00:00 +0200&amp;lt;/card_daily_charge_paid_till&amp;gt;&lt;br /&gt;
       &amp;lt;card_sold&amp;gt;0&amp;lt;/card_sold&amp;gt;&lt;br /&gt;
       &amp;lt;card_language&amp;gt;en&amp;lt;/card_language&amp;gt;&lt;br /&gt;
       &amp;lt;card_distributor&amp;gt;Test User #1&amp;lt;/card_distributor&amp;gt;&lt;br /&gt;
     &amp;lt;/card&amp;gt;&lt;br /&gt;
   &amp;lt;/cards&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Errors'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; - User is not authorized or is a Simple User. Only Admin, Reseller or Accounant can use this API method. &lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; - hash is not correct. Check API_Secret_Key and order or parameters while concatenating a hash_string.&lt;br /&gt;
* &amp;lt;error&amp;gt;You are not authorized to use this functionality&amp;lt;/error&amp;gt; - User has no permissions to manage Calling Cards.&lt;br /&gt;
* &amp;lt;error&amp;gt;Cards were not found&amp;lt;/error&amp;gt; - no Cards were found with provided search parameters.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
   &amp;lt;status&amp;gt;&lt;br /&gt;
     &amp;lt;error&amp;gt;Cards were not found&amp;lt;/error&amp;gt;&lt;br /&gt;
   &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_Calling_Cards_get&amp;diff=20302</id>
		<title>MOR API Calling Cards get</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_Calling_Cards_get&amp;diff=20302"/>
		<updated>2015-11-05T14:06:31Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: Created page with '=Description= MOR API Returns the list of Calling Cards with respect to provided search parameters.  &amp;lt;br&amp;gt;&amp;lt;br&amp;gt; =Usage=  * Call: /api/calling_cards_get * Methods: POST, GET(if …'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Description=&lt;br /&gt;
[[MOR API]] Returns the list of Calling Cards with respect to provided search parameters. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* Call: /api/calling_cards_get&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parameters===&lt;br /&gt;
&lt;br /&gt;
* '''[[MOR API hash construction | hash]]''' - SHA1 hash constructed using the '''parameters''' which are listed above. Note that the parameters are shown in the same order as they need to be when generating the hash. The last parameter in a row is '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&amp;lt;br&amp;gt;&lt;br /&gt;
* '''u''' - username for authentication. '''Required'''.&lt;br /&gt;
* number - Calling Card's number.&lt;br /&gt;
* name - Calling Card's name&lt;br /&gt;
* pin - Calling Card's PIN code.&lt;br /&gt;
* batch_number - Calling Card's batch number.&lt;br /&gt;
* min_balance - lower boundary of the Calling Card's balance range.&lt;br /&gt;
* max_balance - upper boundary of the Calling Card's balance range.&lt;br /&gt;
* callerid - Calling Card's CallerID for &amp;quot;pinless&amp;quot; dialing.&lt;br /&gt;
* language - Calling Card's language.&lt;br /&gt;
* sold - Determines whether a Calling Card is sold or not (yes|no 1|0).&lt;br /&gt;
* distributor - Calling Cards' distributor's (User's) id.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have u = admin, API Secret Key = secret&lt;br /&gt;
&lt;br /&gt;
We send:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/calling_cards_get?u=admin&amp;amp;number=1111111119&amp;amp;name=test_card&amp;amp;pin=2668&amp;amp;min_balance=10&amp;amp;max_balance=50&amp;amp;language=en&amp;amp;callerid=3&amp;amp;sold=0&amp;amp;distributor=2&amp;amp;hash=e5e9fa1ba31ecd1ae84f75caaa474f3a663f05f4&lt;br /&gt;
&lt;br /&gt;
* Now we get a search result containing the Calling Card's with the specified attributes data.&amp;lt;br&amp;gt;&lt;br /&gt;
'''* Note that a Username and a Password are not included into hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
   &amp;lt;cards&amp;gt;&lt;br /&gt;
     &amp;lt;card&amp;gt;&lt;br /&gt;
       &amp;lt;card_id&amp;gt;26&amp;lt;/card_id&amp;gt;&lt;br /&gt;
       &amp;lt;card_number&amp;gt;1111111119&amp;lt;/card_number&amp;gt;&lt;br /&gt;
       &amp;lt;card_name&amp;gt;test_card&amp;lt;/card_name&amp;gt;&lt;br /&gt;
       &amp;lt;card_pin&amp;gt;2668&amp;lt;/card_pin&amp;gt;&lt;br /&gt;
       &amp;lt;card_batch_number&amp;gt;5&amp;lt;/card_batch_number&amp;gt;&lt;br /&gt;
       &amp;lt;card_callerid&amp;gt;3&amp;lt;/card_callerid&amp;gt;&lt;br /&gt;
       &amp;lt;card_balance&amp;gt;10.0840336134454&amp;lt;/card_balance&amp;gt;&lt;br /&gt;
       &amp;lt;card_minimal_balance&amp;gt;20.0&amp;lt;/card_minimal_balance&amp;gt;&lt;br /&gt;
       &amp;lt;card_first_use/&amp;gt;&lt;br /&gt;
       &amp;lt;card_daily_charge_paid_till&amp;gt;2015-11-05 02:00:00 +0200&amp;lt;/card_daily_charge_paid_till&amp;gt;&lt;br /&gt;
       &amp;lt;card_sold&amp;gt;0&amp;lt;/card_sold&amp;gt;&lt;br /&gt;
       &amp;lt;card_language&amp;gt;en&amp;lt;/card_language&amp;gt;&lt;br /&gt;
       &amp;lt;card_distributor&amp;gt;Test User #1&amp;lt;/card_distributor&amp;gt;&lt;br /&gt;
     &amp;lt;/card&amp;gt;&lt;br /&gt;
   &amp;lt;/cards&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Errors'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; - User is not authorized or is a Simple User. Only Admin, Reseller or Accounant can use this API method. &lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; - hash is not correct. Check API_Secret_Key and order or parameters while concatenating a hash_string.&lt;br /&gt;
* &amp;lt;error&amp;gt;You are not authorized to use this functionality&amp;lt;/error&amp;gt; - User has no permissions to manage Calling Cards.&lt;br /&gt;
* &amp;lt;error&amp;gt;Card Group was not found&amp;lt;/error&amp;gt; - Card Group under a given id does not exist or a card_group_id parameter is missing from the API parameters' list.&lt;br /&gt;
* &amp;lt;error&amp;gt;Cards from was not found&amp;lt;/error&amp;gt; - required cards_from parameter is missing.&lt;br /&gt;
* &amp;lt;error&amp;gt;Cards till was not found&amp;lt;/error&amp;gt; - required cards_till parameter is missing. &lt;br /&gt;
* &amp;lt;error&amp;gt;Cards from is in incorrect format&amp;lt;/error&amp;gt; - cards_from parameter's value is not numeric or is not 10-digit-long. &lt;br /&gt;
* &amp;lt;error&amp;gt;Cards till is in incorrect format&amp;lt;/error&amp;gt; - cards_till parameter's value is not numeric or is not 10-digit-long. &lt;br /&gt;
* &amp;lt;error&amp;gt;Cards from must not be greater than Cards till&amp;lt;/error&amp;gt; - cards_from parameter's value must not be grater than cards_till parameter's value. No proper Cards' number range is possible.&lt;br /&gt;
* &amp;lt;error&amp;gt;PIN is too short for this interval&amp;lt;/error&amp;gt; - Card Group does not provide enough PIN codes for a given Cards' number range. &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
   &amp;lt;status&amp;gt;&lt;br /&gt;
     &amp;lt;error&amp;gt;Cards from must not be greater than Cards till&amp;lt;/error&amp;gt;&lt;br /&gt;
   &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_Card_Groups_get&amp;diff=20301</id>
		<title>MOR API Card Groups get</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_Card_Groups_get&amp;diff=20301"/>
		<updated>2015-11-05T13:55:13Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: /* Request */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= NOTE: Available from MOR X7 =&lt;br /&gt;
&lt;br /&gt;
=Description=&lt;br /&gt;
[[MOR API]] Calling Cards Groups get&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* From '''MOR X7''' Calling Cards Groups: '''/api/cc_groups_get'''&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parametres===&lt;br /&gt;
&lt;br /&gt;
* u - username for authentication.&lt;br /&gt;
* cc_group_id - Calling Cards Group ID.&lt;br /&gt;
* [[MOR API hash construction | hash]] - SHA1 hash constructed using '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have: API Secret Key = secret&lt;br /&gt;
&lt;br /&gt;
We send:&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/cc_groups_get?u=admin&amp;amp;cc_group_id=1&amp;amp;hash=e5e9fa1ba31ecd1ae84f75caaa474f3a663f05f4&lt;br /&gt;
'''NOTE that username is not included in hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
  &amp;lt;cc_groups&amp;gt;&lt;br /&gt;
   &amp;lt;cc_group&amp;gt;&lt;br /&gt;
    &amp;lt;group_id&amp;gt;1&amp;lt;/group_id&amp;gt;&lt;br /&gt;
    &amp;lt;group_image&amp;gt;example.jpg&amp;lt;/group_image&amp;gt;&lt;br /&gt;
    &amp;lt;group_name&amp;gt;Test_cardgroup&amp;lt;/group_name&amp;gt;&lt;br /&gt;
    &amp;lt;group_description&amp;gt;Test_cardgroup description&amp;lt;/group_description&amp;gt;&lt;br /&gt;
    &amp;lt;group_number_pin_length&amp;gt;10/4&amp;lt;/group_number_pin_length&amp;gt;&lt;br /&gt;
    &amp;lt;group_tarrif&amp;gt;Test Tariff for Users&amp;lt;/group_tarrif&amp;gt;&lt;br /&gt;
    &amp;lt;group_lcr&amp;gt;Primary&amp;lt;/group_lcr&amp;gt;&lt;br /&gt;
    &amp;lt;group_price&amp;gt;10.0840&amp;lt;/group_price&amp;gt;&lt;br /&gt;
    &amp;lt;group_price_without_tax&amp;gt;10.0840&amp;lt;/group_price_without_tax&amp;gt;&lt;br /&gt;
    &amp;lt;group_cards_count&amp;gt;21&amp;lt;/group_cards_count&amp;gt;&lt;br /&gt;
   &amp;lt;/cc_group&amp;gt;&lt;br /&gt;
  &amp;lt;/cc_groups&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Errors'''&lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; - Hash was not correct. Check API_Secret_Key and order or params while concatenating hash_string. &lt;br /&gt;
* &amp;lt;error&amp;gt;You are not authorized to use this functionality&amp;lt;/error&amp;gt; - User does not have rights to manage Calling Cards.&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; - User does not have access to Calling Cards.&lt;br /&gt;
* &amp;lt;error&amp;gt;Wrong calling cards group ID&amp;lt;/error&amp;gt; - User supplied wrong Calling Cards group ID.&lt;br /&gt;
* &amp;lt;error&amp;gt;Calling cards groups were not found&amp;lt;/error&amp;gt; - Calling cards groups were not found.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_Calling_Card_update&amp;diff=20300</id>
		<title>MOR API Calling Card update</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_Calling_Card_update&amp;diff=20300"/>
		<updated>2015-11-05T13:53:52Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: /* Request */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= NOTE: Available from MOR X7 =&lt;br /&gt;
&lt;br /&gt;
=Description=&lt;br /&gt;
[[MOR API]] Calling Card update&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* From '''MOR X7''' Calling Card: '''/api/calling_card_update'''&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parametres===&lt;br /&gt;
&lt;br /&gt;
* u - username for authentication.&lt;br /&gt;
* card_id - Calling Card ID. '''Required'''.&lt;br /&gt;
* number - Number for the Calling Card.&lt;br /&gt;
* name - Card name for the Calling Card.&lt;br /&gt;
* pin - PIN code for the Calling Card.&lt;br /&gt;
* batch_number - Batch number for the Calling Card.&lt;br /&gt;
* callerid - Caller ID for the Calling Card.&lt;br /&gt;
* min_balance - Minimum balance for the Calling Card.&lt;br /&gt;
* daily_charge_paid_till - Timestamp of daily charge paid.&lt;br /&gt;
* language - Language for the Calling Card. &lt;br /&gt;
* distributor - Calling Card distributor (User) id.&lt;br /&gt;
&lt;br /&gt;
* [[MOR API hash construction | hash]] - SHA1 hash constructed using '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have: API Secret Key = secret, card_id = 1, number = 4673451679, name = card, pin = 7468, batch_number = 5456484, callerid = 2, min_balance = 5, daily_charge_paid_till = 1446721871, language = en, distributor = 2&lt;br /&gt;
&lt;br /&gt;
We send:&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/calling_card_update?u=admin&amp;amp;card_id=1&amp;amp;number=4673451679&amp;amp;name=card&amp;amp;pin=7468&amp;amp;batch_number=5456484&amp;amp;callerid=2&amp;amp;min_balance=5&amp;amp;daily_charge_paid_till=1446721871&amp;amp;language=en&amp;amp;distributor=2&amp;amp;hash=bc2f114099d16656d37e45fd9e8744cb9386d462&lt;br /&gt;
'''NOTE that username is not included in hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
  &amp;lt;success&amp;gt;Calling Card successfully updated&amp;lt;/success&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Errors'''&lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; - Hash was not correct. Check API_Secret_Key and order or params while concatenating hash_string. &lt;br /&gt;
* &amp;lt;error&amp;gt;You are not authorized to use this functionality&amp;lt;/error&amp;gt; - User does not have rights to manage Calling Cards.&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; - User does not have access to Calling Cards.&lt;br /&gt;
* &amp;lt;error&amp;gt;Wrong Calling Card ID&amp;lt;/error&amp;gt; - User supplied wrong Calling Card ID.&lt;br /&gt;
* &amp;lt;error&amp;gt;Calling Card not found&amp;lt;/error&amp;gt; - Calling card was not found.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_Calling_Card_update&amp;diff=20299</id>
		<title>MOR API Calling Card update</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_Calling_Card_update&amp;diff=20299"/>
		<updated>2015-11-05T13:51:30Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: /* Request */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= NOTE: Available from MOR X7 =&lt;br /&gt;
&lt;br /&gt;
=Description=&lt;br /&gt;
[[MOR API]] Calling Card update&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* From '''MOR X7''' Calling Card: '''/api/calling_card_update'''&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parametres===&lt;br /&gt;
&lt;br /&gt;
* u - username for authentication.&lt;br /&gt;
* card_id - Calling Card ID. '''Required'''.&lt;br /&gt;
* number - Number for the Calling Card.&lt;br /&gt;
* name - Card name for the Calling Card.&lt;br /&gt;
* pin - PIN code for the Calling Card.&lt;br /&gt;
* batch_number - Batch number for the Calling Card.&lt;br /&gt;
* callerid - Caller ID for the Calling Card.&lt;br /&gt;
* min_balance - Minimum balance for the Calling Card.&lt;br /&gt;
* daily_charge_paid_till - Timestamp of daily charge paid.&lt;br /&gt;
* language - Language for the Calling Card. &lt;br /&gt;
* distributor - Calling Card distributor (User) id.&lt;br /&gt;
&lt;br /&gt;
* [[MOR API hash construction | hash]] - SHA1 hash constructed using '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have: API Secret Key = secret, card_id = 1, number = 4673451679, name = card, pin = 7468, batch_number = 5456484, callerid = 2, min_balance = 5, daily_charge_paid_till = 1446721871, language = en, distributor = 2&lt;br /&gt;
&lt;br /&gt;
We send:&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/calling_card_update?u=admin&amp;amp;card_id=1&amp;amp;number=4673451679&amp;amp;name=card&amp;amp;pin=7468&amp;amp;batch_number=5456484&amp;amp;callerid=2&amp;amp;min_balance=5&amp;amp;daily_charge_paid_till=1446721871&amp;amp;language=en&amp;amp;distributor=2&amp;amp;hash=bc2f114099d16656d37e45fd9e8744cb9386d462&lt;br /&gt;
'''NOTE that username is not included in hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
  &amp;lt;success&amp;gt;Calling Card successfully updated&amp;lt;/success&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Errors'''&lt;br /&gt;
* &amp;lt;error&amp;gt;Bad login&amp;lt;/error&amp;gt; - User supplied bad login.&lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; - Hash was not correct. Check API_Secret_Key and order or params while concatenating hash_string. &lt;br /&gt;
* &amp;lt;error&amp;gt;You are not authorized to use this functionality&amp;lt;/error&amp;gt; - User does not have rights to manage Calling Cards.&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; - User does not have access to Calling Cards.&lt;br /&gt;
* &amp;lt;error&amp;gt;Wrong Calling Card ID&amp;lt;/error&amp;gt; - User supplied wrong Calling Card ID.&lt;br /&gt;
* &amp;lt;error&amp;gt;Calling Card not found&amp;lt;/error&amp;gt; - Calling card was not found.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_Calling_Cards_create&amp;diff=20298</id>
		<title>MOR API Calling Cards create</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_Calling_Cards_create&amp;diff=20298"/>
		<updated>2015-11-05T12:00:01Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Description=&lt;br /&gt;
[[MOR API]] Calling Cards create&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* Call: /api/calling_cards_create&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parameters===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Parameters which are '''included''' into hash:&lt;br /&gt;
&lt;br /&gt;
* card_group_id - id of a Card Group '''Required'''.&lt;br /&gt;
* cards_from - Cards' (to be created) number range beginning '''Required'''.&lt;br /&gt;
* cards_till - Cards' (to be created) number range ending '''Required'''.&lt;br /&gt;
&lt;br /&gt;
'''* Note that cards_from &amp;lt;= cards_till. Both of the previous parameters are 10-digit-long integers.'''&amp;lt;br&amp;gt;&lt;br /&gt;
'''* Note that the parameters are shown in the same order as they need to be when generating the hash. The last parameter in a row is an API_Secret_Key.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Parameters which are '''not included''' into hash:&lt;br /&gt;
&lt;br /&gt;
* '''[[MOR API hash construction | hash]]''' - SHA1 hash constructed using the '''parameters''' which are listed above. Note that the parameters are shown in the same order as they need to be when generating the hash. The last parameter in a row is '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&amp;lt;br&amp;gt;&lt;br /&gt;
* '''u''' - username for authentication. '''Required'''.&lt;br /&gt;
* batch_number - batch number for the Calling Cards.&lt;br /&gt;
* min_balance - minimum balance for the Calling Cards.&lt;br /&gt;
* distributor_id - Calling Cards' distributor's (User's) id.&lt;br /&gt;
* language - Language for the Calling Cards.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have u = admin, API Secret Key = secret&lt;br /&gt;
&lt;br /&gt;
We send:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/calling_cards_create?u=admin&amp;amp;card_group_id=1&amp;amp;cards_from=1000000025&amp;amp;cards_till=1000000035&amp;amp;batch_number=50&amp;amp;&lt;br /&gt;
 min_balance=15&amp;amp;language=en&amp;amp;distributor_id=2&amp;amp;hash=7e112ededcfee097cce21b6201c6d2a00dda1f4c&lt;br /&gt;
&lt;br /&gt;
* Now we can find 11 newly created Calling Cards (number range: 1000000025-1000000035) in the Card Group's (id = 1) Cards' list.'''&amp;lt;br&amp;gt;&lt;br /&gt;
'''* Note that some Calling Cards may fail on creation if a given range overlaps with already existing Cards in a Card Group.'''&amp;lt;br&amp;gt;&lt;br /&gt;
'''* Note that passing invalid optional parameters will not be notified. Default values will be used instead.'''&amp;lt;br&amp;gt;&lt;br /&gt;
'''* Note that a Username and a Password are not included into hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
   &amp;lt;status&amp;gt;&lt;br /&gt;
     &amp;lt;success&amp;gt;Cards created: 11/11&amp;lt;/success&amp;gt;&lt;br /&gt;
   &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Errors'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; - User is not authorized or is a Simple User. Only Admin, Reseller or Accounant can use this API method. &lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; - hash is not correct. Check API_Secret_Key and order or parameters while concatenating a hash_string.&lt;br /&gt;
* &amp;lt;error&amp;gt;You are not authorized to use this functionality&amp;lt;/error&amp;gt; - User has no permissions to manage Calling Cards.&lt;br /&gt;
* &amp;lt;error&amp;gt;Card Group was not found&amp;lt;/error&amp;gt; - Card Group under a given id does not exist or a card_group_id parameter is missing from the API parameters' list.&lt;br /&gt;
* &amp;lt;error&amp;gt;Cards from was not found&amp;lt;/error&amp;gt; - required cards_from parameter is missing.&lt;br /&gt;
* &amp;lt;error&amp;gt;Cards till was not found&amp;lt;/error&amp;gt; - required cards_till parameter is missing. &lt;br /&gt;
* &amp;lt;error&amp;gt;Cards from is in incorrect format&amp;lt;/error&amp;gt; - cards_from parameter's value is not numeric or is not 10-digit-long. &lt;br /&gt;
* &amp;lt;error&amp;gt;Cards till is in incorrect format&amp;lt;/error&amp;gt; - cards_till parameter's value is not numeric or is not 10-digit-long. &lt;br /&gt;
* &amp;lt;error&amp;gt;Cards from must not be greater than Cards till&amp;lt;/error&amp;gt; - cards_from parameter's value must not be grater than cards_till parameter's value. No proper Cards' number range is possible.&lt;br /&gt;
* &amp;lt;error&amp;gt;PIN is too short for this interval&amp;lt;/error&amp;gt; - Card Group does not provide enough PIN codes for a given Cards' number range. &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
   &amp;lt;status&amp;gt;&lt;br /&gt;
     &amp;lt;error&amp;gt;Cards from must not be greater than Cards till&amp;lt;/error&amp;gt;&lt;br /&gt;
   &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_Card_Group_create&amp;diff=20297</id>
		<title>MOR API Card Group create</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_Card_Group_create&amp;diff=20297"/>
		<updated>2015-11-05T11:46:55Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Description=&lt;br /&gt;
[[MOR API]] Card Group create&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* From '''MOR X7''' Calling Card: '''/api/cc_group_create'''&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parameters===&lt;br /&gt;
&lt;br /&gt;
Parameters which are '''included''' into hash:&lt;br /&gt;
&lt;br /&gt;
* name - name of a Card Group '''Required'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Parameters which are '''not included''' into hash:&lt;br /&gt;
&lt;br /&gt;
* '''[[MOR API hash construction | hash]]''' - SHA1 hash constructed using the '''parameters''' which are listed above. Note that the parameters are shown in the same order as they need to be when generating the hash. The last parameter in a row is '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&amp;lt;br&amp;gt;&lt;br /&gt;
* '''u''' - username for authentication. '''Required'''.&lt;br /&gt;
* '''description''' - description for Card Group.&lt;br /&gt;
* '''price_with_vat''' - price with TAX for Card Group.&lt;br /&gt;
* '''setup_fee''' - setup fee for Card Group.&lt;br /&gt;
* '''ghost_min_perc''' - ghost min percent for Card Group.&lt;br /&gt;
* '''daily_charge''' - daily charge for Card Group.&lt;br /&gt;
* '''tariff_id''' - Card Group tariff id.&lt;br /&gt;
* '''lcr_id''' - Card Group lcr id.&lt;br /&gt;
* '''date_from''' - Card Group valid from date.&lt;br /&gt;
* '''date_till''' - Card Group valid till date.&lt;br /&gt;
* '''number_length''' - Card Group number length.&lt;br /&gt;
* '''pin_length''' - Card Group pin length.&lt;br /&gt;
* '''dialplan_id''' - Card Group dial plan id.&lt;br /&gt;
* '''location_id''' - Card Group location id.&lt;br /&gt;
* '''tax_id''' - Card Group tax id.&lt;br /&gt;
* '''valid_after_first_use''' - number of days, after which Card Group gets valid.&lt;br /&gt;
* '''ghost_balance_perc''' - Card Group ghost balance percent.&lt;br /&gt;
* '''use_external_function''' - enable or disable use of external script;&lt;br /&gt;
* '''allow_loss_calls''' - Allow Loss Calls for Card Group.&lt;br /&gt;
* '''tell_cents''' - tell cents for Card Group.&lt;br /&gt;
* '''tell_balance_in_currency''' - Card Group Balance/Rate Currency.&lt;br /&gt;
* '''solo_pinless''' - enable or disable solo pinless.&lt;br /&gt;
* '''disable_voucher''' - enable or disable voucher.&lt;br /&gt;
* '''hidden''' - enable or disable hidden status.&lt;br /&gt;
* '''callerid_leave''' - enable or disable caller id leave.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have u = admin, API Secret Key = secret&lt;br /&gt;
We send:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/cc_group_create?u=admin&amp;amp;name=card_group_test&amp;amp;hash=7e112ededcfee097cce21b6201c6d2a00dda1f4c&lt;br /&gt;
&lt;br /&gt;
* Now we can find 1 newly created Card Group.'''&amp;lt;br&amp;gt;&lt;br /&gt;
'''* Note that if not passing optional parameters, default values will be used.'''&lt;br /&gt;
'''* Note that a Username and a Password are not included into hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Returns===&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
   &amp;lt;status&amp;gt;&lt;br /&gt;
     &amp;lt;success&amp;gt;Card Group was successfully created&amp;lt;/success&amp;gt;&lt;br /&gt;
   &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Errors'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; - User is not authorized or is a Simple User. Only Admin, Reseller or Accounant can use this API method. &lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; - hash is not correct. Check API_Secret_Key and order or parameters while concatenating a hash_string.&lt;br /&gt;
* &amp;lt;error&amp;gt;You are not authorized to use this functionality&amp;lt;/error&amp;gt; - User has no permissions to manage Calling Cards. &lt;br /&gt;
* &amp;lt;error&amp;gt;Bad login&amp;lt;/error&amp;gt; - User is not authorized (possibly wrong Username). &lt;br /&gt;
* &amp;lt;error&amp;gt;Card Group must have name&amp;lt;/error&amp;gt; - Card Group name is not given. Name is requered parameter.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid use external function parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - use external script parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid allow loss calls parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - allow loss calls parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid tell cents parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - tell cents parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid solo pinless parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - solo pinless parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid disable voucher parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - voucher parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid hidden parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - hidden parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid callerid leave parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - caller id leave parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid date from&amp;lt;/error&amp;gt; - unix time stamp date not correct.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid date till&amp;lt;/error&amp;gt; - unix time stamp date not correct.&lt;br /&gt;
* &amp;lt;error&amp;gt;Date from is greater than date till&amp;lt;/error&amp;gt; - valid from is greater than valid till.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Tariff id&amp;lt;/error&amp;gt; - Tariff id is not correct. There is no such Tariff.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Lcr id&amp;lt;/error&amp;gt; - Lcr id is not correct. There is no such Lcr.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Dialplan id&amp;lt;/error&amp;gt; - Dialplan id is not correct. There is no such Dialplan.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Location id&amp;lt;/error&amp;gt; - Location id is not correct. There is no such Location.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Currency&amp;lt;/error&amp;gt; - Currency id is not correct. There is no such Currency.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Price with TAX&amp;lt;/error&amp;gt; - price is not correct, can not be negative.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
   &amp;lt;status&amp;gt;&lt;br /&gt;
     &amp;lt;error&amp;gt;Invalid solo pinless parameter, should be: 0 or 1&amp;lt;/error&amp;gt;&lt;br /&gt;
   &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_Card_Group_create&amp;diff=20296</id>
		<title>MOR API Card Group create</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_Card_Group_create&amp;diff=20296"/>
		<updated>2015-11-05T11:46:23Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Description=&lt;br /&gt;
[[MOR API]] Card Group create&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* From MOR X7 Calling Card: /api/cc_group_create&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parameters===&lt;br /&gt;
&lt;br /&gt;
Parameters which are '''included''' into hash:&lt;br /&gt;
&lt;br /&gt;
* name - name of a Card Group '''Required'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Parameters which are '''not included''' into hash:&lt;br /&gt;
&lt;br /&gt;
* '''[[MOR API hash construction | hash]]''' - SHA1 hash constructed using the '''parameters''' which are listed above. Note that the parameters are shown in the same order as they need to be when generating the hash. The last parameter in a row is '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&amp;lt;br&amp;gt;&lt;br /&gt;
* '''u''' - username for authentication. '''Required'''.&lt;br /&gt;
* '''description''' - description for Card Group.&lt;br /&gt;
* '''price_with_vat''' - price with TAX for Card Group.&lt;br /&gt;
* '''setup_fee''' - setup fee for Card Group.&lt;br /&gt;
* '''ghost_min_perc''' - ghost min percent for Card Group.&lt;br /&gt;
* '''daily_charge''' - daily charge for Card Group.&lt;br /&gt;
* '''tariff_id''' - Card Group tariff id.&lt;br /&gt;
* '''lcr_id''' - Card Group lcr id.&lt;br /&gt;
* '''date_from''' - Card Group valid from date.&lt;br /&gt;
* '''date_till''' - Card Group valid till date.&lt;br /&gt;
* '''number_length''' - Card Group number length.&lt;br /&gt;
* '''pin_length''' - Card Group pin length.&lt;br /&gt;
* '''dialplan_id''' - Card Group dial plan id.&lt;br /&gt;
* '''location_id''' - Card Group location id.&lt;br /&gt;
* '''tax_id''' - Card Group tax id.&lt;br /&gt;
* '''valid_after_first_use''' - number of days, after which Card Group gets valid.&lt;br /&gt;
* '''ghost_balance_perc''' - Card Group ghost balance percent.&lt;br /&gt;
* '''use_external_function''' - enable or disable use of external script;&lt;br /&gt;
* '''allow_loss_calls''' - Allow Loss Calls for Card Group.&lt;br /&gt;
* '''tell_cents''' - tell cents for Card Group.&lt;br /&gt;
* '''tell_balance_in_currency''' - Card Group Balance/Rate Currency.&lt;br /&gt;
* '''solo_pinless''' - enable or disable solo pinless.&lt;br /&gt;
* '''disable_voucher''' - enable or disable voucher.&lt;br /&gt;
* '''hidden''' - enable or disable hidden status.&lt;br /&gt;
* '''callerid_leave''' - enable or disable caller id leave.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have u = admin, API Secret Key = secret&lt;br /&gt;
We send:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/cc_group_create?u=admin&amp;amp;name=card_group_test&amp;amp;hash=7e112ededcfee097cce21b6201c6d2a00dda1f4c&lt;br /&gt;
&lt;br /&gt;
* Now we can find 1 newly created Card Group.'''&amp;lt;br&amp;gt;&lt;br /&gt;
'''* Note that if not passing optional parameters, default values will be used.'''&lt;br /&gt;
'''* Note that a Username and a Password are not included into hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Returns===&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
   &amp;lt;status&amp;gt;&lt;br /&gt;
     &amp;lt;success&amp;gt;Card Group was successfully created&amp;lt;/success&amp;gt;&lt;br /&gt;
   &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Errors'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; - User is not authorized or is a Simple User. Only Admin, Reseller or Accounant can use this API method. &lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; - hash is not correct. Check API_Secret_Key and order or parameters while concatenating a hash_string.&lt;br /&gt;
* &amp;lt;error&amp;gt;You are not authorized to use this functionality&amp;lt;/error&amp;gt; - User has no permissions to manage Calling Cards. &lt;br /&gt;
* &amp;lt;error&amp;gt;Bad login&amp;lt;/error&amp;gt; - User is not authorized (possibly wrong Username). &lt;br /&gt;
* &amp;lt;error&amp;gt;Card Group must have name&amp;lt;/error&amp;gt; - Card Group name is not given. Name is requered parameter.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid use external function parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - use external script parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid allow loss calls parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - allow loss calls parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid tell cents parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - tell cents parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid solo pinless parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - solo pinless parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid disable voucher parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - voucher parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid hidden parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - hidden parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid callerid leave parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - caller id leave parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid date from&amp;lt;/error&amp;gt; - unix time stamp date not correct.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid date till&amp;lt;/error&amp;gt; - unix time stamp date not correct.&lt;br /&gt;
* &amp;lt;error&amp;gt;Date from is greater than date till&amp;lt;/error&amp;gt; - valid from is greater than valid till.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Tariff id&amp;lt;/error&amp;gt; - Tariff id is not correct. There is no such Tariff.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Lcr id&amp;lt;/error&amp;gt; - Lcr id is not correct. There is no such Lcr.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Dialplan id&amp;lt;/error&amp;gt; - Dialplan id is not correct. There is no such Dialplan.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Location id&amp;lt;/error&amp;gt; - Location id is not correct. There is no such Location.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Currency&amp;lt;/error&amp;gt; - Currency id is not correct. There is no such Currency.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Price with TAX&amp;lt;/error&amp;gt; - price is not correct, can not be negative.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
   &amp;lt;status&amp;gt;&lt;br /&gt;
     &amp;lt;error&amp;gt;Invalid solo pinless parameter, should be: 0 or 1&amp;lt;/error&amp;gt;&lt;br /&gt;
   &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API&amp;diff=20295</id>
		<title>MOR API</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API&amp;diff=20295"/>
		<updated>2015-11-05T11:43:50Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: /* Calling Cards */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:warning.png|100px|alt=&amp;quot;warning&amp;quot;|link=]]&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;IMPORTANT!!! API methods described here are for MOR X6. For previous versions please check appropriate [http://wiki.kolmisoft.com/index.php/MOR_Manual#Old_Manuals manual].&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
[[File:api.png|right|alt=&amp;quot;api&amp;quot;|link=]]&lt;br /&gt;
&amp;lt;mkmeta&amp;gt;Application Program Interface for MOR Class 5 Softswitch&amp;lt;/mkmeta&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=About=&lt;br /&gt;
MOR API lets other software interact with MOR without knowing the internal structure of the database (DB) and other logic.&lt;br /&gt;
&lt;br /&gt;
MOR accepts requests by HTML POST and returns results in XML.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=MOR users that are allowed to use MOR API=&lt;br /&gt;
* Admin&lt;br /&gt;
* Reseller&lt;br /&gt;
* Accountant - only by using Admin Hash and Secret key&lt;br /&gt;
* Simple User&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Functions=&lt;br /&gt;
&lt;br /&gt;
== API Related ==&lt;br /&gt;
* [[API Configuration]] – configuration options for API.&lt;br /&gt;
* [[MOR API hash construction|Hash construction]] – how to construct hash to authenticate data over API.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Balance==&lt;br /&gt;
* [[MOR API user balance update | user_balance_update]] (change_user_balance) – changes User's Balance&lt;br /&gt;
Various methods to retrieve User balance&lt;br /&gt;
* [[MOR API user_balance_get|user_balance_get]] (balance) – retrieves a User Balance.&lt;br /&gt;
* [[Balance in phone | user_simple_balance_get]] (simple_balance) – gets User's Balance&lt;br /&gt;
* [[MOR API user balance get by psw | user_balance_get_by_psw]] – gets User's Balance by his owned Device's Password&lt;br /&gt;
* [[MOR API User Balance get by Username | user_balance_get_by_username]] – gets User's Balance by his owned Device's Username&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Callback==&lt;br /&gt;
* [[MOR API callback init|callback_init]] (callback) – initiates callback.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Calling Cards==&lt;br /&gt;
* [[MOR API card_by_cli_update| card_by_cli_update]] (cc_by_cli) – creates and updates calling cards, including adding and transferring funds, by being identified according the Caller_ID.&lt;br /&gt;
* [[MOR API card_from_group_sell| card_from_group_sell]] (buy_card_from_callingroup) – sells cards from calling card group.&lt;br /&gt;
* [[MOR API card_group_get| card_group_get]] (show_calling_card_group) – show calling group info.&lt;br /&gt;
* [[MOR API card_balance_get| card_balance_get]] (card_balance_get) – show card's balance.&lt;br /&gt;
* [[MOR API card_payment_add| card_payment_add]] – add payment to the calling card.&lt;br /&gt;
* [[MOR_API_Calling_Cards_create| calling_cards_create]] – create Calling Cards.&lt;br /&gt;
* [[MOR_API_cc_groups_get| cc_groups_get]] – show Calling Cards Group info.&lt;br /&gt;
* [[MOR_API_Calling_Card_update| calling_card_update]] – update Calling Card.&lt;br /&gt;
* [[MOR_API_Card_Group_create| cc_group_create]] – create Card Group.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Calls==&lt;br /&gt;
* [[MOR API user calls get|user_calls_get]] (user_calls) – retrieves a list of calls in a selected time period for a user/device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Conflines==&lt;br /&gt;
* [[MOR API conflines update|conflines_update]] – changes settings for API, Default User or Default Device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Credit notes==&lt;br /&gt;
* [[MOR API credit_notes_get| credit_notes_get]] (credit_notes) – credit notes list.&lt;br /&gt;
* [[MOR API credit_note_update| credit_note_update]] – credit note update.&lt;br /&gt;
* [[MOR API credit_notes_create| credit_note_create]] – credit note create.&lt;br /&gt;
* [[MOR API credit_notes_delete| credit_note_delete]] – credit note delete.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Device==&lt;br /&gt;
* [[MOR API device create| device_create]] – create device&lt;br /&gt;
* [[MOR API device delete| device_delete]] (delete_device) – delete device&lt;br /&gt;
* [[MOR API devices get | devices_get]] (device_list) – users device list&lt;br /&gt;
* [[MOR API device callflow get| device_callflow_get]] - returns information about specified device callflow state.&lt;br /&gt;
* [[MOR API device callflow update | device_callflow_update]] – updates information of specified device callflow state. &lt;br /&gt;
* [[MOR API CLI info get | cli_info_get]] (cli_get_info) – shows id of device where CLI belongs.&lt;br /&gt;
* [[MOR API CLI delete | cli_delete]] – deletes specified CLI. &lt;br /&gt;
* [[MOR API CLI add | cli_add]] – creates CLI and assigns it to the specified device.&lt;br /&gt;
* [[MOR API device clis get | device_clis_get]] – CLIs list by User and/or Device&lt;br /&gt;
* [[MOR API device details get | device_details_get]] – shows all information about specified device.&lt;br /&gt;
* [[MOR_API_device_update | device_update]]  –  updates location_id of selected Device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==DID==&lt;br /&gt;
&lt;br /&gt;
* [[MOR API dids get| dids_get]] – get list of particular DIDs&lt;br /&gt;
* [[MOR API did_create| did_create]] – DID create&lt;br /&gt;
* [[MOR_API_did_device_assign| did_device_assign]] (did_assign_device) – Assign Device to DID&lt;br /&gt;
* [[MOR_API_did_device_unassign| did_device_unassign]] (did_unassign_device) – Unassign Device from DID&lt;br /&gt;
* [[MOR_API_did_details_update| did_details_update]] (did_details_update) – Update DID details &lt;br /&gt;
* [[MOR API did subscription stop|did_subscription_stop]] – STOP DID subscription&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Email==&lt;br /&gt;
* [[MOR API email send| email_send]] (send_email) – send Email.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Financial statements==&lt;br /&gt;
* [[MOR API financial_statements_get| financial_statements_get]] (financial_statements) – financial statements list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Invoices==&lt;br /&gt;
* [[MOR API invoices_get|invoices_get]] (invoices) – retrieves a list of invoices in a selected time period.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Login==&lt;br /&gt;
* [[MOR API user_login|user_login]] (login) – logs user in to MOR.&lt;br /&gt;
* [[MOR API user_logout|user_logout]] (logout) – logs user out from MOR.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Monitorings==&lt;br /&gt;
* [[MOR API ma_activate_api| ma_activate]] – turn on monitorings addon&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Payments==&lt;br /&gt;
* [[MOR API payment_create| payment_create]] (create_payment) – create payment.&lt;br /&gt;
* [[MOR API payments_get| payments_get]] (payments_list) – payments list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Phonebooks==&lt;br /&gt;
* [[MOR API phonebooks_get| phonebooks_get]] (phonebooks_api ) – phonebooks list.&lt;br /&gt;
* [[MOR API phonebook_edit| phonebook_edit]] (phonebook_edit_api) – edit phonebook.&lt;br /&gt;
* [[MOR API phonebook_record_create| phonebook_record_create]]  – create phonebook.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Quickforwards==&lt;br /&gt;
* [[MOR API Quickforwards get| quickforwards_dids_get]] (quickforwards_dids_get) – get Quickforwards.&lt;br /&gt;
* [[MOR API Quickforwards update| quickforwards_did_update]] (quickforwards_did_update) – update Quickforwards.&lt;br /&gt;
* [[MOR API Quickforwards delete| quickforwards_did_delete]] (quickforwards_did_delete) – delete Quickforwards.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Rates==&lt;br /&gt;
* [[MOR API rate get|rate_get]] (rate) – check user rate by prefix&lt;br /&gt;
* [[MOR API tariff rates get| tariff_rates_get]] (get_tariff) – get all tariff's rates&lt;br /&gt;
* [[MOR API tariff_retail_import | tariff_retail_import ]] (import_relail_tariff) – import xml retail tariff&lt;br /&gt;
* [[MOR API tariff_wholesale_update | tariff_wholesale_update ]] (wholesale_tariff) – update or create wholesale tariff&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Services==&lt;br /&gt;
* [[MOR API Service create| service_create]] – create Service.&lt;br /&gt;
* [[MOR API Service delete| service_delete]] – delete Service.&lt;br /&gt;
* [[MOR API Services get| services_get]] – get Services.&lt;br /&gt;
* [[MOR API Service update| service_update]] – update Service.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==SMS==&lt;br /&gt;
* [[MOR API sms send| sms_send]] (send_sms) – send SMS.&lt;br /&gt;
* [[MOR_API_user_sms_service_subscribe | user_sms_service_subscribe ]] – User subscription to SMS Service.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Subscriptions==&lt;br /&gt;
* [[MOR API subscription delete|subscription_delete]] - Subscription delete.&lt;br /&gt;
* [[MOR API Subscriptions get|subscriptions_get]] - Subscriptions get.&lt;br /&gt;
* [[MOR API subscription create|subscription_create]] - Subscription create.&lt;br /&gt;
* [[MOR API subscription update|subscription_update]] - Subscription delete.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==User==&lt;br /&gt;
&lt;br /&gt;
* [[MOR API user_register| user_register]] – create new user from params.&lt;br /&gt;
* [[MOR API user_details_get | user_details_get]] (user_details) – gets user details.&lt;br /&gt;
* [[MOR_API_user_details_update| user_details_update]] (user_update_api) – update user from params.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Resellers ==&lt;br /&gt;
* [[MOR API reseller group create]] - create new Reseller Group&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Version==&lt;br /&gt;
* [[MOR API system version get| system_version_get]] (get_version) – get MOR version number.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
= Examples =&lt;br /&gt;
* [[MOR API PHP Examples]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=HTML POST=&lt;br /&gt;
All requests are in a similar format:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/&amp;lt;function&amp;gt;?u=username&lt;br /&gt;
&lt;br /&gt;
* username - the user name and password of the user who is asking for the data. &lt;br /&gt;
&lt;br /&gt;
If the user has 'admin' rights, he will get more results and  can perform more actions compared to a user who does not have such rights.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Useful to know=&lt;br /&gt;
&lt;br /&gt;
* All API methods returns data straight from database. It means that MOR GUI settings does not affect data, it will be returned as it is saved in database. For example:&lt;br /&gt;
** Value of money will be returned in Default System [[Currencies|Currency]].&lt;br /&gt;
** Date will not be affected of [[Configuration_from_GUI#Visual| Default date format]] setting.&lt;br /&gt;
** Value of money will not be affected of [[Configuration_from_GUI#Visual|Number digits]] setting.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=See also =&lt;br /&gt;
* [[API Configuration]]&lt;br /&gt;
* [[MOR integration]]&lt;br /&gt;
* [[How to block access to some API functions]]&lt;br /&gt;
* [[API specification to be implemented in the future]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_Card_Group_create&amp;diff=20294</id>
		<title>MOR API Card Group create</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_Card_Group_create&amp;diff=20294"/>
		<updated>2015-11-05T11:00:36Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Description=&lt;br /&gt;
[[MOR API]] Card Group create&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* Call: /api/cc_group_create&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parameters===&lt;br /&gt;
&lt;br /&gt;
Parameters which are '''included''' into hash:&lt;br /&gt;
&lt;br /&gt;
* name - name of a Card Group '''Required'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Parameters which are '''not included''' into hash:&lt;br /&gt;
&lt;br /&gt;
* '''[[MOR API hash construction | hash]]''' - SHA1 hash constructed using the '''parameters''' which are listed above. Note that the parameters are shown in the same order as they need to be when generating the hash. The last parameter in a row is '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&amp;lt;br&amp;gt;&lt;br /&gt;
* '''u''' - username for authentication. '''Required'''.&lt;br /&gt;
* '''description''' - description for Card Group.&lt;br /&gt;
* '''price_with_vat''' - price with TAX for Card Group.&lt;br /&gt;
* '''setup_fee''' - setup fee for Card Group.&lt;br /&gt;
* '''ghost_min_perc''' - ghost min percent for Card Group.&lt;br /&gt;
* '''daily_charge''' - daily charge for Card Group.&lt;br /&gt;
* '''tariff_id''' - Card Group tariff id.&lt;br /&gt;
* '''lcr_id''' - Card Group lcr id.&lt;br /&gt;
* '''date_from''' - Card Group valid from date.&lt;br /&gt;
* '''date_till''' - Card Group valid till date.&lt;br /&gt;
* '''number_length''' - Card Group number length.&lt;br /&gt;
* '''pin_length''' - Card Group pin length.&lt;br /&gt;
* '''dialplan_id''' - Card Group dial plan id.&lt;br /&gt;
* '''location_id''' - Card Group location id.&lt;br /&gt;
* '''tax_id''' - Card Group tax id.&lt;br /&gt;
* '''valid_after_first_use''' - number of days, after which Card Group gets valid.&lt;br /&gt;
* '''ghost_balance_perc''' - Card Group ghost balance percent.&lt;br /&gt;
* '''use_external_function''' - enable or disable use of external script;&lt;br /&gt;
* '''allow_loss_calls''' - Allow Loss Calls for Card Group.&lt;br /&gt;
* '''tell_cents''' - tell cents for Card Group.&lt;br /&gt;
* '''tell_balance_in_currency''' - Card Group Balance/Rate Currency.&lt;br /&gt;
* '''solo_pinless''' - enable or disable solo pinless.&lt;br /&gt;
* '''disable_voucher''' - enable or disable voucher.&lt;br /&gt;
* '''hidden''' - enable or disable hidden status.&lt;br /&gt;
* '''callerid_leave''' - enable or disable caller id leave.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have u = admin, API Secret Key = secret&lt;br /&gt;
We send:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/cc_group_create?u=admin&amp;amp;name=card_group_test&amp;amp;hash=7e112ededcfee097cce21b6201c6d2a00dda1f4c&lt;br /&gt;
&lt;br /&gt;
* Now we can find 1 newly created Card Group.'''&amp;lt;br&amp;gt;&lt;br /&gt;
'''* Note that if not passing optional parameters, default values will be used.'''&lt;br /&gt;
'''* Note that a Username and a Password are not included into hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Returns===&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
   &amp;lt;status&amp;gt;&lt;br /&gt;
     &amp;lt;success&amp;gt;Card Group was successfully created&amp;lt;/success&amp;gt;&lt;br /&gt;
   &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Errors'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; - User is not authorized or is a Simple User. Only Admin, Reseller or Accounant can use this API method. &lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; - hash is not correct. Check API_Secret_Key and order or parameters while concatenating a hash_string.&lt;br /&gt;
* &amp;lt;error&amp;gt;You are not authorized to use this functionality&amp;lt;/error&amp;gt; - User has no permissions to manage Calling Cards. &lt;br /&gt;
* &amp;lt;error&amp;gt;Bad login&amp;lt;/error&amp;gt; - User is not authorized (possibly wrong Username). &lt;br /&gt;
* &amp;lt;error&amp;gt;Card Group must have name&amp;lt;/error&amp;gt; - Card Group name is not given. Name is requered parameter.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid use external function parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - use external script parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid allow loss calls parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - allow loss calls parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid tell cents parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - tell cents parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid solo pinless parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - solo pinless parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid disable voucher parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - voucher parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid hidden parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - hidden parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid callerid leave parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - caller id leave parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid date from&amp;lt;/error&amp;gt; - unix time stamp date not correct.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid date till&amp;lt;/error&amp;gt; - unix time stamp date not correct.&lt;br /&gt;
* &amp;lt;error&amp;gt;Date from is greater than date till&amp;lt;/error&amp;gt; - valid from is greater than valid till.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Tariff id&amp;lt;/error&amp;gt; - Tariff id is not correct. There is no such Tariff.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Lcr id&amp;lt;/error&amp;gt; - Lcr id is not correct. There is no such Lcr.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Dialplan id&amp;lt;/error&amp;gt; - Dialplan id is not correct. There is no such Dialplan.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Location id&amp;lt;/error&amp;gt; - Location id is not correct. There is no such Location.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Currency&amp;lt;/error&amp;gt; - Currency id is not correct. There is no such Currency.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Price with TAX&amp;lt;/error&amp;gt; - price is not correct, can not be negative.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
   &amp;lt;status&amp;gt;&lt;br /&gt;
     &amp;lt;error&amp;gt;Invalid solo pinless parameter, should be: 0 or 1&amp;lt;/error&amp;gt;&lt;br /&gt;
   &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_Card_Group_create&amp;diff=20293</id>
		<title>MOR API Card Group create</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_Card_Group_create&amp;diff=20293"/>
		<updated>2015-11-05T10:55:46Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: Created page with '=Description= MOR API Card Group create &amp;lt;br&amp;gt;&amp;lt;br&amp;gt; =Usage=  * Call: /api/cc_group_create * Methods: POST, GET(if allowed, not recomended) &amp;lt;br&amp;gt;&amp;lt;br&amp;gt; ===Parameters===  Parameters …'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Description=&lt;br /&gt;
[[MOR API]] Card Group create&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* Call: /api/cc_group_create&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parameters===&lt;br /&gt;
&lt;br /&gt;
Parameters which are '''included''' into hash:&lt;br /&gt;
&lt;br /&gt;
* name - name of a Card Group '''Required'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Parameters which are '''not included''' into hash:&lt;br /&gt;
&lt;br /&gt;
* '''[[MOR API hash construction | hash]]''' - SHA1 hash constructed using the '''parameters''' which are listed above. Note that the parameters are shown in the same order as they need to be when generating the hash. The last parameter in a row is '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&amp;lt;br&amp;gt;&lt;br /&gt;
* '''u''' - username for authentication. '''Required'''.&lt;br /&gt;
* '''description''' - description for Card Group.&lt;br /&gt;
* '''price_with_vat''' - price with TAX for Card Group.&lt;br /&gt;
* '''setup_fee''' - setup fee for Card Group.&lt;br /&gt;
* '''ghost_min_perc''' - ghost min percent for Card Group.&lt;br /&gt;
* '''daily_charge''' - daily charge for Card Group.&lt;br /&gt;
* '''tariff_id''' - Card Group tariff id.&lt;br /&gt;
* '''lcr_id''' - Card Group lcr id.&lt;br /&gt;
* '''date_from''' - Card Group valid from date.&lt;br /&gt;
* '''date_till''' - Card Group valid till date.&lt;br /&gt;
* '''number_length''' - Card Group number length.&lt;br /&gt;
* '''pin_length''' - Card Group pin length.&lt;br /&gt;
* '''dialplan_id''' - Card Group dial plan id.&lt;br /&gt;
* '''location_id''' - Card Group location id.&lt;br /&gt;
* '''tax_id''' - Card Group tax id.&lt;br /&gt;
* '''valid_after_first_use''' - number of days, after which Card Group gets valid.&lt;br /&gt;
* '''ghost_balance_perc''' - Card Group ghost balance percent.&lt;br /&gt;
* '''use_external_function''' - enable or disable use of external script;&lt;br /&gt;
* '''allow_loss_calls''' - Allow Loss Calls for Card Group.&lt;br /&gt;
* '''tell_cents''' - tell cents for Card Group.&lt;br /&gt;
* '''tell_balance_in_currency''' - Card Group Balance/Rate Currency.&lt;br /&gt;
* '''solo_pinless''' - enable or disable solo pinless.&lt;br /&gt;
* '''disable_voucher''' - enable or disable voucher.&lt;br /&gt;
* '''hidden''' - enable or disable hidden status.&lt;br /&gt;
* '''callerid_leave''' - enable or disable caller id leave.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have u = admin, API Secret Key = secret&lt;br /&gt;
We send:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/cc_group_create?u=admin&amp;amp;name=card_group_test&amp;amp;hash=7e112ededcfee097cce21b6201c6d2a00dda1f4c&lt;br /&gt;
&lt;br /&gt;
* Now we can find 1 newly created Card Group.'''&amp;lt;br&amp;gt;&lt;br /&gt;
'''* Note that if not passing optional parameters, default values will be used.'''&lt;br /&gt;
'''* Note that a Username and a Password are not included into hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Returns===&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
   &amp;lt;status&amp;gt;&lt;br /&gt;
     &amp;lt;success&amp;gt;Cards created: 11/11&amp;lt;/success&amp;gt;&lt;br /&gt;
   &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Errors'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; - User is not authorized or is a Simple User. Only Admin, Reseller or Accounant can use this API method. &lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; - hash is not correct. Check API_Secret_Key and order or parameters while concatenating a hash_string.&lt;br /&gt;
* &amp;lt;error&amp;gt;You are not authorized to use this functionality&amp;lt;/error&amp;gt; - User has no permissions to manage Calling Cards. &lt;br /&gt;
* &amp;lt;error&amp;gt;Bad login&amp;lt;/error&amp;gt; - User is not authorized (possibly wrong Username). &lt;br /&gt;
* &amp;lt;error&amp;gt;Card Group must have name&amp;lt;/error&amp;gt; - Card Group name is not given. Name is requered parameter.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid use external function parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - use external script parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid allow loss calls parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - allow loss calls parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid tell cents parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - tell cents parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid solo pinless parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - solo pinless parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid disable voucher parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - voucher parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid hidden parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - hidden parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid callerid leave parameter, should be: 0 or 1&amp;lt;/error&amp;gt; - caller id leave parameter can only be: 1  - enabled, 0 - disabled.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid date from&amp;lt;/error&amp;gt; - unix time stamp date not correct.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid date till&amp;lt;/error&amp;gt; - unix time stamp date not correct.&lt;br /&gt;
* &amp;lt;error&amp;gt;Date from is greater than date till&amp;lt;/error&amp;gt; - valid from is greater than valid till.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Tariff id&amp;lt;/error&amp;gt; - Tariff id is not correct. There is no such Tariff.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Lcr id&amp;lt;/error&amp;gt; - Lcr id is not correct. There is no such Lcr.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Dialplan id&amp;lt;/error&amp;gt; - Dialplan id is not correct. There is no such Dialplan.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Location id&amp;lt;/error&amp;gt; - Location id is not correct. There is no such Location.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Currency&amp;lt;/error&amp;gt; - Currency id is not correct. There is no such Currency.&lt;br /&gt;
* &amp;lt;error&amp;gt;Invalid Price with TAX&amp;lt;/error&amp;gt; - price is not correct, can not be negative.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
   &amp;lt;status&amp;gt;&lt;br /&gt;
     &amp;lt;error&amp;gt;Invalid solo pinless parameter, should be: 0 or 1&amp;lt;/error&amp;gt;&lt;br /&gt;
   &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API&amp;diff=20292</id>
		<title>MOR API</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API&amp;diff=20292"/>
		<updated>2015-11-05T10:14:21Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: /* Calling Cards */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:warning.png|100px|alt=&amp;quot;warning&amp;quot;|link=]]&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;IMPORTANT!!! API methods described here are for MOR X6. For previous versions please check appropriate [http://wiki.kolmisoft.com/index.php/MOR_Manual#Old_Manuals manual].&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
[[File:api.png|right|alt=&amp;quot;api&amp;quot;|link=]]&lt;br /&gt;
&amp;lt;mkmeta&amp;gt;Application Program Interface for MOR Class 5 Softswitch&amp;lt;/mkmeta&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=About=&lt;br /&gt;
MOR API lets other software interact with MOR without knowing the internal structure of the database (DB) and other logic.&lt;br /&gt;
&lt;br /&gt;
MOR accepts requests by HTML POST and returns results in XML.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=MOR users that are allowed to use MOR API=&lt;br /&gt;
* Admin&lt;br /&gt;
* Reseller&lt;br /&gt;
* Accountant - only by using Admin Hash and Secret key&lt;br /&gt;
* Simple User&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Functions=&lt;br /&gt;
&lt;br /&gt;
== API Related ==&lt;br /&gt;
* [[API Configuration]] – configuration options for API.&lt;br /&gt;
* [[MOR API hash construction|Hash construction]] – how to construct hash to authenticate data over API.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Balance==&lt;br /&gt;
* [[MOR API user balance update | user_balance_update]] (change_user_balance) – changes User's Balance&lt;br /&gt;
Various methods to retrieve User balance&lt;br /&gt;
* [[MOR API user_balance_get|user_balance_get]] (balance) – retrieves a User Balance.&lt;br /&gt;
* [[Balance in phone | user_simple_balance_get]] (simple_balance) – gets User's Balance&lt;br /&gt;
* [[MOR API user balance get by psw | user_balance_get_by_psw]] – gets User's Balance by his owned Device's Password&lt;br /&gt;
* [[MOR API User Balance get by Username | user_balance_get_by_username]] – gets User's Balance by his owned Device's Username&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Callback==&lt;br /&gt;
* [[MOR API callback init|callback_init]] (callback) – initiates callback.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Calling Cards==&lt;br /&gt;
* [[MOR API card_by_cli_update| card_by_cli_update]] (cc_by_cli) – creates and updates calling cards, including adding and transferring funds, by being identified according the Caller_ID.&lt;br /&gt;
* [[MOR API card_from_group_sell| card_from_group_sell]] (buy_card_from_callingroup) – sells cards from calling card group.&lt;br /&gt;
* [[MOR API card_group_get| card_group_get]] (show_calling_card_group) – show calling group info.&lt;br /&gt;
* [[MOR API card_balance_get| card_balance_get]] (card_balance_get) – show card's balance.&lt;br /&gt;
* [[MOR API card_payment_add| card_payment_add]] – add payment to the calling card.&lt;br /&gt;
* [[MOR_API_Calling_Cards_create| calling_cards_create]] – create Calling Cards.&lt;br /&gt;
* [[MOR_API_cc_groups_get| cc_groups_get]] – show Calling Cards Group info.&lt;br /&gt;
* [[MOR_API_Calling_Card_update| calling_card_update]] – update Calling Card.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Calls==&lt;br /&gt;
* [[MOR API user calls get|user_calls_get]] (user_calls) – retrieves a list of calls in a selected time period for a user/device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Conflines==&lt;br /&gt;
* [[MOR API conflines update|conflines_update]] – changes settings for API, Default User or Default Device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Credit notes==&lt;br /&gt;
* [[MOR API credit_notes_get| credit_notes_get]] (credit_notes) – credit notes list.&lt;br /&gt;
* [[MOR API credit_note_update| credit_note_update]] – credit note update.&lt;br /&gt;
* [[MOR API credit_notes_create| credit_note_create]] – credit note create.&lt;br /&gt;
* [[MOR API credit_notes_delete| credit_note_delete]] – credit note delete.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Device==&lt;br /&gt;
* [[MOR API device create| device_create]] – create device&lt;br /&gt;
* [[MOR API device delete| device_delete]] (delete_device) – delete device&lt;br /&gt;
* [[MOR API devices get | devices_get]] (device_list) – users device list&lt;br /&gt;
* [[MOR API device callflow get| device_callflow_get]] - returns information about specified device callflow state.&lt;br /&gt;
* [[MOR API device callflow update | device_callflow_update]] – updates information of specified device callflow state. &lt;br /&gt;
* [[MOR API CLI info get | cli_info_get]] (cli_get_info) – shows id of device where CLI belongs.&lt;br /&gt;
* [[MOR API CLI delete | cli_delete]] – deletes specified CLI. &lt;br /&gt;
* [[MOR API CLI add | cli_add]] – creates CLI and assigns it to the specified device.&lt;br /&gt;
* [[MOR API device clis get | device_clis_get]] – CLIs list by User and/or Device&lt;br /&gt;
* [[MOR API device details get | device_details_get]] – shows all information about specified device.&lt;br /&gt;
* [[MOR_API_device_update | device_update]]  –  updates location_id of selected Device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==DID==&lt;br /&gt;
&lt;br /&gt;
* [[MOR API dids get| dids_get]] – get list of particular DIDs&lt;br /&gt;
* [[MOR API did_create| did_create]] – DID create&lt;br /&gt;
* [[MOR_API_did_device_assign| did_device_assign]] (did_assign_device) – Assign Device to DID&lt;br /&gt;
* [[MOR_API_did_device_unassign| did_device_unassign]] (did_unassign_device) – Unassign Device from DID&lt;br /&gt;
* [[MOR_API_did_details_update| did_details_update]] (did_details_update) – Update DID details &lt;br /&gt;
* [[MOR API did subscription stop|did_subscription_stop]] – STOP DID subscription&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Email==&lt;br /&gt;
* [[MOR API email send| email_send]] (send_email) – send Email.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Financial statements==&lt;br /&gt;
* [[MOR API financial_statements_get| financial_statements_get]] (financial_statements) – financial statements list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Invoices==&lt;br /&gt;
* [[MOR API invoices_get|invoices_get]] (invoices) – retrieves a list of invoices in a selected time period.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Login==&lt;br /&gt;
* [[MOR API user_login|user_login]] (login) – logs user in to MOR.&lt;br /&gt;
* [[MOR API user_logout|user_logout]] (logout) – logs user out from MOR.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Monitorings==&lt;br /&gt;
* [[MOR API ma_activate_api| ma_activate]] – turn on monitorings addon&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Payments==&lt;br /&gt;
* [[MOR API payment_create| payment_create]] (create_payment) – create payment.&lt;br /&gt;
* [[MOR API payments_get| payments_get]] (payments_list) – payments list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Phonebooks==&lt;br /&gt;
* [[MOR API phonebooks_get| phonebooks_get]] (phonebooks_api ) – phonebooks list.&lt;br /&gt;
* [[MOR API phonebook_edit| phonebook_edit]] (phonebook_edit_api) – edit phonebook.&lt;br /&gt;
* [[MOR API phonebook_record_create| phonebook_record_create]]  – create phonebook.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Quickforwards==&lt;br /&gt;
* [[MOR API Quickforwards get| quickforwards_dids_get]] (quickforwards_dids_get) – get Quickforwards.&lt;br /&gt;
* [[MOR API Quickforwards update| quickforwards_did_update]] (quickforwards_did_update) – update Quickforwards.&lt;br /&gt;
* [[MOR API Quickforwards delete| quickforwards_did_delete]] (quickforwards_did_delete) – delete Quickforwards.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Rates==&lt;br /&gt;
* [[MOR API rate get|rate_get]] (rate) – check user rate by prefix&lt;br /&gt;
* [[MOR API tariff rates get| tariff_rates_get]] (get_tariff) – get all tariff's rates&lt;br /&gt;
* [[MOR API tariff_retail_import | tariff_retail_import ]] (import_relail_tariff) – import xml retail tariff&lt;br /&gt;
* [[MOR API tariff_wholesale_update | tariff_wholesale_update ]] (wholesale_tariff) – update or create wholesale tariff&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Services==&lt;br /&gt;
* [[MOR API Service create| service_create]] – create Service.&lt;br /&gt;
* [[MOR API Service delete| service_delete]] – delete Service.&lt;br /&gt;
* [[MOR API Services get| services_get]] – get Services.&lt;br /&gt;
* [[MOR API Service update| service_update]] – update Service.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==SMS==&lt;br /&gt;
* [[MOR API sms send| sms_send]] (send_sms) – send SMS.&lt;br /&gt;
* [[MOR_API_user_sms_service_subscribe | user_sms_service_subscribe ]] – User subscription to SMS Service.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Subscriptions==&lt;br /&gt;
* [[MOR API subscription delete|subscription_delete]] - Subscription delete.&lt;br /&gt;
* [[MOR API Subscriptions get|subscriptions_get]] - Subscriptions get.&lt;br /&gt;
* [[MOR API subscription create|subscription_create]] - Subscription create.&lt;br /&gt;
* [[MOR API subscription update|subscription_update]] - Subscription delete.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==User==&lt;br /&gt;
&lt;br /&gt;
* [[MOR API user_register| user_register]] – create new user from params.&lt;br /&gt;
* [[MOR API user_details_get | user_details_get]] (user_details) – gets user details.&lt;br /&gt;
* [[MOR_API_user_details_update| user_details_update]] (user_update_api) – update user from params.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Resellers ==&lt;br /&gt;
* [[MOR API reseller group create]] - create new Reseller Group&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Version==&lt;br /&gt;
* [[MOR API system version get| system_version_get]] (get_version) – get MOR version number.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
= Examples =&lt;br /&gt;
* [[MOR API PHP Examples]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=HTML POST=&lt;br /&gt;
All requests are in a similar format:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/&amp;lt;function&amp;gt;?u=username&lt;br /&gt;
&lt;br /&gt;
* username - the user name and password of the user who is asking for the data. &lt;br /&gt;
&lt;br /&gt;
If the user has 'admin' rights, he will get more results and  can perform more actions compared to a user who does not have such rights.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Useful to know=&lt;br /&gt;
&lt;br /&gt;
* All API methods returns data straight from database. It means that MOR GUI settings does not affect data, it will be returned as it is saved in database. For example:&lt;br /&gt;
** Value of money will be returned in Default System [[Currencies|Currency]].&lt;br /&gt;
** Date will not be affected of [[Configuration_from_GUI#Visual| Default date format]] setting.&lt;br /&gt;
** Value of money will not be affected of [[Configuration_from_GUI#Visual|Number digits]] setting.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=See also =&lt;br /&gt;
* [[API Configuration]]&lt;br /&gt;
* [[MOR integration]]&lt;br /&gt;
* [[How to block access to some API functions]]&lt;br /&gt;
* [[API specification to be implemented in the future]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_Calling_Card_update&amp;diff=20291</id>
		<title>MOR API Calling Card update</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_Calling_Card_update&amp;diff=20291"/>
		<updated>2015-11-05T10:11:33Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: Created page with '= NOTE: Available from MOR X7 =  =Description= MOR API Calling Card update &amp;lt;br&amp;gt;&amp;lt;br&amp;gt; =Usage=  * From '''MOR X7''' Calling Card: '''/api/calling_card_update''' * Methods: POST,…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= NOTE: Available from MOR X7 =&lt;br /&gt;
&lt;br /&gt;
=Description=&lt;br /&gt;
[[MOR API]] Calling Card update&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* From '''MOR X7''' Calling Card: '''/api/calling_card_update'''&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parametres===&lt;br /&gt;
&lt;br /&gt;
* u - username for authentication.&lt;br /&gt;
* card_id - Calling Card ID. '''Required'''.&lt;br /&gt;
* number - Number for the Calling Card.&lt;br /&gt;
* name - Card name for the Calling Card.&lt;br /&gt;
* pin - PIN code for the Calling Card.&lt;br /&gt;
* batch_number - Batch number for the Calling Card.&lt;br /&gt;
* callerid - Caller ID for the Calling Card.&lt;br /&gt;
* min_balance - Minimum balance for the Calling Card.&lt;br /&gt;
* daily_charge_paid_till - Timestamp of daily charge paid.&lt;br /&gt;
* language - Language for the Calling Card. &lt;br /&gt;
* distributor - Calling Card distributor (User) id.&lt;br /&gt;
&lt;br /&gt;
* [[MOR API hash construction | hash]] - SHA1 hash constructed using '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have: API Secret Key = secret, card_id = 1, number = 4673451679, name = card, pin = 7468, batch_number = 5456484, callerid = 2, min_balance = 5, daily_charge_paid_till = 1446721871, language = en, distributor = 2&lt;br /&gt;
&lt;br /&gt;
We send:&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/calling_card_update?u=admin&amp;amp;card_id=1&amp;amp;number=4673451679&amp;amp;name=card&amp;amp;pin=7468&amp;amp;batch_number=5456484&amp;amp;callerid=2&amp;amp;min_balance=5&amp;amp;daily_charge_paid_till=1446721871&amp;amp;language=en&amp;amp;distributor=2&amp;amp;hash=bc2f114099d16656d37e45fd9e8744cb9386d462&lt;br /&gt;
'''NOTE that username is not included in hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;&lt;br /&gt;
   &amp;lt;success&amp;gt;Calling card successfully updated&amp;lt;/success&amp;gt;&lt;br /&gt;
  &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Errors'''&lt;br /&gt;
* &amp;lt;error&amp;gt;Bad login&amp;lt;/error&amp;gt; - User supplied bad login.&lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; - Hash was not correct. Check API_Secret_Key and order or params while concatenating hash_string. &lt;br /&gt;
* &amp;lt;error&amp;gt;You are not authorized to use this functionality&amp;lt;/error&amp;gt; - User does not have rights to manage Calling Cards.&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; - User does not have access to Calling Cards.&lt;br /&gt;
* &amp;lt;error&amp;gt;Wrong Calling card ID&amp;lt;/error&amp;gt; - User supplied wrong Calling Card ID.&lt;br /&gt;
* &amp;lt;error&amp;gt;Calling card not found&amp;lt;/error&amp;gt; - Calling card was not found.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_Card_Groups_get&amp;diff=20289</id>
		<title>MOR API Card Groups get</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_Card_Groups_get&amp;diff=20289"/>
		<updated>2015-11-05T09:15:04Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: /* Parametres */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= NOTE: Available from MOR X7 =&lt;br /&gt;
&lt;br /&gt;
=Description=&lt;br /&gt;
[[MOR API]] Calling Cards Groups get&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* From '''MOR X7''' Calling Cards Groups: '''/api/cc_groups_get'''&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parametres===&lt;br /&gt;
&lt;br /&gt;
* u - username for authentication.&lt;br /&gt;
* cc_group_id - Calling Cards Group ID.&lt;br /&gt;
* [[MOR API hash construction | hash]] - SHA1 hash constructed using '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have: API Secret Key = secret&lt;br /&gt;
&lt;br /&gt;
We send:&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/cc_groups_get?u=admin&amp;amp;cc_group_id=1&amp;amp;hash=e5e9fa1ba31ecd1ae84f75caaa474f3a663f05f4&lt;br /&gt;
'''NOTE that username is not included in hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;&lt;br /&gt;
   &amp;lt;group_id&amp;gt;1&amp;lt;/group_id&amp;gt;&lt;br /&gt;
   &amp;lt;group_image&amp;gt;example.jpg&amp;lt;/group_image&amp;gt;&lt;br /&gt;
   &amp;lt;group_name&amp;gt;Test_cardgroup&amp;lt;/group_name&amp;gt;&lt;br /&gt;
   &amp;lt;group_description&amp;gt;Test_cardgroup description&amp;lt;/group_description&amp;gt;&lt;br /&gt;
   &amp;lt;group_number_pin_length&amp;gt;10/4&amp;lt;/group_number_pin_length&amp;gt;&lt;br /&gt;
   &amp;lt;group_tarrif&amp;gt;Test Tariff for Users&amp;lt;/group_tarrif&amp;gt;&lt;br /&gt;
   &amp;lt;group_lcr&amp;gt;Primary&amp;lt;/group_lcr&amp;gt;&lt;br /&gt;
   &amp;lt;group_price&amp;gt;10.0840&amp;lt;/group_price&amp;gt;&lt;br /&gt;
   &amp;lt;group_price_without_tax&amp;gt;10.0840&amp;lt;/group_price_without_tax&amp;gt;&lt;br /&gt;
   &amp;lt;group_cards_count&amp;gt;21&amp;lt;/group_cards_count&amp;gt;&lt;br /&gt;
  &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Errors'''&lt;br /&gt;
* &amp;lt;error&amp;gt;Bad login&amp;lt;/error&amp;gt; - User supplied bad login.&lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; - Hash was not correct. Check API_Secret_Key and order or params while concatenating hash_string. &lt;br /&gt;
* &amp;lt;error&amp;gt;You are not authorized to use this functionality&amp;lt;/error&amp;gt; - User does not have rights to manage Calling Cards.&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; - User does not have access to Calling Cards.&lt;br /&gt;
* &amp;lt;error&amp;gt;Wrong calling cards group ID&amp;lt;/error&amp;gt; - User supplied wrong Calling Cards group ID.&lt;br /&gt;
* &amp;lt;error&amp;gt;Calling cards groups were not found&amp;lt;/error&amp;gt; - Calling cards groups were not found.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API&amp;diff=20288</id>
		<title>MOR API</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API&amp;diff=20288"/>
		<updated>2015-11-04T17:41:17Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: /* Calling Cards */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:warning.png|100px|alt=&amp;quot;warning&amp;quot;|link=]]&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;IMPORTANT!!! API methods described here are for MOR X6. For previous versions please check appropriate [http://wiki.kolmisoft.com/index.php/MOR_Manual#Old_Manuals manual].&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
[[File:api.png|right|alt=&amp;quot;api&amp;quot;|link=]]&lt;br /&gt;
&amp;lt;mkmeta&amp;gt;Application Program Interface for MOR Class 5 Softswitch&amp;lt;/mkmeta&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=About=&lt;br /&gt;
MOR API lets other software interact with MOR without knowing the internal structure of the database (DB) and other logic.&lt;br /&gt;
&lt;br /&gt;
MOR accepts requests by HTML POST and returns results in XML.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=MOR users that are allowed to use MOR API=&lt;br /&gt;
* Admin&lt;br /&gt;
* Reseller&lt;br /&gt;
* Accountant - only by using Admin Hash and Secret key&lt;br /&gt;
* Simple User&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Functions=&lt;br /&gt;
&lt;br /&gt;
== API Related ==&lt;br /&gt;
* [[API Configuration]] – configuration options for API.&lt;br /&gt;
* [[MOR API hash construction|Hash construction]] – how to construct hash to authenticate data over API.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Balance==&lt;br /&gt;
* [[MOR API user balance update | user_balance_update]] (change_user_balance) – changes User's Balance&lt;br /&gt;
Various methods to retrieve User balance&lt;br /&gt;
* [[MOR API user_balance_get|user_balance_get]] (balance) – retrieves a User Balance.&lt;br /&gt;
* [[Balance in phone | user_simple_balance_get]] (simple_balance) – gets User's Balance&lt;br /&gt;
* [[MOR API user balance get by psw | user_balance_get_by_psw]] – gets User's Balance by his owned Device's Password&lt;br /&gt;
* [[MOR API User Balance get by Username | user_balance_get_by_username]] – gets User's Balance by his owned Device's Username&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Callback==&lt;br /&gt;
* [[MOR API callback init|callback_init]] (callback) – initiates callback.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Calling Cards==&lt;br /&gt;
* [[MOR API card_by_cli_update| card_by_cli_update]] (cc_by_cli) – creates and updates calling cards, including adding and transferring funds, by being identified according the Caller_ID.&lt;br /&gt;
* [[MOR API card_from_group_sell| card_from_group_sell]] (buy_card_from_callingroup) – sells cards from calling card group.&lt;br /&gt;
* [[MOR API card_group_get| card_group_get]] (show_calling_card_group) – show calling group info.&lt;br /&gt;
* [[MOR API card_balance_get| card_balance_get]] (card_balance_get) – show card's balance.&lt;br /&gt;
* [[MOR API card_payment_add| card_payment_add]] – add payment to the calling card.&lt;br /&gt;
* [[MOR_API_Calling_Cards_create| calling_cards_create]] – create Calling Cards.&lt;br /&gt;
* [[MOR_API_cc_groups_get| cc_groups_get]] – show Calling Cards Group info.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Calls==&lt;br /&gt;
* [[MOR API user calls get|user_calls_get]] (user_calls) – retrieves a list of calls in a selected time period for a user/device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Conflines==&lt;br /&gt;
* [[MOR API conflines update|conflines_update]] – changes settings for API, Default User or Default Device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Credit notes==&lt;br /&gt;
* [[MOR API credit_notes_get| credit_notes_get]] (credit_notes) – credit notes list.&lt;br /&gt;
* [[MOR API credit_note_update| credit_note_update]] – credit note update.&lt;br /&gt;
* [[MOR API credit_notes_create| credit_note_create]] – credit note create.&lt;br /&gt;
* [[MOR API credit_notes_delete| credit_note_delete]] – credit note delete.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Device==&lt;br /&gt;
* [[MOR API device create| device_create]] – create device&lt;br /&gt;
* [[MOR API device delete| device_delete]] (delete_device) – delete device&lt;br /&gt;
* [[MOR API devices get | devices_get]] (device_list) – users device list&lt;br /&gt;
* [[MOR API device callflow get| device_callflow_get]] - returns information about specified device callflow state.&lt;br /&gt;
* [[MOR API device callflow update | device_callflow_update]] – updates information of specified device callflow state. &lt;br /&gt;
* [[MOR API CLI info get | cli_info_get]] (cli_get_info) – shows id of device where CLI belongs.&lt;br /&gt;
* [[MOR API CLI delete | cli_delete]] – deletes specified CLI. &lt;br /&gt;
* [[MOR API CLI add | cli_add]] – creates CLI and assigns it to the specified device.&lt;br /&gt;
* [[MOR API device clis get | device_clis_get]] – CLIs list by User and/or Device&lt;br /&gt;
* [[MOR API device details get | device_details_get]] – shows all information about specified device.&lt;br /&gt;
* [[MOR_API_device_update | device_update]]  –  updates location_id of selected Device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==DID==&lt;br /&gt;
&lt;br /&gt;
* [[MOR API dids get| dids_get]] – get list of particular DIDs&lt;br /&gt;
* [[MOR API did_create| did_create]] – DID create&lt;br /&gt;
* [[MOR_API_did_device_assign| did_device_assign]] (did_assign_device) – Assign Device to DID&lt;br /&gt;
* [[MOR_API_did_device_unassign| did_device_unassign]] (did_unassign_device) – Unassign Device from DID&lt;br /&gt;
* [[MOR_API_did_details_update| did_details_update]] (did_details_update) – Update DID details &lt;br /&gt;
* [[MOR API did subscription stop|did_subscription_stop]] – STOP DID subscription&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Email==&lt;br /&gt;
* [[MOR API email send| email_send]] (send_email) – send Email.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Financial statements==&lt;br /&gt;
* [[MOR API financial_statements_get| financial_statements_get]] (financial_statements) – financial statements list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Invoices==&lt;br /&gt;
* [[MOR API invoices_get|invoices_get]] (invoices) – retrieves a list of invoices in a selected time period.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Login==&lt;br /&gt;
* [[MOR API user_login|user_login]] (login) – logs user in to MOR.&lt;br /&gt;
* [[MOR API user_logout|user_logout]] (logout) – logs user out from MOR.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Monitorings==&lt;br /&gt;
* [[MOR API ma_activate_api| ma_activate]] – turn on monitorings addon&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Payments==&lt;br /&gt;
* [[MOR API payment_create| payment_create]] (create_payment) – create payment.&lt;br /&gt;
* [[MOR API payments_get| payments_get]] (payments_list) – payments list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Phonebooks==&lt;br /&gt;
* [[MOR API phonebooks_get| phonebooks_get]] (phonebooks_api ) – phonebooks list.&lt;br /&gt;
* [[MOR API phonebook_edit| phonebook_edit]] (phonebook_edit_api) – edit phonebook.&lt;br /&gt;
* [[MOR API phonebook_record_create| phonebook_record_create]]  – create phonebook.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Quickforwards==&lt;br /&gt;
* [[MOR API Quickforwards get| quickforwards_dids_get]] (quickforwards_dids_get) – get Quickforwards.&lt;br /&gt;
* [[MOR API Quickforwards update| quickforwards_did_update]] (quickforwards_did_update) – update Quickforwards.&lt;br /&gt;
* [[MOR API Quickforwards delete| quickforwards_did_delete]] (quickforwards_did_delete) – delete Quickforwards.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Rates==&lt;br /&gt;
* [[MOR API rate get|rate_get]] (rate) – check user rate by prefix&lt;br /&gt;
* [[MOR API tariff rates get| tariff_rates_get]] (get_tariff) – get all tariff's rates&lt;br /&gt;
* [[MOR API tariff_retail_import | tariff_retail_import ]] (import_relail_tariff) – import xml retail tariff&lt;br /&gt;
* [[MOR API tariff_wholesale_update | tariff_wholesale_update ]] (wholesale_tariff) – update or create wholesale tariff&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Services==&lt;br /&gt;
* [[MOR API Service create| service_create]] – create Service.&lt;br /&gt;
* [[MOR API Service delete| service_delete]] – delete Service.&lt;br /&gt;
* [[MOR API Services get| services_get]] – get Services.&lt;br /&gt;
* [[MOR API Service update| service_update]] – update Service.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==SMS==&lt;br /&gt;
* [[MOR API sms send| sms_send]] (send_sms) – send SMS.&lt;br /&gt;
* [[MOR_API_user_sms_service_subscribe | user_sms_service_subscribe ]] – User subscription to SMS Service.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Subscriptions==&lt;br /&gt;
* [[MOR API subscription delete|subscription_delete]] - Subscription delete.&lt;br /&gt;
* [[MOR API Subscriptions get|subscriptions_get]] - Subscriptions get.&lt;br /&gt;
* [[MOR API subscription create|subscription_create]] - Subscription create.&lt;br /&gt;
* [[MOR API subscription update|subscription_update]] - Subscription delete.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==User==&lt;br /&gt;
&lt;br /&gt;
* [[MOR API user_register| user_register]] – create new user from params.&lt;br /&gt;
* [[MOR API user_details_get | user_details_get]] (user_details) – gets user details.&lt;br /&gt;
* [[MOR_API_user_details_update| user_details_update]] (user_update_api) – update user from params.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Resellers ==&lt;br /&gt;
* [[MOR API reseller group create]] - create new Reseller Group&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Version==&lt;br /&gt;
* [[MOR API system version get| system_version_get]] (get_version) – get MOR version number.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
= Examples =&lt;br /&gt;
* [[MOR API PHP Examples]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=HTML POST=&lt;br /&gt;
All requests are in a similar format:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/&amp;lt;function&amp;gt;?u=username&lt;br /&gt;
&lt;br /&gt;
* username - the user name and password of the user who is asking for the data. &lt;br /&gt;
&lt;br /&gt;
If the user has 'admin' rights, he will get more results and  can perform more actions compared to a user who does not have such rights.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Useful to know=&lt;br /&gt;
&lt;br /&gt;
* All API methods returns data straight from database. It means that MOR GUI settings does not affect data, it will be returned as it is saved in database. For example:&lt;br /&gt;
** Value of money will be returned in Default System [[Currencies|Currency]].&lt;br /&gt;
** Date will not be affected of [[Configuration_from_GUI#Visual| Default date format]] setting.&lt;br /&gt;
** Value of money will not be affected of [[Configuration_from_GUI#Visual|Number digits]] setting.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=See also =&lt;br /&gt;
* [[API Configuration]]&lt;br /&gt;
* [[MOR integration]]&lt;br /&gt;
* [[How to block access to some API functions]]&lt;br /&gt;
* [[API specification to be implemented in the future]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_Card_Groups_get&amp;diff=20287</id>
		<title>MOR API Card Groups get</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_Card_Groups_get&amp;diff=20287"/>
		<updated>2015-11-04T17:37:39Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: Created page with '= NOTE: Available from MOR X7 =  =Description= MOR API Calling Cards Groups get &amp;lt;br&amp;gt;&amp;lt;br&amp;gt; =Usage=  * From '''MOR X7''' Calling Cards Groups: '''/api/cc_groups_get''' * Methods…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= NOTE: Available from MOR X7 =&lt;br /&gt;
&lt;br /&gt;
=Description=&lt;br /&gt;
[[MOR API]] Calling Cards Groups get&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* From '''MOR X7''' Calling Cards Groups: '''/api/cc_groups_get'''&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parametres===&lt;br /&gt;
&lt;br /&gt;
* u - username for authentication. '''Required'''.&lt;br /&gt;
* cc_group_id - Calling Cards Group ID.&lt;br /&gt;
* [[MOR API hash construction | hash]] - SHA1 hash constructed using '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have: API Secret Key = secret&lt;br /&gt;
&lt;br /&gt;
We send:&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/cc_groups_get?u=admin&amp;amp;cc_group_id=1&amp;amp;hash=e5e9fa1ba31ecd1ae84f75caaa474f3a663f05f4&lt;br /&gt;
'''NOTE that username is not included in hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;&lt;br /&gt;
   &amp;lt;group_id&amp;gt;1&amp;lt;/group_id&amp;gt;&lt;br /&gt;
   &amp;lt;group_image&amp;gt;example.jpg&amp;lt;/group_image&amp;gt;&lt;br /&gt;
   &amp;lt;group_name&amp;gt;Test_cardgroup&amp;lt;/group_name&amp;gt;&lt;br /&gt;
   &amp;lt;group_description&amp;gt;Test_cardgroup description&amp;lt;/group_description&amp;gt;&lt;br /&gt;
   &amp;lt;group_number_pin_length&amp;gt;10/4&amp;lt;/group_number_pin_length&amp;gt;&lt;br /&gt;
   &amp;lt;group_tarrif&amp;gt;Test Tariff for Users&amp;lt;/group_tarrif&amp;gt;&lt;br /&gt;
   &amp;lt;group_lcr&amp;gt;Primary&amp;lt;/group_lcr&amp;gt;&lt;br /&gt;
   &amp;lt;group_price&amp;gt;10.0840&amp;lt;/group_price&amp;gt;&lt;br /&gt;
   &amp;lt;group_price_without_tax&amp;gt;10.0840&amp;lt;/group_price_without_tax&amp;gt;&lt;br /&gt;
   &amp;lt;group_cards_count&amp;gt;21&amp;lt;/group_cards_count&amp;gt;&lt;br /&gt;
  &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Errors'''&lt;br /&gt;
* &amp;lt;error&amp;gt;Bad login&amp;lt;/error&amp;gt; - User supplied bad login.&lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; - Hash was not correct. Check API_Secret_Key and order or params while concatenating hash_string. &lt;br /&gt;
* &amp;lt;error&amp;gt;You are not authorized to use this functionality&amp;lt;/error&amp;gt; - User does not have rights to manage Calling Cards.&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; - User does not have access to Calling Cards.&lt;br /&gt;
* &amp;lt;error&amp;gt;Wrong calling cards group ID&amp;lt;/error&amp;gt; - User supplied wrong Calling Cards group ID.&lt;br /&gt;
* &amp;lt;error&amp;gt;Calling cards groups were not found&amp;lt;/error&amp;gt; - Calling cards groups were not found.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API&amp;diff=20286</id>
		<title>MOR API</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API&amp;diff=20286"/>
		<updated>2015-11-04T13:31:40Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: /* Calling Cards */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:warning.png|100px|alt=&amp;quot;warning&amp;quot;|link=]]&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;IMPORTANT!!! API methods described here are for MOR X6. For previous versions please check appropriate [http://wiki.kolmisoft.com/index.php/MOR_Manual#Old_Manuals manual].&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
[[File:api.png|right|alt=&amp;quot;api&amp;quot;|link=]]&lt;br /&gt;
&amp;lt;mkmeta&amp;gt;Application Program Interface for MOR Class 5 Softswitch&amp;lt;/mkmeta&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=About=&lt;br /&gt;
MOR API lets other software interact with MOR without knowing the internal structure of the database (DB) and other logic.&lt;br /&gt;
&lt;br /&gt;
MOR accepts requests by HTML POST and returns results in XML.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=MOR users that are allowed to use MOR API=&lt;br /&gt;
* Admin&lt;br /&gt;
* Reseller&lt;br /&gt;
* Accountant - only by using Admin Hash and Secret key&lt;br /&gt;
* Simple User&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Functions=&lt;br /&gt;
&lt;br /&gt;
== API Related ==&lt;br /&gt;
* [[API Configuration]] – configuration options for API.&lt;br /&gt;
* [[MOR API hash construction|Hash construction]] – how to construct hash to authenticate data over API.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Balance==&lt;br /&gt;
* [[MOR API user balance update | user_balance_update]] (change_user_balance) – changes User's Balance&lt;br /&gt;
Various methods to retrieve User balance&lt;br /&gt;
* [[MOR API user_balance_get|user_balance_get]] (balance) – retrieves a User Balance.&lt;br /&gt;
* [[Balance in phone | user_simple_balance_get]] (simple_balance) – gets User's Balance&lt;br /&gt;
* [[MOR API user balance get by psw | user_balance_get_by_psw]] – gets User's Balance by his owned Device's Password&lt;br /&gt;
* [[MOR API User Balance get by Username | user_balance_get_by_username]] – gets User's Balance by his owned Device's Username&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Callback==&lt;br /&gt;
* [[MOR API callback init|callback_init]] (callback) – initiates callback.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Calling Cards==&lt;br /&gt;
* [[MOR API card_by_cli_update| card_by_cli_update]] (cc_by_cli) – creates and updates calling cards, including adding and transferring funds, by being identified according the Caller_ID.&lt;br /&gt;
* [[MOR API card_from_group_sell| card_from_group_sell]] (buy_card_from_callingroup) – sells cards from calling card group.&lt;br /&gt;
* [[MOR API card_group_get| card_group_get]] (show_calling_card_group) – show calling group info.&lt;br /&gt;
* [[MOR API card_balance_get| card_balance_get]] (card_balance_get) – show card's balance.&lt;br /&gt;
* [[MOR API card_payment_add| card_payment_add]] – add payment to the calling card.&lt;br /&gt;
* [[MOR_API_Calling_Cards_create| calling_cards_create]] – create Calling Cards.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Calls==&lt;br /&gt;
* [[MOR API user calls get|user_calls_get]] (user_calls) – retrieves a list of calls in a selected time period for a user/device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Conflines==&lt;br /&gt;
* [[MOR API conflines update|conflines_update]] – changes settings for API, Default User or Default Device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Credit notes==&lt;br /&gt;
* [[MOR API credit_notes_get| credit_notes_get]] (credit_notes) – credit notes list.&lt;br /&gt;
* [[MOR API credit_note_update| credit_note_update]] – credit note update.&lt;br /&gt;
* [[MOR API credit_notes_create| credit_note_create]] – credit note create.&lt;br /&gt;
* [[MOR API credit_notes_delete| credit_note_delete]] – credit note delete.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Device==&lt;br /&gt;
* [[MOR API device create| device_create]] – create device&lt;br /&gt;
* [[MOR API device delete| device_delete]] (delete_device) – delete device&lt;br /&gt;
* [[MOR API devices get | devices_get]] (device_list) – users device list&lt;br /&gt;
* [[MOR API device callflow get| device_callflow_get]] - returns information about specified device callflow state.&lt;br /&gt;
* [[MOR API device callflow update | device_callflow_update]] – updates information of specified device callflow state. &lt;br /&gt;
* [[MOR API CLI info get | cli_info_get]] (cli_get_info) – shows id of device where CLI belongs.&lt;br /&gt;
* [[MOR API CLI delete | cli_delete]] – deletes specified CLI. &lt;br /&gt;
* [[MOR API CLI add | cli_add]] – creates CLI and assigns it to the specified device.&lt;br /&gt;
* [[MOR API device clis get | device_clis_get]] – CLIs list by User and/or Device&lt;br /&gt;
* [[MOR API device details get | device_details_get]] – shows all information about specified device.&lt;br /&gt;
* [[MOR_API_device_update | device_update]]  –  updates location_id of selected Device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==DID==&lt;br /&gt;
&lt;br /&gt;
* [[MOR API dids get| dids_get]] – get list of particular DIDs&lt;br /&gt;
* [[MOR API did_create| did_create]] – DID create&lt;br /&gt;
* [[MOR_API_did_device_assign| did_device_assign]] (did_assign_device) – Assign Device to DID&lt;br /&gt;
* [[MOR_API_did_device_unassign| did_device_unassign]] (did_unassign_device) – Unassign Device from DID&lt;br /&gt;
* [[MOR_API_did_details_update| did_details_update]] (did_details_update) – Update DID details &lt;br /&gt;
* [[MOR API did subscription stop|did_subscription_stop]] – STOP DID subscription&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Email==&lt;br /&gt;
* [[MOR API email send| email_send]] (send_email) – send Email.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Financial statements==&lt;br /&gt;
* [[MOR API financial_statements_get| financial_statements_get]] (financial_statements) – financial statements list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Invoices==&lt;br /&gt;
* [[MOR API invoices_get|invoices_get]] (invoices) – retrieves a list of invoices in a selected time period.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Login==&lt;br /&gt;
* [[MOR API user_login|user_login]] (login) – logs user in to MOR.&lt;br /&gt;
* [[MOR API user_logout|user_logout]] (logout) – logs user out from MOR.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Monitorings==&lt;br /&gt;
* [[MOR API ma_activate_api| ma_activate]] – turn on monitorings addon&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Payments==&lt;br /&gt;
* [[MOR API payment_create| payment_create]] (create_payment) – create payment.&lt;br /&gt;
* [[MOR API payments_get| payments_get]] (payments_list) – payments list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Phonebooks==&lt;br /&gt;
* [[MOR API phonebooks_get| phonebooks_get]] (phonebooks_api ) – phonebooks list.&lt;br /&gt;
* [[MOR API phonebook_edit| phonebook_edit]] (phonebook_edit_api) – edit phonebook.&lt;br /&gt;
* [[MOR API phonebook_record_create| phonebook_record_create]]  – create phonebook.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Quickforwards==&lt;br /&gt;
* [[MOR API Quickforwards get| quickforwards_dids_get]] (quickforwards_dids_get) – get Quickforwards.&lt;br /&gt;
* [[MOR API Quickforwards update| quickforwards_did_update]] (quickforwards_did_update) – update Quickforwards.&lt;br /&gt;
* [[MOR API Quickforwards delete| quickforwards_did_delete]] (quickforwards_did_delete) – delete Quickforwards.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Rates==&lt;br /&gt;
* [[MOR API rate get|rate_get]] (rate) – check user rate by prefix&lt;br /&gt;
* [[MOR API tariff rates get| tariff_rates_get]] (get_tariff) – get all tariff's rates&lt;br /&gt;
* [[MOR API tariff_retail_import | tariff_retail_import ]] (import_relail_tariff) – import xml retail tariff&lt;br /&gt;
* [[MOR API tariff_wholesale_update | tariff_wholesale_update ]] (wholesale_tariff) – update or create wholesale tariff&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Services==&lt;br /&gt;
* [[MOR API Service create| service_create]] – create Service.&lt;br /&gt;
* [[MOR API Service delete| service_delete]] – delete Service.&lt;br /&gt;
* [[MOR API Services get| services_get]] – get Services.&lt;br /&gt;
* [[MOR API Service update| service_update]] – update Service.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==SMS==&lt;br /&gt;
* [[MOR API sms send| sms_send]] (send_sms) – send SMS.&lt;br /&gt;
* [[MOR_API_user_sms_service_subscribe | user_sms_service_subscribe ]] – User subscription to SMS Service.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Subscriptions==&lt;br /&gt;
* [[MOR API subscription delete|subscription_delete]] - Subscription delete.&lt;br /&gt;
* [[MOR API Subscriptions get|subscriptions_get]] - Subscriptions get.&lt;br /&gt;
* [[MOR API subscription create|subscription_create]] - Subscription create.&lt;br /&gt;
* [[MOR API subscription update|subscription_update]] - Subscription delete.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==User==&lt;br /&gt;
&lt;br /&gt;
* [[MOR API user_register| user_register]] – create new user from params.&lt;br /&gt;
* [[MOR API user_details_get | user_details_get]] (user_details) – gets user details.&lt;br /&gt;
* [[MOR_API_user_details_update| user_details_update]] (user_update_api) – update user from params.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Resellers ==&lt;br /&gt;
* [[MOR API reseller group create]] - create new Reseller Group&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Version==&lt;br /&gt;
* [[MOR API system version get| system_version_get]] (get_version) – get MOR version number.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
= Examples =&lt;br /&gt;
* [[MOR API PHP Examples]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=HTML POST=&lt;br /&gt;
All requests are in a similar format:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/&amp;lt;function&amp;gt;?u=username&lt;br /&gt;
&lt;br /&gt;
* username - the user name and password of the user who is asking for the data. &lt;br /&gt;
&lt;br /&gt;
If the user has 'admin' rights, he will get more results and  can perform more actions compared to a user who does not have such rights.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Useful to know=&lt;br /&gt;
&lt;br /&gt;
* All API methods returns data straight from database. It means that MOR GUI settings does not affect data, it will be returned as it is saved in database. For example:&lt;br /&gt;
** Value of money will be returned in Default System [[Currencies|Currency]].&lt;br /&gt;
** Date will not be affected of [[Configuration_from_GUI#Visual| Default date format]] setting.&lt;br /&gt;
** Value of money will not be affected of [[Configuration_from_GUI#Visual|Number digits]] setting.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=See also =&lt;br /&gt;
* [[API Configuration]]&lt;br /&gt;
* [[MOR integration]]&lt;br /&gt;
* [[How to block access to some API functions]]&lt;br /&gt;
* [[API specification to be implemented in the future]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API&amp;diff=20285</id>
		<title>MOR API</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API&amp;diff=20285"/>
		<updated>2015-11-04T13:30:39Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: /* Calling Cards */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:warning.png|100px|alt=&amp;quot;warning&amp;quot;|link=]]&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;IMPORTANT!!! API methods described here are for MOR X6. For previous versions please check appropriate [http://wiki.kolmisoft.com/index.php/MOR_Manual#Old_Manuals manual].&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
[[File:api.png|right|alt=&amp;quot;api&amp;quot;|link=]]&lt;br /&gt;
&amp;lt;mkmeta&amp;gt;Application Program Interface for MOR Class 5 Softswitch&amp;lt;/mkmeta&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=About=&lt;br /&gt;
MOR API lets other software interact with MOR without knowing the internal structure of the database (DB) and other logic.&lt;br /&gt;
&lt;br /&gt;
MOR accepts requests by HTML POST and returns results in XML.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=MOR users that are allowed to use MOR API=&lt;br /&gt;
* Admin&lt;br /&gt;
* Reseller&lt;br /&gt;
* Accountant - only by using Admin Hash and Secret key&lt;br /&gt;
* Simple User&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Functions=&lt;br /&gt;
&lt;br /&gt;
== API Related ==&lt;br /&gt;
* [[API Configuration]] – configuration options for API.&lt;br /&gt;
* [[MOR API hash construction|Hash construction]] – how to construct hash to authenticate data over API.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Balance==&lt;br /&gt;
* [[MOR API user balance update | user_balance_update]] (change_user_balance) – changes User's Balance&lt;br /&gt;
Various methods to retrieve User balance&lt;br /&gt;
* [[MOR API user_balance_get|user_balance_get]] (balance) – retrieves a User Balance.&lt;br /&gt;
* [[Balance in phone | user_simple_balance_get]] (simple_balance) – gets User's Balance&lt;br /&gt;
* [[MOR API user balance get by psw | user_balance_get_by_psw]] – gets User's Balance by his owned Device's Password&lt;br /&gt;
* [[MOR API User Balance get by Username | user_balance_get_by_username]] – gets User's Balance by his owned Device's Username&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Callback==&lt;br /&gt;
* [[MOR API callback init|callback_init]] (callback) – initiates callback.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Calling Cards==&lt;br /&gt;
* [[MOR API card_by_cli_update| card_by_cli_update]] (cc_by_cli) – creates and updates calling cards, including adding and transferring funds, by being identified according the Caller_ID.&lt;br /&gt;
* [[MOR API card_from_group_sell| card_from_group_sell]] (buy_card_from_callingroup) – sells cards from calling card group.&lt;br /&gt;
* [[MOR API card_group_get| card_group_get]] (show_calling_card_group) – show calling group info.&lt;br /&gt;
* [[MOR API card_balance_get| card_balance_get]] (card_balance_get) – show card's balance.&lt;br /&gt;
* [[MOR API card_payment_add| card_payment_add]] – add payment to the calling card.&lt;br /&gt;
* [[MOR_API_Calling_Cards_create| calling_cards_create]] – create calling cards.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Calls==&lt;br /&gt;
* [[MOR API user calls get|user_calls_get]] (user_calls) – retrieves a list of calls in a selected time period for a user/device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Conflines==&lt;br /&gt;
* [[MOR API conflines update|conflines_update]] – changes settings for API, Default User or Default Device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Credit notes==&lt;br /&gt;
* [[MOR API credit_notes_get| credit_notes_get]] (credit_notes) – credit notes list.&lt;br /&gt;
* [[MOR API credit_note_update| credit_note_update]] – credit note update.&lt;br /&gt;
* [[MOR API credit_notes_create| credit_note_create]] – credit note create.&lt;br /&gt;
* [[MOR API credit_notes_delete| credit_note_delete]] – credit note delete.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Device==&lt;br /&gt;
* [[MOR API device create| device_create]] – create device&lt;br /&gt;
* [[MOR API device delete| device_delete]] (delete_device) – delete device&lt;br /&gt;
* [[MOR API devices get | devices_get]] (device_list) – users device list&lt;br /&gt;
* [[MOR API device callflow get| device_callflow_get]] - returns information about specified device callflow state.&lt;br /&gt;
* [[MOR API device callflow update | device_callflow_update]] – updates information of specified device callflow state. &lt;br /&gt;
* [[MOR API CLI info get | cli_info_get]] (cli_get_info) – shows id of device where CLI belongs.&lt;br /&gt;
* [[MOR API CLI delete | cli_delete]] – deletes specified CLI. &lt;br /&gt;
* [[MOR API CLI add | cli_add]] – creates CLI and assigns it to the specified device.&lt;br /&gt;
* [[MOR API device clis get | device_clis_get]] – CLIs list by User and/or Device&lt;br /&gt;
* [[MOR API device details get | device_details_get]] – shows all information about specified device.&lt;br /&gt;
* [[MOR_API_device_update | device_update]]  –  updates location_id of selected Device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==DID==&lt;br /&gt;
&lt;br /&gt;
* [[MOR API dids get| dids_get]] – get list of particular DIDs&lt;br /&gt;
* [[MOR API did_create| did_create]] – DID create&lt;br /&gt;
* [[MOR_API_did_device_assign| did_device_assign]] (did_assign_device) – Assign Device to DID&lt;br /&gt;
* [[MOR_API_did_device_unassign| did_device_unassign]] (did_unassign_device) – Unassign Device from DID&lt;br /&gt;
* [[MOR_API_did_details_update| did_details_update]] (did_details_update) – Update DID details &lt;br /&gt;
* [[MOR API did subscription stop|did_subscription_stop]] – STOP DID subscription&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Email==&lt;br /&gt;
* [[MOR API email send| email_send]] (send_email) – send Email.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Financial statements==&lt;br /&gt;
* [[MOR API financial_statements_get| financial_statements_get]] (financial_statements) – financial statements list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Invoices==&lt;br /&gt;
* [[MOR API invoices_get|invoices_get]] (invoices) – retrieves a list of invoices in a selected time period.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Login==&lt;br /&gt;
* [[MOR API user_login|user_login]] (login) – logs user in to MOR.&lt;br /&gt;
* [[MOR API user_logout|user_logout]] (logout) – logs user out from MOR.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Monitorings==&lt;br /&gt;
* [[MOR API ma_activate_api| ma_activate]] – turn on monitorings addon&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Payments==&lt;br /&gt;
* [[MOR API payment_create| payment_create]] (create_payment) – create payment.&lt;br /&gt;
* [[MOR API payments_get| payments_get]] (payments_list) – payments list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Phonebooks==&lt;br /&gt;
* [[MOR API phonebooks_get| phonebooks_get]] (phonebooks_api ) – phonebooks list.&lt;br /&gt;
* [[MOR API phonebook_edit| phonebook_edit]] (phonebook_edit_api) – edit phonebook.&lt;br /&gt;
* [[MOR API phonebook_record_create| phonebook_record_create]]  – create phonebook.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Quickforwards==&lt;br /&gt;
* [[MOR API Quickforwards get| quickforwards_dids_get]] (quickforwards_dids_get) – get Quickforwards.&lt;br /&gt;
* [[MOR API Quickforwards update| quickforwards_did_update]] (quickforwards_did_update) – update Quickforwards.&lt;br /&gt;
* [[MOR API Quickforwards delete| quickforwards_did_delete]] (quickforwards_did_delete) – delete Quickforwards.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Rates==&lt;br /&gt;
* [[MOR API rate get|rate_get]] (rate) – check user rate by prefix&lt;br /&gt;
* [[MOR API tariff rates get| tariff_rates_get]] (get_tariff) – get all tariff's rates&lt;br /&gt;
* [[MOR API tariff_retail_import | tariff_retail_import ]] (import_relail_tariff) – import xml retail tariff&lt;br /&gt;
* [[MOR API tariff_wholesale_update | tariff_wholesale_update ]] (wholesale_tariff) – update or create wholesale tariff&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Services==&lt;br /&gt;
* [[MOR API Service create| service_create]] – create Service.&lt;br /&gt;
* [[MOR API Service delete| service_delete]] – delete Service.&lt;br /&gt;
* [[MOR API Services get| services_get]] – get Services.&lt;br /&gt;
* [[MOR API Service update| service_update]] – update Service.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==SMS==&lt;br /&gt;
* [[MOR API sms send| sms_send]] (send_sms) – send SMS.&lt;br /&gt;
* [[MOR_API_user_sms_service_subscribe | user_sms_service_subscribe ]] – User subscription to SMS Service.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Subscriptions==&lt;br /&gt;
* [[MOR API subscription delete|subscription_delete]] - Subscription delete.&lt;br /&gt;
* [[MOR API Subscriptions get|subscriptions_get]] - Subscriptions get.&lt;br /&gt;
* [[MOR API subscription create|subscription_create]] - Subscription create.&lt;br /&gt;
* [[MOR API subscription update|subscription_update]] - Subscription delete.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==User==&lt;br /&gt;
&lt;br /&gt;
* [[MOR API user_register| user_register]] – create new user from params.&lt;br /&gt;
* [[MOR API user_details_get | user_details_get]] (user_details) – gets user details.&lt;br /&gt;
* [[MOR_API_user_details_update| user_details_update]] (user_update_api) – update user from params.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Resellers ==&lt;br /&gt;
* [[MOR API reseller group create]] - create new Reseller Group&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Version==&lt;br /&gt;
* [[MOR API system version get| system_version_get]] (get_version) – get MOR version number.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
= Examples =&lt;br /&gt;
* [[MOR API PHP Examples]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=HTML POST=&lt;br /&gt;
All requests are in a similar format:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/&amp;lt;function&amp;gt;?u=username&lt;br /&gt;
&lt;br /&gt;
* username - the user name and password of the user who is asking for the data. &lt;br /&gt;
&lt;br /&gt;
If the user has 'admin' rights, he will get more results and  can perform more actions compared to a user who does not have such rights.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Useful to know=&lt;br /&gt;
&lt;br /&gt;
* All API methods returns data straight from database. It means that MOR GUI settings does not affect data, it will be returned as it is saved in database. For example:&lt;br /&gt;
** Value of money will be returned in Default System [[Currencies|Currency]].&lt;br /&gt;
** Date will not be affected of [[Configuration_from_GUI#Visual| Default date format]] setting.&lt;br /&gt;
** Value of money will not be affected of [[Configuration_from_GUI#Visual|Number digits]] setting.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=See also =&lt;br /&gt;
* [[API Configuration]]&lt;br /&gt;
* [[MOR integration]]&lt;br /&gt;
* [[How to block access to some API functions]]&lt;br /&gt;
* [[API specification to be implemented in the future]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API&amp;diff=20284</id>
		<title>MOR API</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API&amp;diff=20284"/>
		<updated>2015-11-04T13:30:28Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: /* Calling Cards */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:warning.png|100px|alt=&amp;quot;warning&amp;quot;|link=]]&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;IMPORTANT!!! API methods described here are for MOR X6. For previous versions please check appropriate [http://wiki.kolmisoft.com/index.php/MOR_Manual#Old_Manuals manual].&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
[[File:api.png|right|alt=&amp;quot;api&amp;quot;|link=]]&lt;br /&gt;
&amp;lt;mkmeta&amp;gt;Application Program Interface for MOR Class 5 Softswitch&amp;lt;/mkmeta&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=About=&lt;br /&gt;
MOR API lets other software interact with MOR without knowing the internal structure of the database (DB) and other logic.&lt;br /&gt;
&lt;br /&gt;
MOR accepts requests by HTML POST and returns results in XML.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=MOR users that are allowed to use MOR API=&lt;br /&gt;
* Admin&lt;br /&gt;
* Reseller&lt;br /&gt;
* Accountant - only by using Admin Hash and Secret key&lt;br /&gt;
* Simple User&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Functions=&lt;br /&gt;
&lt;br /&gt;
== API Related ==&lt;br /&gt;
* [[API Configuration]] – configuration options for API.&lt;br /&gt;
* [[MOR API hash construction|Hash construction]] – how to construct hash to authenticate data over API.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Balance==&lt;br /&gt;
* [[MOR API user balance update | user_balance_update]] (change_user_balance) – changes User's Balance&lt;br /&gt;
Various methods to retrieve User balance&lt;br /&gt;
* [[MOR API user_balance_get|user_balance_get]] (balance) – retrieves a User Balance.&lt;br /&gt;
* [[Balance in phone | user_simple_balance_get]] (simple_balance) – gets User's Balance&lt;br /&gt;
* [[MOR API user balance get by psw | user_balance_get_by_psw]] – gets User's Balance by his owned Device's Password&lt;br /&gt;
* [[MOR API User Balance get by Username | user_balance_get_by_username]] – gets User's Balance by his owned Device's Username&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Callback==&lt;br /&gt;
* [[MOR API callback init|callback_init]] (callback) – initiates callback.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Calling Cards==&lt;br /&gt;
* [[MOR API card_by_cli_update| card_by_cli_update]] (cc_by_cli) – creates and updates calling cards, including adding and transferring funds, by being identified according the Caller_ID.&lt;br /&gt;
* [[MOR API card_from_group_sell| card_from_group_sell]] (buy_card_from_callingroup) – sells cards from calling card group.&lt;br /&gt;
* [[MOR API card_group_get| card_group_get]] (show_calling_card_group) – show calling group info.&lt;br /&gt;
* [[MOR API card_balance_get| card_balance_get]] (card_balance_get) – show card's balance.&lt;br /&gt;
* [[MOR API card_payment_add| card_payment_add]] – add payment to the calling card.&lt;br /&gt;
* [[MOR_API_Calling_Cards_create| alling_cards_create]] – create calling cards.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Calls==&lt;br /&gt;
* [[MOR API user calls get|user_calls_get]] (user_calls) – retrieves a list of calls in a selected time period for a user/device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Conflines==&lt;br /&gt;
* [[MOR API conflines update|conflines_update]] – changes settings for API, Default User or Default Device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Credit notes==&lt;br /&gt;
* [[MOR API credit_notes_get| credit_notes_get]] (credit_notes) – credit notes list.&lt;br /&gt;
* [[MOR API credit_note_update| credit_note_update]] – credit note update.&lt;br /&gt;
* [[MOR API credit_notes_create| credit_note_create]] – credit note create.&lt;br /&gt;
* [[MOR API credit_notes_delete| credit_note_delete]] – credit note delete.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Device==&lt;br /&gt;
* [[MOR API device create| device_create]] – create device&lt;br /&gt;
* [[MOR API device delete| device_delete]] (delete_device) – delete device&lt;br /&gt;
* [[MOR API devices get | devices_get]] (device_list) – users device list&lt;br /&gt;
* [[MOR API device callflow get| device_callflow_get]] - returns information about specified device callflow state.&lt;br /&gt;
* [[MOR API device callflow update | device_callflow_update]] – updates information of specified device callflow state. &lt;br /&gt;
* [[MOR API CLI info get | cli_info_get]] (cli_get_info) – shows id of device where CLI belongs.&lt;br /&gt;
* [[MOR API CLI delete | cli_delete]] – deletes specified CLI. &lt;br /&gt;
* [[MOR API CLI add | cli_add]] – creates CLI and assigns it to the specified device.&lt;br /&gt;
* [[MOR API device clis get | device_clis_get]] – CLIs list by User and/or Device&lt;br /&gt;
* [[MOR API device details get | device_details_get]] – shows all information about specified device.&lt;br /&gt;
* [[MOR_API_device_update | device_update]]  –  updates location_id of selected Device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==DID==&lt;br /&gt;
&lt;br /&gt;
* [[MOR API dids get| dids_get]] – get list of particular DIDs&lt;br /&gt;
* [[MOR API did_create| did_create]] – DID create&lt;br /&gt;
* [[MOR_API_did_device_assign| did_device_assign]] (did_assign_device) – Assign Device to DID&lt;br /&gt;
* [[MOR_API_did_device_unassign| did_device_unassign]] (did_unassign_device) – Unassign Device from DID&lt;br /&gt;
* [[MOR_API_did_details_update| did_details_update]] (did_details_update) – Update DID details &lt;br /&gt;
* [[MOR API did subscription stop|did_subscription_stop]] – STOP DID subscription&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Email==&lt;br /&gt;
* [[MOR API email send| email_send]] (send_email) – send Email.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Financial statements==&lt;br /&gt;
* [[MOR API financial_statements_get| financial_statements_get]] (financial_statements) – financial statements list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Invoices==&lt;br /&gt;
* [[MOR API invoices_get|invoices_get]] (invoices) – retrieves a list of invoices in a selected time period.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Login==&lt;br /&gt;
* [[MOR API user_login|user_login]] (login) – logs user in to MOR.&lt;br /&gt;
* [[MOR API user_logout|user_logout]] (logout) – logs user out from MOR.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Monitorings==&lt;br /&gt;
* [[MOR API ma_activate_api| ma_activate]] – turn on monitorings addon&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Payments==&lt;br /&gt;
* [[MOR API payment_create| payment_create]] (create_payment) – create payment.&lt;br /&gt;
* [[MOR API payments_get| payments_get]] (payments_list) – payments list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Phonebooks==&lt;br /&gt;
* [[MOR API phonebooks_get| phonebooks_get]] (phonebooks_api ) – phonebooks list.&lt;br /&gt;
* [[MOR API phonebook_edit| phonebook_edit]] (phonebook_edit_api) – edit phonebook.&lt;br /&gt;
* [[MOR API phonebook_record_create| phonebook_record_create]]  – create phonebook.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Quickforwards==&lt;br /&gt;
* [[MOR API Quickforwards get| quickforwards_dids_get]] (quickforwards_dids_get) – get Quickforwards.&lt;br /&gt;
* [[MOR API Quickforwards update| quickforwards_did_update]] (quickforwards_did_update) – update Quickforwards.&lt;br /&gt;
* [[MOR API Quickforwards delete| quickforwards_did_delete]] (quickforwards_did_delete) – delete Quickforwards.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Rates==&lt;br /&gt;
* [[MOR API rate get|rate_get]] (rate) – check user rate by prefix&lt;br /&gt;
* [[MOR API tariff rates get| tariff_rates_get]] (get_tariff) – get all tariff's rates&lt;br /&gt;
* [[MOR API tariff_retail_import | tariff_retail_import ]] (import_relail_tariff) – import xml retail tariff&lt;br /&gt;
* [[MOR API tariff_wholesale_update | tariff_wholesale_update ]] (wholesale_tariff) – update or create wholesale tariff&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Services==&lt;br /&gt;
* [[MOR API Service create| service_create]] – create Service.&lt;br /&gt;
* [[MOR API Service delete| service_delete]] – delete Service.&lt;br /&gt;
* [[MOR API Services get| services_get]] – get Services.&lt;br /&gt;
* [[MOR API Service update| service_update]] – update Service.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==SMS==&lt;br /&gt;
* [[MOR API sms send| sms_send]] (send_sms) – send SMS.&lt;br /&gt;
* [[MOR_API_user_sms_service_subscribe | user_sms_service_subscribe ]] – User subscription to SMS Service.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Subscriptions==&lt;br /&gt;
* [[MOR API subscription delete|subscription_delete]] - Subscription delete.&lt;br /&gt;
* [[MOR API Subscriptions get|subscriptions_get]] - Subscriptions get.&lt;br /&gt;
* [[MOR API subscription create|subscription_create]] - Subscription create.&lt;br /&gt;
* [[MOR API subscription update|subscription_update]] - Subscription delete.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==User==&lt;br /&gt;
&lt;br /&gt;
* [[MOR API user_register| user_register]] – create new user from params.&lt;br /&gt;
* [[MOR API user_details_get | user_details_get]] (user_details) – gets user details.&lt;br /&gt;
* [[MOR_API_user_details_update| user_details_update]] (user_update_api) – update user from params.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Resellers ==&lt;br /&gt;
* [[MOR API reseller group create]] - create new Reseller Group&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Version==&lt;br /&gt;
* [[MOR API system version get| system_version_get]] (get_version) – get MOR version number.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
= Examples =&lt;br /&gt;
* [[MOR API PHP Examples]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=HTML POST=&lt;br /&gt;
All requests are in a similar format:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/&amp;lt;function&amp;gt;?u=username&lt;br /&gt;
&lt;br /&gt;
* username - the user name and password of the user who is asking for the data. &lt;br /&gt;
&lt;br /&gt;
If the user has 'admin' rights, he will get more results and  can perform more actions compared to a user who does not have such rights.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Useful to know=&lt;br /&gt;
&lt;br /&gt;
* All API methods returns data straight from database. It means that MOR GUI settings does not affect data, it will be returned as it is saved in database. For example:&lt;br /&gt;
** Value of money will be returned in Default System [[Currencies|Currency]].&lt;br /&gt;
** Date will not be affected of [[Configuration_from_GUI#Visual| Default date format]] setting.&lt;br /&gt;
** Value of money will not be affected of [[Configuration_from_GUI#Visual|Number digits]] setting.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=See also =&lt;br /&gt;
* [[API Configuration]]&lt;br /&gt;
* [[MOR integration]]&lt;br /&gt;
* [[How to block access to some API functions]]&lt;br /&gt;
* [[API specification to be implemented in the future]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_Calling_Cards_create&amp;diff=20283</id>
		<title>MOR API Calling Cards create</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_Calling_Cards_create&amp;diff=20283"/>
		<updated>2015-11-04T13:28:59Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: Created page with '=Description= MOR API Calling Cards create &amp;lt;br&amp;gt;&amp;lt;br&amp;gt; =Usage=  * Call: /api/calling_cards_create * Methods: POST, GET(if allowed, not recomended) &amp;lt;br&amp;gt;&amp;lt;br&amp;gt; ===Parameters===   Pa…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Description=&lt;br /&gt;
[[MOR API]] Calling Cards create&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* Call: /api/calling_cards_create&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parameters===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Parameters which are '''included''' into hash:&lt;br /&gt;
&lt;br /&gt;
* card_group_id - id of a Card Group '''Required'''.&lt;br /&gt;
* cards_from - Cards' (to be created) number range beginning '''Required'''.&lt;br /&gt;
* cards_till - Cards' (to be created) number range ending '''Required'''.&lt;br /&gt;
&lt;br /&gt;
'''* Note that cards_from &amp;lt;= cards_till. Both of the previous parameters are 10-digit-long integers.'''&amp;lt;br&amp;gt;&lt;br /&gt;
'''* Note that the parameters are shown in the same order as they need to be when generating the hash. The last parameter in a row is an API_Secret_Key.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Parameters which are '''not included''' into hash:&lt;br /&gt;
&lt;br /&gt;
* '''[[MOR API hash construction | hash]]''' - SHA1 hash constructed using the '''parameters''' which are listed above. Note that the parameters are shown in the same order as they need to be when generating the hash. The last parameter in a row is '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&amp;lt;br&amp;gt;&lt;br /&gt;
* '''u''' - username for authentication. '''Required'''.&lt;br /&gt;
* batch_number - batch number for the Calling Cards.&lt;br /&gt;
* min_balance - minimum balance for the Calling Cards.&lt;br /&gt;
* distributor_id - Calling Cards' distributor's (User's) id.&lt;br /&gt;
* language - Language for the Calling Cards.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have u = admin, API Secret Key = secret&lt;br /&gt;
&lt;br /&gt;
We send:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/calling_cards_create?u=admin&amp;amp;card_group_id=1&amp;amp;cards_from=1000000025&amp;amp;cards_till=1000000035&amp;amp;batch_number=50&amp;amp;min_balance=15&amp;amp;language=en&amp;amp;distributor_id=2&amp;amp;hash=7e112ededcfee097cce21b6201c6d2a00dda1f4c&lt;br /&gt;
&lt;br /&gt;
* Now we can find 11 newly created Calling Cards (number range: 1000000025-1000000035) in the Card Group's (id = 1) Cards' list.'''&amp;lt;br&amp;gt;&lt;br /&gt;
'''* Note that some Calling Cards may fail on creation if a given range overlaps with already existing Cards in a Card Group.'''&amp;lt;br&amp;gt;&lt;br /&gt;
'''* Note that passing invalid optional parameters will not be notified. Default values will be used instead.'''&amp;lt;br&amp;gt;&lt;br /&gt;
'''* Note that a Username and a Password are not included into hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Returns===&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
   &amp;lt;status&amp;gt;&lt;br /&gt;
     &amp;lt;success&amp;gt;Cards created: 11/11&amp;lt;/success&amp;gt;&lt;br /&gt;
   &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Errors'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; - User is not authorized or is a Simple User. Only Admin, Reseller or Accounant can use this API method. &lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; - hash is not correct. Check API_Secret_Key and order or parameters while concatenating a hash_string.&lt;br /&gt;
* &amp;lt;error&amp;gt;You are not authorized to use this functionality&amp;lt;/error&amp;gt; - User has no permissions to manage Calling Cards. &lt;br /&gt;
* &amp;lt;error&amp;gt;Bad login&amp;lt;/error&amp;gt; - User is not authorized (possibly wrong Username). &lt;br /&gt;
* &amp;lt;error&amp;gt;Card Group was not found&amp;lt;/error&amp;gt; - Card Group under a given id does not exist or a card_group_id parameter is missing from the API parameters' list.&lt;br /&gt;
* &amp;lt;error&amp;gt;Cards from was not found&amp;lt;/error&amp;gt; - required cards_from parameter is missing.&lt;br /&gt;
* &amp;lt;error&amp;gt;Cards till was not found&amp;lt;/error&amp;gt; - required cards_till parameter is missing. &lt;br /&gt;
* &amp;lt;error&amp;gt;Cards from is in incorrect format&amp;lt;/error&amp;gt; - cards_from parameter's value is not numeric or is not 10-digit-long. &lt;br /&gt;
* &amp;lt;error&amp;gt;Cards till is in incorrect format&amp;lt;/error&amp;gt; - cards_till parameter's value is not numeric or is not 10-digit-long. &lt;br /&gt;
* &amp;lt;error&amp;gt;Cards from must not be greater than Cards till&amp;lt;/error&amp;gt; - cards_from parameter's value must not be grater than cards_till parameter's value. No proper Cards' number range is possible.&lt;br /&gt;
* &amp;lt;error&amp;gt;PIN is too short for this interval&amp;lt;/error&amp;gt; - Card Group does not provide enough PIN codes for a given Cards' number range. &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
   &amp;lt;status&amp;gt;&lt;br /&gt;
     &amp;lt;error&amp;gt;Cards from must not be greater than Cards till&amp;lt;/error&amp;gt;&lt;br /&gt;
   &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_device_clis_get&amp;diff=20044</id>
		<title>MOR API device clis get</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_device_clis_get&amp;diff=20044"/>
		<updated>2015-09-01T14:17:42Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Description=&lt;br /&gt;
&amp;lt;!---This functionality is available in MOR X5 and MOR X6---&amp;gt;&lt;br /&gt;
[[MOR API]] Device clis get&lt;br /&gt;
&lt;br /&gt;
Please note that accountant and reseller must have permissions to use this API. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* Call: /api/device_clis_get&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parametres===&lt;br /&gt;
&lt;br /&gt;
* u – username to login. '''Required'''.&lt;br /&gt;
* devices_id – this is the id of users device. '''Optional'''.&lt;br /&gt;
* users_id - this is the id of the user whose CLIs will be selected. '''Optional'''&lt;br /&gt;
* [[MOR API hash construction | hash]] – SHA1 hash constructed using '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have API Secret Key = secret &amp;lt;br /&amp;gt;&lt;br /&gt;
We send:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;server_ip&amp;gt;/billing/api/device_clis_get?u=admin&amp;amp;devices_id=6&amp;amp;users_id=3&amp;amp;e5e9fa1ba31ecd1ae84f75caaa474f3a663f05f4 &lt;br /&gt;
&lt;br /&gt;
'''* Note that username and password are not included in hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;&lt;br /&gt;
   &amp;lt;cli_id&amp;gt;3&amp;lt;/cli_id&amp;gt;&lt;br /&gt;
   &amp;lt;cli_cli&amp;gt;45456464&amp;lt;/cli_cli&amp;gt;&lt;br /&gt;
   &amp;lt;cli_device&amp;gt;IAX2/ipauth4aa73a4300&amp;lt;/cli_device&amp;gt;&lt;br /&gt;
   &amp;lt;cli_description&amp;gt;Test Reseller&amp;lt;/cli_description&amp;gt;&lt;br /&gt;
   &amp;lt;cli_added_at&amp;gt;2015-08-31 12:40:23 +0300&amp;lt;/cli_added_at&amp;gt;&lt;br /&gt;
   &amp;lt;cli_updated_at&amp;gt;2015-08-31 16:14:48 +0300&amp;lt;/cli_updated_at&amp;gt;&lt;br /&gt;
   &amp;lt;cli_comment&amp;gt;rhrtghg&amp;lt;/cli_comment&amp;gt;&lt;br /&gt;
   &amp;lt;cli_email_callback&amp;gt;0&amp;lt;/cli_email_callback&amp;gt;&lt;br /&gt;
   &amp;lt;cli_banned&amp;gt;0&amp;lt;/cli_banned&amp;gt;&lt;br /&gt;
  &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Errors'''&lt;br /&gt;
* &amp;lt;error&amp;gt;Device was not found&amp;lt;/error&amp;gt; – Device was not found.&lt;br /&gt;
* &amp;lt;error&amp;gt;CLIs were not found&amp;lt;/error&amp;gt; – No CLIs found.&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; – username (u) is not found.&lt;br /&gt;
* &amp;lt;error&amp;gt;You are not authorized to use this functionality&amp;lt;/error&amp;gt; – username (u) is reseller or accountant without permissions.&lt;br /&gt;
* &amp;lt;error&amp;gt;User was not found&amp;lt;/error&amp;gt; – specified user via user_id does not exist.&lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; – Hash was not correct. Check API_Secret_Key and order or params while concatenating hash_string.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_device_clis_get&amp;diff=20043</id>
		<title>MOR API device clis get</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_device_clis_get&amp;diff=20043"/>
		<updated>2015-09-01T13:39:26Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Description=&lt;br /&gt;
&amp;lt;!---This functionality is available in MOR X5 and MOR X6---&amp;gt;&lt;br /&gt;
[[MOR API]] Device clis get&lt;br /&gt;
&lt;br /&gt;
Please note that only admins users and admin can use this API. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* Call: /api/voucher_use&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parametres===&lt;br /&gt;
&lt;br /&gt;
* u – username to login. '''Required'''.&lt;br /&gt;
* devices_id – this is the id of users device. '''Optional'''.&lt;br /&gt;
* users_id - this is the id of the user whose CLIs will be selected. '''Optional'''&lt;br /&gt;
* [[MOR API hash construction | hash]] – SHA1 hash constructed using '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have API Secret Key = secret &amp;lt;br /&amp;gt;&lt;br /&gt;
We send:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;server_ip&amp;gt;/billing/api/device_clis_get?u=admin&amp;amp;devices_id=6&amp;amp;users_id=3&amp;amp;e5e9fa1ba31ecd1ae84f75caaa474f3a663f05f4 &lt;br /&gt;
&lt;br /&gt;
'''* Note that username and password are not included in hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;&lt;br /&gt;
   &amp;lt;cli_id&amp;gt;3&amp;lt;/cli_id&amp;gt;&lt;br /&gt;
   &amp;lt;cli_cli&amp;gt;45456464&amp;lt;/cli_cli&amp;gt;&lt;br /&gt;
   &amp;lt;cli_device&amp;gt;IAX2/ipauth4aa73a4300&amp;lt;/cli_device&amp;gt;&lt;br /&gt;
   &amp;lt;cli_description&amp;gt;Test Reseller&amp;lt;/cli_description&amp;gt;&lt;br /&gt;
   &amp;lt;cli_added_at&amp;gt;2015-08-31 12:40:23 +0300&amp;lt;/cli_added_at&amp;gt;&lt;br /&gt;
   &amp;lt;cli_updated_at&amp;gt;2015-08-31 16:14:48 +0300&amp;lt;/cli_updated_at&amp;gt;&lt;br /&gt;
   &amp;lt;cli_comment&amp;gt;rhrtghg&amp;lt;/cli_comment&amp;gt;&lt;br /&gt;
   &amp;lt;cli_email_callback&amp;gt;0&amp;lt;/cli_email_callback&amp;gt;&lt;br /&gt;
   &amp;lt;cli_banned&amp;gt;0&amp;lt;/cli_banned&amp;gt;&lt;br /&gt;
  &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Errors'''&lt;br /&gt;
* &amp;lt;error&amp;gt;Device was not found&amp;lt;/error&amp;gt; – Device was not found.&lt;br /&gt;
* &amp;lt;error&amp;gt;CLIs were not found&amp;lt;/error&amp;gt; – No CLIs found.&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; – username (u) is not found.&lt;br /&gt;
* &amp;lt;error&amp;gt;You are not authorized to use this functionality&amp;lt;/error&amp;gt; – username (u) is reseller or accountant without permissions.&lt;br /&gt;
* &amp;lt;error&amp;gt;User was not found&amp;lt;/error&amp;gt; – specified user via user_id does not exist.&lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; – Hash was not correct. Check API_Secret_Key and order or params while concatenating hash_string.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_device_clis_get&amp;diff=20042</id>
		<title>MOR API device clis get</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_device_clis_get&amp;diff=20042"/>
		<updated>2015-09-01T13:37:43Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: Created page with '=Description= &amp;lt;!---This functionality is available in MOR X5 and MOR X6---&amp;gt; MOR API Device clis get  Please note that only admins users and admin can use this API.   &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Description=&lt;br /&gt;
&amp;lt;!---This functionality is available in MOR X5 and MOR X6---&amp;gt;&lt;br /&gt;
[[MOR API]] Device clis get&lt;br /&gt;
&lt;br /&gt;
Please note that only admins users and admin can use this API. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* Call: /api/voucher_use&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parametres===&lt;br /&gt;
&lt;br /&gt;
* u – username to login. '''Required'''.&lt;br /&gt;
* devices_id – this is the id of users device. '''Optional'''.&lt;br /&gt;
* users_id - this is the id of the user whose CLIs will be selected. '''Optional'''&lt;br /&gt;
* [[MOR API hash construction | hash]] – SHA1 hash constructed using '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have API Secret Key = secret &amp;lt;br /&amp;gt;&lt;br /&gt;
We send:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;server_ip&amp;gt;/billing/api/device_clis_get?u=admin&amp;amp;devices_id=6&amp;amp;users_id=3&amp;amp;e5e9fa1ba31ecd1ae84f75caaa474f3a663f05f4 &lt;br /&gt;
&lt;br /&gt;
'''* Note that username and password are not included in hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;page&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;&lt;br /&gt;
   &amp;lt;cli_id&amp;gt;3&amp;lt;/cli_id&amp;gt;&lt;br /&gt;
   &amp;lt;cli_cli&amp;gt;45456464&amp;lt;/cli_cli&amp;gt;&lt;br /&gt;
   &amp;lt;cli_device&amp;gt;IAX2/ipauth4aa73a4300&amp;lt;/cli_device&amp;gt;&lt;br /&gt;
   &amp;lt;cli_description&amp;gt;Test Reseller&amp;lt;/cli_description&amp;gt;&lt;br /&gt;
   &amp;lt;cli_added_at&amp;gt;2015-08-31 12:40:23 +0300&amp;lt;/cli_added_at&amp;gt;&lt;br /&gt;
   &amp;lt;cli_updated_at&amp;gt;2015-08-31 16:14:48 +0300&amp;lt;/cli_updated_at&amp;gt;&lt;br /&gt;
   &amp;lt;cli_comment&amp;gt;rhrtghg&amp;lt;/cli_comment&amp;gt;&lt;br /&gt;
   &amp;lt;cli_email_callback&amp;gt;0&amp;lt;/cli_email_callback&amp;gt;&lt;br /&gt;
   &amp;lt;cli_banned&amp;gt;0&amp;lt;/cli_banned&amp;gt;&lt;br /&gt;
  &amp;lt;/status&amp;gt;&lt;br /&gt;
&amp;lt;/page&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Errors'''&lt;br /&gt;
* &amp;lt;error&amp;gt;Device was not found&amp;lt;/error&amp;gt; – Device was not found.&lt;br /&gt;
* &amp;lt;error&amp;gt;CLIs were not found&amp;lt;/error&amp;gt; – No CLIs found.&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; – username (u) is not found.&lt;br /&gt;
* &amp;lt;error&amp;gt;You are not authorized to use this functionality&amp;lt;/error&amp;gt; – username (u) is reseller or accountant without permissions.&lt;br /&gt;
* &amp;lt;error&amp;gt;User was not found&amp;lt;/error&amp;gt; – specified user via user_id does not exist.&lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; – Hash was not correct. Check API_Secret_Key and order or params while concatenating hash_string.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=Hide_Device_username_for_Users&amp;diff=19891</id>
		<title>Hide Device username for Users</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=Hide_Device_username_for_Users&amp;diff=19891"/>
		<updated>2015-08-04T20:00:25Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: Created page with '&amp;lt;!---This functionality is available from MOR 9---&amp;gt; ==What is Hide Device username?==  This feature if enabled disallows ordinary users to see device username in GUI &amp;lt;br&amp;gt;&amp;lt;br&amp;gt; ==W…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!---This functionality is available from MOR 9---&amp;gt;&lt;br /&gt;
==What is Hide Device username?==&lt;br /&gt;
&lt;br /&gt;
This feature if enabled disallows ordinary users to see device username in GUI&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
==Where to enable this feature?==&lt;br /&gt;
You can enable this feature in '''Setup -&amp;gt; Settings''' &amp;quot;Visual&amp;quot; tab:&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:password_png.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
'''Don't forget to save the settings!'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Additional Notes==&lt;br /&gt;
&lt;br /&gt;
* Reseller user is also able to use this feature for his users&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=File:Password_png.png&amp;diff=19890</id>
		<title>File:Password png.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=File:Password_png.png&amp;diff=19890"/>
		<updated>2015-08-04T20:00:08Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=Integrity_Check&amp;diff=19889</id>
		<title>Integrity Check</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=Integrity_Check&amp;diff=19889"/>
		<updated>2015-08-04T19:27:49Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Description=&lt;br /&gt;
This function tests various properties of the billing system and tells where potential problems may be. It helps to prevent security issues and human errors.&lt;br /&gt;
&lt;br /&gt;
= Usage =&lt;br /&gt;
&lt;br /&gt;
Go to '''SETTINGS –&amp;gt; Setup –&amp;gt; Integrity Check''':&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:integrity-check-menu.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
In this page you can see vulnerabilities in the system and by clicking on Fix icon [[Image:fix_icon.png]] you can quickly go to device's, user's or whatever else is broken edit page and change options that are causing insecurities. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Integritycheck insecure.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== What every Integrity Check error means? ==&lt;br /&gt;
&lt;br /&gt;
This is more detailed explanation of every error in Integrity Check page. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
====Destinations not assigned to Destination Groups====&lt;br /&gt;
&lt;br /&gt;
This window shows [http://wiki.kolmisoft.com/index.php/Directions_and_Destinations Destinations] which are not assigned to any [http://wiki.kolmisoft.com/index.php/Destinations_Groups Destination Group]. This can lead to many problems, such as incorrect billing. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:integrity-check-destinations.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Destinations not assigned to any Destination Group appear after the tariff rate import. It is necessary to assign these Destinations to their correct Destination Groups.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Selected destination group in a dropdown matches group by destination name.  &lt;br /&gt;
&lt;br /&gt;
'''IMPORTANT: if you have Destinations not assigned to Destination Groups, your Detailed Invoices will have incorrect call amounts!'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
====Actions errors====&lt;br /&gt;
When you click on Fix icon [[Image:fix_icon.png]] it opens [http://wiki.kolmisoft.com/index.php/Action_log action log] with errors selected. These actions requires attention and possibly changes in configuration. It reports about issues such as unsent emails and suspicious activity on accounts. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:integrity-check-action-log.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
====Users with weak password====&lt;br /&gt;
Shows list of users who have weak passwords. Passwords of these users should be changed. Click [[Image:fix_icon.png]] ''Fix'' to see the list and click on edit icon [[Image:edit.png]] to go to user's edit page.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
====Devices with weak password====&lt;br /&gt;
Shows list of devices which have weak passwords. Passwords of these devices should be changed. Click [[Image:fix_icon.png]] ''Fix'' to see the list and click on edit icon [[Image:edit.png]] to go to device's edit page.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
====Users that are set to Postpaid and allowed to make Loss Calls====&lt;br /&gt;
Shows list of postpaid users who have [http://wiki.kolmisoft.com/index.php/Allow_loss_calls ''Allow loss calls''] option enabled. Click [[Image:fix_icon.png]]''Fix'' to see the list and click on edit icon [[Image:edit.png]] to go to user's edit page.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
====Default user warning: Default user is set to postpaid and allowed loss calls====&lt;br /&gt;
Shows list of postpaid [http://wiki.kolmisoft.com/index.php/Default_user default users] who have [http://wiki.kolmisoft.com/index.php/Allow_loss_calls ''Allow loss calls''] option enabled. Click [[Image:fix_icon.png]] ''Fix'' to see the list and click on edit icon [[Image:edit.png]] to go to user's edit page.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
====Insecure devices====&lt;br /&gt;
Shows a list of devices which have Dynamic IP and Insecure Invite and Port options enabled. Such combination allows to make call with incorrect device password.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:Integrity-check-insecure-devices.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Click on device name or edit icon [[Image:edit.png]] to go to device's edit and change settings. There is also owner of the user whose device is insecure displayed. If column is empty, it means user's owner is System Admin.  &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
====Servers with low free space====&lt;br /&gt;
&lt;br /&gt;
Lights up if there is some [[Multi_Server_support|Servers]] with lower free space than it is set in '''[[Configuration_from_GUI#Various|Setup -&amp;gt; Settings -&amp;gt; Various tab]]''', '''Server free space limit''' setting.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:Integrity-check-servers_with_low_fre_space.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[Destinations Groups]]&lt;br /&gt;
* [[Device settings]]&lt;br /&gt;
* [[User Details]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=Integrity_Check&amp;diff=19888</id>
		<title>Integrity Check</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=Integrity_Check&amp;diff=19888"/>
		<updated>2015-08-04T19:27:22Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Description=&lt;br /&gt;
This function tests various properties of the billing system and tells where potential problems may be. It helps to prevent security issues and human errors.&lt;br /&gt;
&lt;br /&gt;
= Usage =&lt;br /&gt;
&lt;br /&gt;
Go to '''SETTINGS –&amp;gt; Setup –&amp;gt; Integrity Check''':&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:integrity-check-menu.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
In this page you can see vulnerabilities in the system and by clicking on Fix icon [[Image:fix_icon.png]] you can quickly go to device's, user's or whatever else is broken edit page and change options that are causing insecurities. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Integritycheck insecure.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== What every Integrity Check error means? ==&lt;br /&gt;
&lt;br /&gt;
This is more detailed explanation of every error in Integrity Check page. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
====Destinations not assigned to Destination Groups====&lt;br /&gt;
&lt;br /&gt;
This window shows [http://wiki.kolmisoft.com/index.php/Directions_and_Destinations Destinations] which are not assigned to any [http://wiki.kolmisoft.com/index.php/Destinations_Groups Destination Group]. This can lead to many problems, such as incorrect billing. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:integrity-check-destinations.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Destinations not assigned to any Destination Group appear after the tariff rate import. It is necessary to assign these Destinations to their correct Destination Groups.&lt;br /&gt;
Selected destination group in a dropdown matches group by destination name.  &lt;br /&gt;
&lt;br /&gt;
'''IMPORTANT: if you have Destinations not assigned to Destination Groups, your Detailed Invoices will have incorrect call amounts!'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
====Actions errors====&lt;br /&gt;
When you click on Fix icon [[Image:fix_icon.png]] it opens [http://wiki.kolmisoft.com/index.php/Action_log action log] with errors selected. These actions requires attention and possibly changes in configuration. It reports about issues such as unsent emails and suspicious activity on accounts. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:integrity-check-action-log.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
====Users with weak password====&lt;br /&gt;
Shows list of users who have weak passwords. Passwords of these users should be changed. Click [[Image:fix_icon.png]] ''Fix'' to see the list and click on edit icon [[Image:edit.png]] to go to user's edit page.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
====Devices with weak password====&lt;br /&gt;
Shows list of devices which have weak passwords. Passwords of these devices should be changed. Click [[Image:fix_icon.png]] ''Fix'' to see the list and click on edit icon [[Image:edit.png]] to go to device's edit page.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
====Users that are set to Postpaid and allowed to make Loss Calls====&lt;br /&gt;
Shows list of postpaid users who have [http://wiki.kolmisoft.com/index.php/Allow_loss_calls ''Allow loss calls''] option enabled. Click [[Image:fix_icon.png]]''Fix'' to see the list and click on edit icon [[Image:edit.png]] to go to user's edit page.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
====Default user warning: Default user is set to postpaid and allowed loss calls====&lt;br /&gt;
Shows list of postpaid [http://wiki.kolmisoft.com/index.php/Default_user default users] who have [http://wiki.kolmisoft.com/index.php/Allow_loss_calls ''Allow loss calls''] option enabled. Click [[Image:fix_icon.png]] ''Fix'' to see the list and click on edit icon [[Image:edit.png]] to go to user's edit page.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
====Insecure devices====&lt;br /&gt;
Shows a list of devices which have Dynamic IP and Insecure Invite and Port options enabled. Such combination allows to make call with incorrect device password.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:Integrity-check-insecure-devices.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Click on device name or edit icon [[Image:edit.png]] to go to device's edit and change settings. There is also owner of the user whose device is insecure displayed. If column is empty, it means user's owner is System Admin.  &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
====Servers with low free space====&lt;br /&gt;
&lt;br /&gt;
Lights up if there is some [[Multi_Server_support|Servers]] with lower free space than it is set in '''[[Configuration_from_GUI#Various|Setup -&amp;gt; Settings -&amp;gt; Various tab]]''', '''Server free space limit''' setting.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:Integrity-check-servers_with_low_fre_space.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[Destinations Groups]]&lt;br /&gt;
* [[Device settings]]&lt;br /&gt;
* [[User Details]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=User_Details&amp;diff=19600</id>
		<title>User Details</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=User_Details&amp;diff=19600"/>
		<updated>2015-06-09T10:13:26Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Where to find user details?=&lt;br /&gt;
&lt;br /&gt;
Go to '''SETTINGS –&amp;gt; Users'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;
[[File:Users_path.png]] &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;  &lt;br /&gt;
Here you can see list of all users. In brackets by the Accountant or Reseller you are able to see to which Permissions Group([[Reseller Permissions]] or [[Accountant permissions]]) they belong. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;
[[File:Users_list.png]] &amp;lt;!---From MOR X4 some of cells are empty because reseller/accountant does not make calls anymore---&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;
Select the [[image:icon_edit.png]] icon in window above and you will reach personal user settings page. In this window you will see a lot of options grouped into sections like General, Blocking, Warning Balance Email, Invoices, Payments, Details, Taxes, Registration Address, Recordings and Blacklists.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---This functionality is available from MOR X4---&amp;gt;&lt;br /&gt;
'''NOTE''' that admin is not shown in Users list. To see your own details go to '''PERSONAL MENU –&amp;gt; Details'''.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Details update = &lt;br /&gt;
Every User can update his own details in '''PERSONAL MENU –&amp;gt; Details'''.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
To disallow users to change their details Admin/Reseller has to check setting &amp;quot;Do not allow users to change their Personal Details&amp;quot; in '''SETTINGS -&amp;gt; Setup -&amp;gt; Settings -&amp;gt; Various'''. After this User Details can only be updated by user's owner.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
'''NOTE''' that even if User is not allowed to update his own details, he still can see it in '''PERSONAL MENU –&amp;gt; Details''' as form with not editable options.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= General =&lt;br /&gt;
&lt;br /&gt;
* Username – username for user to login to MOR GUI.&lt;br /&gt;
* Password – password for user to login to MOR GUI.&lt;br /&gt;
* [[Users#User_types | User type]] – by default it is &amp;quot;user&amp;quot;.&lt;br /&gt;
* [[LCR]] – LCR indicating which of the user's devices will be used to dial out.&lt;br /&gt;
* [[Tariffs | Tariff]] – prices for the user.  &lt;br /&gt;
* [[Balance and Credit | Balance]] – the user's balance.&lt;br /&gt;
* Daily credit limit – Total credit available for user per day.&lt;br /&gt;
* [[Balance and Credit | Credit]] – the user's credit, showing how low the user's balance can go.&lt;br /&gt;
* [[Minimum contract billing | Minimal Charge for Calls]] - minimum charge user pays for voice calls.&lt;br /&gt;
* [[Minimum contract billing | Minimal Charge for Calls Date]] - date since when the previous option is valid.&lt;br /&gt;
* Postpaid/Prepaid – type of user.&lt;br /&gt;
* [[Hide Users | Not Hidden/Hidden]] – is this user hidden?&lt;br /&gt;
* Primary device – the primary device for this user.&lt;br /&gt;
* [[Allow loss calls]] – should loss calls be allowed for this user?&lt;br /&gt;
* [[Simultaneous call limitation | Call Limit]] - how many simultaneous calls the user can make?&lt;br /&gt;
* Responsible accountant – dropdown to choose accountant responsible for user's profit. &lt;br /&gt;
* Hide Non-Answered calls – with this option enabled simple user sees only answered calls in [[Last Calls]] and in Detailed Statistics page. &amp;lt;!-- veikia su x5_functionality_15 --&amp;gt; &lt;br /&gt;
* Ignore Global Alerts – check and User will be ignored on checking for [[Alerts]] &amp;lt;!---from x5---&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Blocking =&lt;br /&gt;
&lt;br /&gt;
Various options for [[User Blocking]].&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
= Warning Balance Email =&lt;br /&gt;
&lt;br /&gt;
If you want to send an email notification to a user (or take another action) when his balance drops lower than a certain amount, check this setting and enter the desired amount.&lt;br /&gt;
&lt;br /&gt;
More details: [[Warning balance]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
= Invoices =&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:user_invoice_details.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
* Generate Invoice – should we generate an invoice for this user when we choose to generate invoices for a period?&lt;br /&gt;
* Invoice, Detailed, By CallerID, By Destinations and PDF/CSV show various types of invoices which should be showed in Users ''PERSONAL MENU –&amp;gt; Details –&amp;gt; Invoices'' and/or sent to the User as an email attachment.&lt;br /&gt;
* Show zero Calls – if the call price = 0, should such calls appear in the invoice or not?&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
= Payments =&lt;br /&gt;
&lt;br /&gt;
* Cyberplat - check this option if you want to allow the user to use this payment gateway.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
= Details =&lt;br /&gt;
&lt;br /&gt;
Self-explanatory.&lt;br /&gt;
&lt;br /&gt;
If Country of Taxation is in the EU, validation of TAX Registration Number will be checked from this website: http://ec.europa.eu/taxation_customs/vies/&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
= Taxes =&lt;br /&gt;
&lt;br /&gt;
Here tax parameters are entered for the user.&lt;br /&gt;
&lt;br /&gt;
The tax system is explained [[Multi-Tax system | here]].&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
= Registration Address =&lt;br /&gt;
&lt;br /&gt;
Self-explanatory.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
= Recordings = &lt;br /&gt;
&lt;br /&gt;
This section is available when the [[Recordings Addon]] is installed in the system.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Blacklists / Whitelists=&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:user_blacklists_details.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;!---FROM MOR X7---&amp;gt;&lt;br /&gt;
'''Enable static Source''' - enables static Blacklist or Whitelist&amp;lt;br&amp;gt;&lt;br /&gt;
* '''No''' - do not use any Blacklist or Whitelist&lt;br /&gt;
* '''Blacklist''' - choose [[Number Pool]] which will be used to block User from receiving specific Source numbers. If User receives number which is in selected [[Number Pool]] then call will be hangup with hangupcause ''262 - Source number is in blacklist''&lt;br /&gt;
* '''Whitelist''' - choose [[Number Pool]] which will be used to allow User to receive only specific Source numbers. If User receives number which is NOT in selected [[Number Pool]] then call will be hangup with hangupcause ''263 - Source number is not in whitelist''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---FROM MOR X5---&amp;gt;&lt;br /&gt;
'''Enable static Destination''' - enables static Blacklist or Whitelist&amp;lt;br&amp;gt;&lt;br /&gt;
* '''No''' - do not use any Blacklist or Whitelist&lt;br /&gt;
* '''Blacklist''' - choose [[Number Pool]] which will be used to block User from calling specific Destination numbers. If User calls number which is in selected [[Number Pool]] then call will be hangup with hangupcause ''255 - Destination is in blacklist''&lt;br /&gt;
* '''Whitelist''' - choose [[Number Pool]] which will be used to allow User to call only specific Destination numbers. If User calls number which is NOT in selected [[Number Pool]] then call will be hangup with hangupcause ''256 - Destination is not in whitelist''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Also you can manage '''[[Dynamic Blacklist Functionality]]''' settings for Single User. You are able to manage:&lt;br /&gt;
&lt;br /&gt;
'''Enable Dynamic Blacklist''' – enables dynamic Blacklist functionality for this user.&amp;lt;br&amp;gt;&lt;br /&gt;
'''Blacklist LCR''' – [[LCR]] with Blacklist Providers.&amp;lt;br&amp;gt;&lt;br /&gt;
'''Routing Threshold''' – sum of SRC, DST and RTP IP limit. If SRC, DST or RTP IP scores sum received during the call is bigger than Defaullt Threshold, call will be routed through selected Blacklist LCR. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Choose option '''Global''' if you want to apply [[ Monitorings_Addon#Monitorings_Settings | global settingas]] for this user.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Comment = &lt;br /&gt;
&lt;br /&gt;
Here you are able to write private comment about user.&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=User_Details&amp;diff=19599</id>
		<title>User Details</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=User_Details&amp;diff=19599"/>
		<updated>2015-06-09T10:13:04Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Where to find user details?=&lt;br /&gt;
&lt;br /&gt;
Go to '''SETTINGS –&amp;gt; Users'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;
[[File:Users_path.png]] &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;  &lt;br /&gt;
Here you can see list of all users. In brackets by the Accountant or Reseller you are able to see to which Permissions Group([[Reseller Permissions]] or [[Accountant permissions]]) they belong. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;
[[File:Users_list.png]] &amp;lt;!---From MOR X4 some of cells are empty because reseller/accountant does not make calls anymore---&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;
Select the [[image:icon_edit.png]] icon in window above and you will reach personal user settings page. In this window you will see a lot of options grouped into sections like General, Blocking, Warning Balance Email, Invoices, Payments, Details, Taxes, Registration Address, Recordings and Blacklists.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---This functionality is available from MOR X4---&amp;gt;&lt;br /&gt;
'''NOTE''' that admin is not shown in Users list. To see your own details go to '''PERSONAL MENU –&amp;gt; Details'''.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Details update = &lt;br /&gt;
Every User can update his own details in '''PERSONAL MENU –&amp;gt; Details'''.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
To disallow users to change their details Admin/Reseller has to check setting &amp;quot;Do not allow users to change their Personal Details&amp;quot; in '''SETTINGS -&amp;gt; Setup -&amp;gt; Settings -&amp;gt; Various'''. After this User Details can only be updated by user's owner.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
'''NOTE''' that even if User is not allowed to update his own details, he still can see it in '''PERSONAL MENU –&amp;gt; Details''' as form with not editable options.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= General =&lt;br /&gt;
&lt;br /&gt;
* Username – username for user to login to MOR GUI.&lt;br /&gt;
* Password – password for user to login to MOR GUI.&lt;br /&gt;
* [[Users#User_types | User type]] – by default it is &amp;quot;user&amp;quot;.&lt;br /&gt;
* [[LCR]] – LCR indicating which of the user's devices will be used to dial out.&lt;br /&gt;
* [[Tariffs | Tariff]] – prices for the user.  &lt;br /&gt;
* [[Balance and Credit | Balance]] – the user's balance.&lt;br /&gt;
* [[Daily credit limit]] – Total credit available for user per day.&lt;br /&gt;
* [[Balance and Credit | Credit]] – the user's credit, showing how low the user's balance can go.&lt;br /&gt;
* [[Minimum contract billing | Minimal Charge for Calls]] - minimum charge user pays for voice calls.&lt;br /&gt;
* [[Minimum contract billing | Minimal Charge for Calls Date]] - date since when the previous option is valid.&lt;br /&gt;
* Postpaid/Prepaid – type of user.&lt;br /&gt;
* [[Hide Users | Not Hidden/Hidden]] – is this user hidden?&lt;br /&gt;
* Primary device – the primary device for this user.&lt;br /&gt;
* [[Allow loss calls]] – should loss calls be allowed for this user?&lt;br /&gt;
* [[Simultaneous call limitation | Call Limit]] - how many simultaneous calls the user can make?&lt;br /&gt;
* Responsible accountant – dropdown to choose accountant responsible for user's profit. &lt;br /&gt;
* Hide Non-Answered calls – with this option enabled simple user sees only answered calls in [[Last Calls]] and in Detailed Statistics page. &amp;lt;!-- veikia su x5_functionality_15 --&amp;gt; &lt;br /&gt;
* Ignore Global Alerts – check and User will be ignored on checking for [[Alerts]] &amp;lt;!---from x5---&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Blocking =&lt;br /&gt;
&lt;br /&gt;
Various options for [[User Blocking]].&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
= Warning Balance Email =&lt;br /&gt;
&lt;br /&gt;
If you want to send an email notification to a user (or take another action) when his balance drops lower than a certain amount, check this setting and enter the desired amount.&lt;br /&gt;
&lt;br /&gt;
More details: [[Warning balance]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
= Invoices =&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:user_invoice_details.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
* Generate Invoice – should we generate an invoice for this user when we choose to generate invoices for a period?&lt;br /&gt;
* Invoice, Detailed, By CallerID, By Destinations and PDF/CSV show various types of invoices which should be showed in Users ''PERSONAL MENU –&amp;gt; Details –&amp;gt; Invoices'' and/or sent to the User as an email attachment.&lt;br /&gt;
* Show zero Calls – if the call price = 0, should such calls appear in the invoice or not?&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
= Payments =&lt;br /&gt;
&lt;br /&gt;
* Cyberplat - check this option if you want to allow the user to use this payment gateway.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
= Details =&lt;br /&gt;
&lt;br /&gt;
Self-explanatory.&lt;br /&gt;
&lt;br /&gt;
If Country of Taxation is in the EU, validation of TAX Registration Number will be checked from this website: http://ec.europa.eu/taxation_customs/vies/&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
= Taxes =&lt;br /&gt;
&lt;br /&gt;
Here tax parameters are entered for the user.&lt;br /&gt;
&lt;br /&gt;
The tax system is explained [[Multi-Tax system | here]].&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
= Registration Address =&lt;br /&gt;
&lt;br /&gt;
Self-explanatory.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
= Recordings = &lt;br /&gt;
&lt;br /&gt;
This section is available when the [[Recordings Addon]] is installed in the system.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Blacklists / Whitelists=&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:user_blacklists_details.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;!---FROM MOR X7---&amp;gt;&lt;br /&gt;
'''Enable static Source''' - enables static Blacklist or Whitelist&amp;lt;br&amp;gt;&lt;br /&gt;
* '''No''' - do not use any Blacklist or Whitelist&lt;br /&gt;
* '''Blacklist''' - choose [[Number Pool]] which will be used to block User from receiving specific Source numbers. If User receives number which is in selected [[Number Pool]] then call will be hangup with hangupcause ''262 - Source number is in blacklist''&lt;br /&gt;
* '''Whitelist''' - choose [[Number Pool]] which will be used to allow User to receive only specific Source numbers. If User receives number which is NOT in selected [[Number Pool]] then call will be hangup with hangupcause ''263 - Source number is not in whitelist''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---FROM MOR X5---&amp;gt;&lt;br /&gt;
'''Enable static Destination''' - enables static Blacklist or Whitelist&amp;lt;br&amp;gt;&lt;br /&gt;
* '''No''' - do not use any Blacklist or Whitelist&lt;br /&gt;
* '''Blacklist''' - choose [[Number Pool]] which will be used to block User from calling specific Destination numbers. If User calls number which is in selected [[Number Pool]] then call will be hangup with hangupcause ''255 - Destination is in blacklist''&lt;br /&gt;
* '''Whitelist''' - choose [[Number Pool]] which will be used to allow User to call only specific Destination numbers. If User calls number which is NOT in selected [[Number Pool]] then call will be hangup with hangupcause ''256 - Destination is not in whitelist''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Also you can manage '''[[Dynamic Blacklist Functionality]]''' settings for Single User. You are able to manage:&lt;br /&gt;
&lt;br /&gt;
'''Enable Dynamic Blacklist''' – enables dynamic Blacklist functionality for this user.&amp;lt;br&amp;gt;&lt;br /&gt;
'''Blacklist LCR''' – [[LCR]] with Blacklist Providers.&amp;lt;br&amp;gt;&lt;br /&gt;
'''Routing Threshold''' – sum of SRC, DST and RTP IP limit. If SRC, DST or RTP IP scores sum received during the call is bigger than Defaullt Threshold, call will be routed through selected Blacklist LCR. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Choose option '''Global''' if you want to apply [[ Monitorings_Addon#Monitorings_Settings | global settingas]] for this user.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Comment = &lt;br /&gt;
&lt;br /&gt;
Here you are able to write private comment about user.&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_did_details_update&amp;diff=19155</id>
		<title>MOR API did details update</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_did_details_update&amp;diff=19155"/>
		<updated>2015-03-18T17:56:28Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: /* Parametres */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Description=&lt;br /&gt;
&amp;lt;!---This functionality is available in MOR X5 and MOR X6---&amp;gt;&lt;br /&gt;
[[MOR API]] DID details update&lt;br /&gt;
&lt;br /&gt;
Please note that only admin, accountant(with device management) with permission and reseller can use this API. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* Call: /api/did_details_update&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parametres===&lt;br /&gt;
&lt;br /&gt;
* u – username to login. '''Required'''.&lt;br /&gt;
* did_id – this is number of voucher which will be used. '''Required'''.&lt;br /&gt;
* call_limit - call limit of did which will be updated. '''Optional'''&lt;br /&gt;
* [[MOR API hash construction | hash]] – SHA1 hash constructed using '''did_id''' and '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have API Secret Key = secret, did_id = 6511 &amp;lt;br /&amp;gt;&lt;br /&gt;
We send:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;server_ip&amp;gt;/billing//api/did_details_update?u=admin&amp;amp;did_id=6511&amp;amp;call_limit=999&amp;amp;hash=f7de355c9b4421ce6c705b4b32c89dbcaca51e46&lt;br /&gt;
&lt;br /&gt;
'''* Note that username and password are not included in hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;&lt;br /&gt;
    &amp;lt;success&amp;gt;DID details successfully updated&amp;lt;/success&amp;gt;&lt;br /&gt;
  &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''After successfully updating DID action log record is added.'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
'''Errors'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;error&amp;gt;Call limit is incorrect format&amp;lt;/error&amp;gt; – Specified call limit is 0 or positive number.&lt;br /&gt;
* &amp;lt;error&amp;gt;DID was not found&amp;lt;/error&amp;gt; – Specified did does not exist or it belongs to different username(u).&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; – Specified username (u) does not exist or u is not admin, reseller or accountant with permission.&lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; – Hash was not correct. Check API_Secret_Key and order or params while concatenating hash_string.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_did_details_update&amp;diff=19126</id>
		<title>MOR API did details update</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_did_details_update&amp;diff=19126"/>
		<updated>2015-03-17T15:05:51Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Description=&lt;br /&gt;
&amp;lt;!---This functionality is available in MOR X5 and MOR X6---&amp;gt;&lt;br /&gt;
[[MOR API]] DID details update&lt;br /&gt;
&lt;br /&gt;
Please note that only admin, accountant(with device management) with permission and reseller can use this API. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* Call: /api/did_details_update&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parametres===&lt;br /&gt;
&lt;br /&gt;
* u – username to login. '''Required'''.&lt;br /&gt;
* did_id – this is number of voucher which will be used. '''Required'''.&lt;br /&gt;
* call_limit - this will be updated. '''Optional'''&lt;br /&gt;
* [[MOR API hash construction | hash]] – SHA1 hash constructed using '''did_id''' and '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have API Secret Key = secret, did_id = 6511 &amp;lt;br /&amp;gt;&lt;br /&gt;
We send:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;server_ip&amp;gt;/billing//api/did_details_update?u=admin&amp;amp;did_id=6511&amp;amp;call_limit=999&amp;amp;hash=f7de355c9b4421ce6c705b4b32c89dbcaca51e46&lt;br /&gt;
&lt;br /&gt;
'''* Note that username and password are not included in hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;&lt;br /&gt;
    &amp;lt;success&amp;gt;DID details successfully updated&amp;lt;/success&amp;gt;&lt;br /&gt;
  &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''After successfully updating DID action log record is added.'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
'''Errors'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;error&amp;gt;Call limit is incorrect format&amp;lt;/error&amp;gt; – Specified call limit is 0 or positive number.&lt;br /&gt;
* &amp;lt;error&amp;gt;DID was not found&amp;lt;/error&amp;gt; – Specified did does not exist or it belongs to different username(u).&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; – Specified username (u) does not exist or u is not admin, reseller or accountant with permission.&lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; – Hash was not correct. Check API_Secret_Key and order or params while concatenating hash_string.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_did_details_update&amp;diff=19123</id>
		<title>MOR API did details update</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_did_details_update&amp;diff=19123"/>
		<updated>2015-03-17T15:00:08Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Description=&lt;br /&gt;
&amp;lt;!---This functionality is available in MOR X5 and MOR X6---&amp;gt;&lt;br /&gt;
[[MOR API]] DID details update&lt;br /&gt;
&lt;br /&gt;
Please note that only admin, accountant(with device management) with permission and reseller can use this API. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* Call: /api/did_details_update&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parametres===&lt;br /&gt;
&lt;br /&gt;
* u – username to login. '''Required'''.&lt;br /&gt;
* did_id – this is number of voucher which will be used. '''Required'''.&lt;br /&gt;
* call_limit - this will be updated. '''Optional'''&lt;br /&gt;
* [[MOR API hash construction | hash]] – SHA1 hash constructed using '''did_id''' and '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have API Secret Key = secret, did_id = 10007 &amp;lt;br /&amp;gt;&lt;br /&gt;
We send:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;server_ip&amp;gt;/billing//api/did_details_update?u=admin&amp;amp;did_id=6511&amp;amp;call_limit=999&amp;amp;hash=f7de355c9b4421ce6c705b4b32c89dbcaca51e46&lt;br /&gt;
&lt;br /&gt;
'''* Note that username and password are not included in hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;&lt;br /&gt;
    &amp;lt;success&amp;gt;DID details successfully updated&amp;lt;/success&amp;gt;&lt;br /&gt;
  &amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/page&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''After successfully updating DID action log record is added.'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
'''Errors'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;error&amp;gt;Call limit is incorrect format&amp;lt;/error&amp;gt; – Specified call limit is 0 or positive number.&lt;br /&gt;
* &amp;lt;error&amp;gt;DID was not found&amp;lt;/error&amp;gt; – Specified did does not exist or it belongs to different username(u).&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; – Specified username (u) does not exist or u is not admin, reseller or accountant with permission.&lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; – Hash was not correct. Check API_Secret_Key and order or params while concatenating hash_string.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_did_details_update&amp;diff=19122</id>
		<title>MOR API did details update</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_did_details_update&amp;diff=19122"/>
		<updated>2015-03-17T14:59:46Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Description=&lt;br /&gt;
&amp;lt;!---This functionality is available in MOR X5 and MOR X6---&amp;gt;&lt;br /&gt;
[[MOR API]] DID details update&lt;br /&gt;
&lt;br /&gt;
Please note that only admin, accountant(with device management) with permission and reseller can use this API. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* Call: /api/did_details_update&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parametres===&lt;br /&gt;
&lt;br /&gt;
* u – username to login. '''Required'''.&lt;br /&gt;
* did_id – this is number of voucher which will be used. '''Required'''.&lt;br /&gt;
* call_limit - this will be updated. '''Optional'''&lt;br /&gt;
* [[MOR API hash construction | hash]] – SHA1 hash constructed using '''did_id''' and '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have API Secret Key = secret, did_id = 10007 &amp;lt;br /&amp;gt;&lt;br /&gt;
We send:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;server_ip&amp;gt;/billing//api/did_details_update?u=admin&amp;amp;did_id=6511&amp;amp;call_limit=999&amp;amp;hash=f7de355c9b4421ce6c705b4b32c89dbcaca51e46&lt;br /&gt;
&lt;br /&gt;
'''* Note that username and password are not included in hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;page&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;&lt;br /&gt;
    &amp;lt;success&amp;gt;DID details successfully updated&amp;lt;/success&amp;gt;&lt;br /&gt;
  &amp;lt;/status&amp;gt;&lt;br /&gt;
&amp;lt;/page&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''After successfully updating DID action log record is added.'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
'''Errors'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;error&amp;gt;Call limit is incorrect format&amp;lt;/error&amp;gt; – Specified call limit is 0 or positive number.&lt;br /&gt;
* &amp;lt;error&amp;gt;DID was not found&amp;lt;/error&amp;gt; – Specified did does not exist or it belongs to different username(u).&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; – Specified username (u) does not exist or u is not admin, reseller or accountant with permission.&lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; – Hash was not correct. Check API_Secret_Key and order or params while concatenating hash_string.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API&amp;diff=19121</id>
		<title>MOR API</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API&amp;diff=19121"/>
		<updated>2015-03-17T14:59:11Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: Undo revision 19092 by Edvinas (Talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:warning.png|100px]]&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;IMPORTANT!!! API methods described here are for MOR X6. For previous versions please check appropriate [http://wiki.kolmisoft.com/index.php/MOR_Manual#Old_Manuals manual].&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=About=&lt;br /&gt;
MOR API lets other software interact with MOR without knowing the internal structure of the database (DB) and other logic.&lt;br /&gt;
&lt;br /&gt;
MOR accepts requests by HTML POST and returns results in XML.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=MOR users that are allowed to use MOR API=&lt;br /&gt;
* Admin&lt;br /&gt;
* Reseller&lt;br /&gt;
* Accountant - only by using Admin Hash and Secret key&lt;br /&gt;
* Simple User&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Functions=&lt;br /&gt;
&lt;br /&gt;
== API Related ==&lt;br /&gt;
* [[API Configuration]] – configuration options for API.&lt;br /&gt;
* [[MOR API hash construction|Hash construction]] – how to construct hash to authenticate data over API.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Balance==&lt;br /&gt;
* [[MOR API user balance update | user_balance_update]] (change_user_balance) – changes User's Balance&lt;br /&gt;
Various methods to retrieve User balance&lt;br /&gt;
* [[MOR API user_balance_get|user_balance_get]] (balance) – retrieves a User Balance.&lt;br /&gt;
* [[Balance in phone | user_simple_balance_get]] (simple_balance) – gets User's Balance&lt;br /&gt;
* [[MOR API user balance get by psw | user_balance_get_by_psw]] – gets User's Balance by his owned Device's Password&lt;br /&gt;
* [[MOR API User Balance get by Username | user_balance_get_by_username]] – gets User's Balance by his owned Device's Username&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Callback==&lt;br /&gt;
* [[MOR API callback init|callback_init]] (callback) – initiates callback.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Calling Cards==&lt;br /&gt;
* [[MOR API card_by_cli_update| card_by_cli_update]] (cc_by_cli) – creates and updates calling cards, including adding and transferring funds, by being identified according the Caller_ID.&lt;br /&gt;
* [[MOR API card_from_group_sell| card_from_group_sell]] (buy_card_from_callingroup) – sells cards from calling card group.&lt;br /&gt;
* [[MOR API card_group_get| card_group_get]] (show_calling_card_group) – show calling group info.&lt;br /&gt;
* [[MOR API card_balance_get| card_balance_get]] (card_balance_get) – show card's balance.&lt;br /&gt;
* [[MOR API card_payment_add| card_payment_add]] – add payment to the calling card.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Calls==&lt;br /&gt;
* [[MOR API user calls get|user_calls_get]] (user_calls) – retrieves a list of calls in a selected time period for a user/device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Conflines==&lt;br /&gt;
* [[MOR API conflines update|conflines_update]] – changes settings for API, Default User or Default Device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Credit notes==&lt;br /&gt;
* [[MOR API credit_notes_get| credit_notes_get]] (credit_notes) – credit notes list.&lt;br /&gt;
* [[MOR API credit_note_update| credit_note_update]] – credit note update.&lt;br /&gt;
* [[MOR API credit_notes_create| credit_note_create]] – credit note create.&lt;br /&gt;
* [[MOR API credit_notes_delete| credit_note_delete]] – credit note delete.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Device==&lt;br /&gt;
* [[MOR API device create| device_create]] – create device&lt;br /&gt;
* [[MOR API device delete| device_delete]] (delete_device) – delete device&lt;br /&gt;
* [[MOR API devices get | devices_get]] (device_list) – users device list&lt;br /&gt;
* [[MOR API device callflow get| device_callflow_get]] - returns information about specified device callflow state.&lt;br /&gt;
* [[MOR API device callflow update | device_callflow_update]] – updates information of specified device callflow state. &lt;br /&gt;
* [[MOR API CLI info get | cli_info_get]] (cli_get_info) – shows id of device where CLI belongs.&lt;br /&gt;
* [[MOR API CLI delete | cli_delete]] – deletes specified CLI. &lt;br /&gt;
* [[MOR API CLI add | cli_add]] – creates CLI and assigns it to the specified device.&lt;br /&gt;
* [[MOR API device details get | device_details_get]] – shows all information about specified device.&lt;br /&gt;
* [[MOR_API_device_update | device_update]]  –  updates location_id of selected Device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==DID==&lt;br /&gt;
&lt;br /&gt;
* [[MOR API dids get| dids_get]] – get list of particular DIDs&lt;br /&gt;
* [[MOR API did_create| did_create]] – DID create&lt;br /&gt;
* [[MOR_API_did_device_assign| did_device_assign]] (did_assign_device) – Assign Device to DID&lt;br /&gt;
* [[MOR_API_did_device_unassign| did_device_unassign]] (did_unassign_device) – Unassign Device from DID&lt;br /&gt;
* [[MOR_API_did_details_update| did_details_update]] (did_details_update) - Update DID details &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Email==&lt;br /&gt;
* [[MOR API email send| email_send]] (send_email) – send Email.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Financial statements==&lt;br /&gt;
* [[MOR API financial_statements_get| financial_statements_get]] (financial_statements) – financial statements list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Invoices==&lt;br /&gt;
* [[MOR API invoices_get|invoices_get]] (invoices) – retrieves a list of invoices in a selected time period.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Login==&lt;br /&gt;
* [[MOR API user_login|user_login]] (login) – logs user in to MOR.&lt;br /&gt;
* [[MOR API user_logout|user_logout]] (logout) – logs user out from MOR.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Monitorings==&lt;br /&gt;
* [[MOR API ma_activate_api| ma_activate]] – turn on monitorings addon&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Payments==&lt;br /&gt;
* [[MOR API payment_create| payment_create]] (create_payment) – create payment.&lt;br /&gt;
* [[MOR API payments_get| payments_get]] (payments_list) – payments list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Phonebooks==&lt;br /&gt;
* [[MOR API phonebooks_get| phonebooks_get]] (phonebooks_api ) – phonebooks list.&lt;br /&gt;
* [[MOR API phonebook_edit| phonebook_edit]] (phonebook_edit_api) – edit phonebook.&lt;br /&gt;
* [[MOR API phonebook_record_create| phonebook_record_create]]  – create phonebook.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Quickforwards==&lt;br /&gt;
* [[MOR API Quickforwards get| quickforwards_dids_get]] (quickforwards_dids_get) – get Quickforwards.&lt;br /&gt;
* [[MOR API Quickforwards update| quickforwards_did_update]] (quickforwards_did_update) – update Quickforwards.&lt;br /&gt;
* [[MOR API Quickforwards delete| quickforwards_did_delete]] (quickforwards_did_delete) – delete Quickforwards.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Rates==&lt;br /&gt;
* [[MOR API rate get|rate_get]] (rate) – check user rate by prefix&lt;br /&gt;
* [[MOR API tariff rates get| tariff_rates_get]] (get_tariff) – get all tariff's rates&lt;br /&gt;
* [[MOR API tariff_retail_import | tariff_retail_import ]] (import_relail_tariff) – import xml retail tariff&lt;br /&gt;
* [[MOR API tariff_wholesale_update | tariff_wholesale_update ]] (wholesale_tariff) – update or create wholesale tariff&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Services==&lt;br /&gt;
* [[MOR API Service create| service_create]] – create Service.&lt;br /&gt;
* [[MOR API Service delete| service_delete]] – delete Service.&lt;br /&gt;
* [[MOR API Services get| services_get]] – get Services.&lt;br /&gt;
* [[MOR API Service update| service_update]] – update Service.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==SMS==&lt;br /&gt;
* [[MOR API sms send| sms_send]] (send_sms) – send SMS.&lt;br /&gt;
* [[MOR_API_user_sms_service_subscribe | user_sms_service_subscribe ]] – User subscription to SMS Service.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Subscriptions==&lt;br /&gt;
* [[MOR API subscription delete|subscription_delete]] - Subscription delete.&lt;br /&gt;
* [[MOR API Subscriptions get|subscriptions_get]] - Subscriptions get.&lt;br /&gt;
* [[MOR API subscription create|subscription_create]] - Subscription create.&lt;br /&gt;
* [[MOR API subscription update|subscription_update]] - Subscription delete.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==User==&lt;br /&gt;
&lt;br /&gt;
* [[MOR API user_register| user_register]] – create new user from params.&lt;br /&gt;
* [[MOR API user_details_get | user_details_get]] (user_details) – gets user details.&lt;br /&gt;
* [[MOR_API_user_details_update| user_details_update]] (user_update_api) – update user from params.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Resellers ==&lt;br /&gt;
* [[MOR API reseller group create]] - create new Reseller Group&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Version==&lt;br /&gt;
* [[MOR API system version get| system_version_get]] (get_version) – get MOR version number.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
= Examples =&lt;br /&gt;
* [[MOR API PHP Examples]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=HTML POST=&lt;br /&gt;
All requests are in a similar format:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/&amp;lt;function&amp;gt;?u=username&lt;br /&gt;
&lt;br /&gt;
* username - the user name and password of the user who is asking for the data. &lt;br /&gt;
&lt;br /&gt;
If the user has 'admin' rights, he will get more results and  can perform more actions compared to a user who does not have such rights.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Useful to know=&lt;br /&gt;
&lt;br /&gt;
* All API methods returns data straight from database. It means that MOR GUI settings does not affect data, it will be returned as it is saved in database. For example:&lt;br /&gt;
** Value of money will be returned in Default System [[Currencies|Currency]].&lt;br /&gt;
** Date will not be affected of [[Configuration_from_GUI#Visual| Default date format]] setting.&lt;br /&gt;
** Value of money will not be affected of [[Configuration_from_GUI#Visual|Number digits]] setting.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=See also =&lt;br /&gt;
* [[API Configuration]]&lt;br /&gt;
* [[MOR integration]]&lt;br /&gt;
* [[How to block access to some API functions]]&lt;br /&gt;
* [[API specification to be implemented in the future]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_did_details_update&amp;diff=19120</id>
		<title>MOR API did details update</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_did_details_update&amp;diff=19120"/>
		<updated>2015-03-17T14:58:20Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Description=&lt;br /&gt;
&amp;lt;!---This functionality is available in MOR X5 and MOR X6---&amp;gt;&lt;br /&gt;
[[MOR API]] DID details update&lt;br /&gt;
&lt;br /&gt;
Please note that only admin, accountant(with device management) with permission and reseller can use this API. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* Call: /api/did_details_update&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parametres===&lt;br /&gt;
&lt;br /&gt;
* u – username to login. '''Required'''.&lt;br /&gt;
* did_id – this is number of voucher which will be used. '''Required'''.&lt;br /&gt;
* call_limit - this will be updated. '''Optional'''&lt;br /&gt;
* [[MOR API hash construction | hash]] – SHA1 hash constructed using '''did_id''' and '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have API Secret Key = secret, did_id = 10007 &amp;lt;br /&amp;gt;&lt;br /&gt;
We send:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;server_ip&amp;gt;/billing//api/did_details_update?u=admin&amp;amp;did_id=6511&amp;amp;call_limit=999&amp;amp;hash=f7de355c9b4421ce6c705b4b32c89dbcaca51e46&lt;br /&gt;
&lt;br /&gt;
'''* Note that username and password are not included in hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;page&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;&lt;br /&gt;
    &amp;lt;success&amp;gt;DID details successfully updated&amp;lt;/success&amp;gt;&lt;br /&gt;
  &amp;lt;/status&amp;gt;&lt;br /&gt;
&amp;lt;/page&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
'''After successfully updating DID action log record is added.'''&lt;br /&gt;
----&lt;br /&gt;
'''Errors'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;error&amp;gt;Call limit is incorrect format&amp;lt;/error&amp;gt; – Specified call limit is 0 or positive number.&lt;br /&gt;
* &amp;lt;error&amp;gt;DID was not found&amp;lt;/error&amp;gt; – Specified did does not exist or it belongs to different username(u).&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; – Specified username (u) does not exist or u is not admin, reseller or accountant with permission.&lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; – Hash was not correct. Check API_Secret_Key and order or params while concatenating hash_string.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_did_details_update&amp;diff=19119</id>
		<title>MOR API did details update</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_did_details_update&amp;diff=19119"/>
		<updated>2015-03-17T14:57:44Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Description=&lt;br /&gt;
&amp;lt;!---This functionality is available in MOR X5 and MOR X6---&amp;gt;&lt;br /&gt;
[[MOR API]] DID details update&lt;br /&gt;
&lt;br /&gt;
Please note that only admin, accountant(with device management) with permission and reseller can use this API. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* Call: /api/did_details_update&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parametres===&lt;br /&gt;
&lt;br /&gt;
* u – username to login. '''Required'''.&lt;br /&gt;
* did_id – this is number of voucher which will be used. '''Required'''.&lt;br /&gt;
* call_limit - this will be updated. '''Optional'''&lt;br /&gt;
* [[MOR API hash construction | hash]] – SHA1 hash constructed using '''did_id''' and '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have API Secret Key = secret, did_id = 10007 &amp;lt;br /&amp;gt;&lt;br /&gt;
We send:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;server_ip&amp;gt;/billing//api/did_details_update?u=admin&amp;amp;did_id=6511&amp;amp;call_limit=999&amp;amp;hash=f7de355c9b4421ce6c705b4b32c89dbcaca51e46&lt;br /&gt;
&lt;br /&gt;
'''* Note that username and password are not included in hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;page&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;&lt;br /&gt;
    &amp;lt;success&amp;gt;DID details successfully updated&amp;lt;/success&amp;gt;&lt;br /&gt;
  &amp;lt;/status&amp;gt;&lt;br /&gt;
&amp;lt;/page&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
'''After successfully updating DID action log record is added.'''&lt;br /&gt;
&lt;br /&gt;
'''Errors'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;error&amp;gt;Call limit is incorrect format&amp;lt;/error&amp;gt; – Specified call limit is 0 or positive number.&lt;br /&gt;
* &amp;lt;error&amp;gt;DID was not found&amp;lt;/error&amp;gt; – Specified did does not exist or it belongs to different username(u).&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; – Specified username (u) does not exist or u is not admin, reseller or accountant with permission.&lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; – Hash was not correct. Check API_Secret_Key and order or params while concatenating hash_string.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API_did_details_update&amp;diff=19118</id>
		<title>MOR API did details update</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API_did_details_update&amp;diff=19118"/>
		<updated>2015-03-17T14:57:02Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Description=&lt;br /&gt;
&amp;lt;!---This functionality is available in MOR X5 and MOR X6---&amp;gt;&lt;br /&gt;
[[MOR API]] DID details update&lt;br /&gt;
&lt;br /&gt;
Please note that only admin, accountant(with device management) with permission and reseller can use this API. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
* Call: /api/did_details_update&lt;br /&gt;
* Methods: POST, GET(if allowed, not recomended)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===Parametres===&lt;br /&gt;
&lt;br /&gt;
* u – username to login. '''Required'''.&lt;br /&gt;
* did_id – this is number of voucher which will be used. '''Required'''.&lt;br /&gt;
* call_limit - this will be updated. '''Optional'''&lt;br /&gt;
* [[MOR API hash construction | hash]] – SHA1 hash constructed using '''did_id''' and '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Request===&lt;br /&gt;
&lt;br /&gt;
We have API Secret Key = secret, did_id = 10007 &amp;lt;br /&amp;gt;&lt;br /&gt;
We send:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;server_ip&amp;gt;/billing//api/did_details_update?u=admin&amp;amp;did_id=6511&amp;amp;call_limit=999&amp;amp;hash=f7de355c9b4421ce6c705b4b32c89dbcaca51e46&lt;br /&gt;
&lt;br /&gt;
'''* Note that username and password are not included in hash'''&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&lt;br /&gt;
'''Success'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;page&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;&lt;br /&gt;
    &amp;lt;success&amp;gt;DID details successfully updated&amp;lt;/success&amp;gt;&lt;br /&gt;
  &amp;lt;/status&amp;gt;&lt;br /&gt;
&amp;lt;/page&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
 After successfully updating DID action log record is added.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Errors'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;error&amp;gt;Call limit is incorrect format&amp;lt;/error&amp;gt; – Specified call limit is 0 or positive number.&lt;br /&gt;
* &amp;lt;error&amp;gt;DID was not found&amp;lt;/error&amp;gt; – Specified did does not exist or it belongs to different username(u).&lt;br /&gt;
* &amp;lt;error&amp;gt;Access Denied&amp;lt;/error&amp;gt; – Specified username (u) does not exist or u is not admin, reseller or accountant with permission.&lt;br /&gt;
* &amp;lt;error&amp;gt;Incorrect hash&amp;lt;/error&amp;gt; – Hash was not correct. Check API_Secret_Key and order or params while concatenating hash_string.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
* [[MOR API]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=MOR_API&amp;diff=19092</id>
		<title>MOR API</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=MOR_API&amp;diff=19092"/>
		<updated>2015-03-17T11:33:21Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:warning.png|100px]]&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;IMPORTANT!!! API methods described here are for MOR X6. For previous versions please check appropriate [http://wiki.kolmisoft.com/index.php/MOR_Manual#Old_Manuals manual].&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=About=&lt;br /&gt;
MOR API lets other software interact with MOR without knowing the internal structure of the database (DB) and other logic.&lt;br /&gt;
&lt;br /&gt;
MOR accepts requests by HTML POST and returns results in XML.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=MOR users that are allowed to use MOR API=&lt;br /&gt;
* Admin&lt;br /&gt;
* Reseller&lt;br /&gt;
* Accountant - only by using Admin Hash and Secret key&lt;br /&gt;
* Simple User&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Functions=&lt;br /&gt;
&lt;br /&gt;
== API Related ==&lt;br /&gt;
* [[API Configuration]] – configuration options for API.&lt;br /&gt;
* [[MOR API hash construction|Hash construction]] – how to construct hash to authenticate data over API.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Balance==&lt;br /&gt;
* [[MOR API user balance update | user_balance_update]] (change_user_balance) – changes User's Balance&lt;br /&gt;
Various methods to retrieve User balance&lt;br /&gt;
* [[MOR API user_balance_get|user_balance_get]] (balance) – retrieves a User Balance.&lt;br /&gt;
* [[Balance in phone | user_simple_balance_get]] (simple_balance) – gets User's Balance&lt;br /&gt;
* [[MOR API user balance get by psw | user_balance_get_by_psw]] – gets User's Balance by his owned Device's Password&lt;br /&gt;
* [[MOR API User Balance get by Username | user_balance_get_by_username]] – gets User's Balance by his owned Device's Username&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Callback==&lt;br /&gt;
* [[MOR API callback init|callback_init]] (callback) – initiates callback.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Calling Cards==&lt;br /&gt;
* [[MOR API card_by_cli_update| card_by_cli_update]] (cc_by_cli) – creates and updates calling cards, including adding and transferring funds, by being identified according the Caller_ID.&lt;br /&gt;
* [[MOR API card_from_group_sell| card_from_group_sell]] (buy_card_from_callingroup) – sells cards from calling card group.&lt;br /&gt;
* [[MOR API card_group_get| card_group_get]] (show_calling_card_group) – show calling group info.&lt;br /&gt;
* [[MOR API card_balance_get| card_balance_get]] (card_balance_get) – show card's balance.&lt;br /&gt;
* [[MOR API card_payment_add| card_payment_add]] – add payment to the calling card.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Calls==&lt;br /&gt;
* [[MOR API user calls get|user_calls_get]] (user_calls) – retrieves a list of calls in a selected time period for a user/device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Conflines==&lt;br /&gt;
* [[MOR API conflines update|conflines_update]] – changes settings for API, Default User or Default Device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Credit notes==&lt;br /&gt;
* [[MOR API credit_notes_get| credit_notes_get]] (credit_notes) – credit notes list.&lt;br /&gt;
* [[MOR API credit_note_update| credit_note_update]] – credit note update.&lt;br /&gt;
* [[MOR API credit_notes_create| credit_note_create]] – credit note create.&lt;br /&gt;
* [[MOR API credit_notes_delete| credit_note_delete]] – credit note delete.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Device==&lt;br /&gt;
* [[MOR API device create| device_create]] – create device&lt;br /&gt;
* [[MOR API device delete| device_delete]] (delete_device) – delete device&lt;br /&gt;
* [[MOR API devices get | devices_get]] (device_list) – users device list&lt;br /&gt;
* [[MOR API device callflow get| device_callflow_get]] - returns information about specified device callflow state.&lt;br /&gt;
* [[MOR API device callflow update | device_callflow_update]] – updates information of specified device callflow state. &lt;br /&gt;
* [[MOR API CLI info get | cli_info_get]] (cli_get_info) – shows id of device where CLI belongs.&lt;br /&gt;
* [[MOR API CLI delete | cli_delete]] – deletes specified CLI. &lt;br /&gt;
* [[MOR API CLI add | cli_add]] – creates CLI and assigns it to the specified device.&lt;br /&gt;
* [[MOR API device details get | device_details_get]] – shows all information about specified device.&lt;br /&gt;
* [[MOR_API_device_update | device_update]]  –  updates location_id of selected Device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==DID==&lt;br /&gt;
&lt;br /&gt;
* [[MOR API dids get| dids_get]] – get list of particular DIDs&lt;br /&gt;
* [[MOR API did_create| did_create]] – DID create&lt;br /&gt;
* [[MOR_API_did_device_assign| did_device_assign]] (did_assign_device) – Assign Device to DID&lt;br /&gt;
* [[MOR_API_did_device_unassign| did_device_unassign]] (did_unassign_device) – Unassign Device from DID &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Email==&lt;br /&gt;
* [[MOR API email send| email_send]] (send_email) – send Email.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Financial statements==&lt;br /&gt;
* [[MOR API financial_statements_get| financial_statements_get]] (financial_statements) – financial statements list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Invoices==&lt;br /&gt;
* [[MOR API invoices_get|invoices_get]] (invoices) – retrieves a list of invoices in a selected time period.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Login==&lt;br /&gt;
* [[MOR API user_login|user_login]] (login) – logs user in to MOR.&lt;br /&gt;
* [[MOR API user_logout|user_logout]] (logout) – logs user out from MOR.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Monitorings==&lt;br /&gt;
* [[MOR API ma_activate_api| ma_activate]] – turn on monitorings addon&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Payments==&lt;br /&gt;
* [[MOR API payment_create| payment_create]] (create_payment) – create payment.&lt;br /&gt;
* [[MOR API payments_get| payments_get]] (payments_list) – payments list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Phonebooks==&lt;br /&gt;
* [[MOR API phonebooks_get| phonebooks_get]] (phonebooks_api ) – phonebooks list.&lt;br /&gt;
* [[MOR API phonebook_edit| phonebook_edit]] (phonebook_edit_api) – edit phonebook.&lt;br /&gt;
* [[MOR API phonebook_record_create| phonebook_record_create]]  – create phonebook.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Quickforwards==&lt;br /&gt;
* [[MOR API Quickforwards get| quickforwards_dids_get]] (quickforwards_dids_get) – get Quickforwards.&lt;br /&gt;
* [[MOR API Quickforwards update| quickforwards_did_update]] (quickforwards_did_update) – update Quickforwards.&lt;br /&gt;
* [[MOR API Quickforwards delete| quickforwards_did_delete]] (quickforwards_did_delete) – delete Quickforwards.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Rates==&lt;br /&gt;
* [[MOR API rate get|rate_get]] (rate) – check user rate by prefix&lt;br /&gt;
* [[MOR API tariff rates get| tariff_rates_get]] (get_tariff) – get all tariff's rates&lt;br /&gt;
* [[MOR API tariff_retail_import | tariff_retail_import ]] (import_relail_tariff) – import xml retail tariff&lt;br /&gt;
* [[MOR API tariff_wholesale_update | tariff_wholesale_update ]] (wholesale_tariff) – update or create wholesale tariff&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Services==&lt;br /&gt;
* [[MOR API Service create| service_create]] – create Service.&lt;br /&gt;
* [[MOR API Service delete| service_delete]] – delete Service.&lt;br /&gt;
* [[MOR API Services get| services_get]] – get Services.&lt;br /&gt;
* [[MOR API Service update| service_update]] – update Service.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==SMS==&lt;br /&gt;
* [[MOR API sms send| sms_send]] (send_sms) – send SMS.&lt;br /&gt;
* [[MOR_API_user_sms_service_subscribe | user_sms_service_subscribe ]] – User subscription to SMS Service.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Subscriptions==&lt;br /&gt;
* [[MOR API subscription delete|subscription_delete]] - Subscription delete.&lt;br /&gt;
* [[MOR API Subscriptions get|subscriptions_get]] - Subscriptions get.&lt;br /&gt;
* [[MOR API subscription create|subscription_create]] - Subscription create.&lt;br /&gt;
* [[MOR API subscription update|subscription_update]] - Subscription delete.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==User==&lt;br /&gt;
&lt;br /&gt;
* [[MOR API user_register| user_register]] – create new user from params.&lt;br /&gt;
* [[MOR API user_details_get | user_details_get]] (user_details) – gets user details.&lt;br /&gt;
* [[MOR_API_user_details_update| user_details_update]] (user_update_api) – update user from params.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Resellers ==&lt;br /&gt;
* [[MOR API reseller group create]] - create new Reseller Group&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==Version==&lt;br /&gt;
* [[MOR API system version get| system_version_get]] (get_version) – get MOR version number.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
= Examples =&lt;br /&gt;
* [[MOR API PHP Examples]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=HTML POST=&lt;br /&gt;
All requests are in a similar format:&lt;br /&gt;
&lt;br /&gt;
 HTML POST: http://&amp;lt;SERVER_IP&amp;gt;/billing/api/&amp;lt;function&amp;gt;?u=username&lt;br /&gt;
&lt;br /&gt;
* username - the user name and password of the user who is asking for the data. &lt;br /&gt;
&lt;br /&gt;
If the user has 'admin' rights, he will get more results and  can perform more actions compared to a user who does not have such rights.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=Useful to know=&lt;br /&gt;
&lt;br /&gt;
* All API methods returns data straight from database. It means that MOR GUI settings does not affect data, it will be returned as it is saved in database. For example:&lt;br /&gt;
** Value of money will be returned in Default System [[Currencies|Currency]].&lt;br /&gt;
** Date will not be affected of [[Configuration_from_GUI#Visual| Default date format]] setting.&lt;br /&gt;
** Value of money will not be affected of [[Configuration_from_GUI#Visual|Number digits]] setting.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=See also =&lt;br /&gt;
* [[API Configuration]]&lt;br /&gt;
* [[MOR integration]]&lt;br /&gt;
* [[How to block access to some API functions]]&lt;br /&gt;
* [[API specification to be implemented in the future]]&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=File:Tariffs_list.png&amp;diff=19091</id>
		<title>File:Tariffs list.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=File:Tariffs_list.png&amp;diff=19091"/>
		<updated>2015-03-17T11:29:12Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: uploaded a new version of &amp;quot;File:Tariffs list.png&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmisoft.com/index.php?title=File:Tariffs.png&amp;diff=19090</id>
		<title>File:Tariffs.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmisoft.com/index.php?title=File:Tariffs.png&amp;diff=19090"/>
		<updated>2015-03-17T11:19:43Z</updated>

		<summary type="html">&lt;p&gt;Edvinas: uploaded a new version of &amp;quot;File:Tariffs.png&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Edvinas</name></author>
	</entry>
</feed>