Difference between revisions of "MOR API user login"

From Kolmisoft Wiki
Jump to navigationJump to search
Line 37: Line 37:


To redirect customer to MOR Billing main site go to: '''SETTINGS -> Setup -> Settings -> API''' and check the marked option:
To redirect customer to MOR Billing main site go to: '''SETTINGS -> Setup -> Settings -> API''' and check the marked option:
<br>
If login is successful the customer will be redirected to MoR billing Main site.
<br><br>
<br><br>
[[File:Mor_api_redirect.png]]
[[File:Mor_api_redirect.png]]
<br><br>
<br><br>

Revision as of 14:49, 10 January 2011

MOR API

Logs in user into MOR


Request

HTML POST: http://<SERVER_IP>/billing/api/login?u=username&p=password

Result

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
 <action>
   <name>login</name>
   <status>ok</status>
 </action>

Everything is ok. User is logged in to the system.


<?xml version="1.0" encoding="utf-8" standalone="yes"?>
 <action>
   <name>login</name>
   <status>failed</status>
 </action>

This means that wrong username and/or password and user can't be authenticated.



Customer redirect

This option is available starting from MOR 9

To redirect customer to MOR Billing main site go to: SETTINGS -> Setup -> Settings -> API and check the marked option:
If login is successful the customer will be redirected to MoR billing Main site.

Mor api redirect.png