Tip | ||
---|---|---|
| ||
It is highly recommended to use HTTPS to access this part of API. |
Table of Contents |
---|
Customer Login or authentication confirmation
This API request needs to be done every time customer request to login to get access to customer account or just to confirm that current authentication is still valid and not expired.
Route: a/account/login
Method: POST
Panel | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Example logon request:
POST: rt=a/account/login , loginname=testlogin , password=123456789
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{"status":1,"success":"Logged in","token":"58fb1592f0c59b8dc1d5541aebdff8da"} |
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{"status":0,"error":"Login attempt failed!"} |
Example authentication check request:
POST: rt=a/account/login , token=58fb1592f0c59b8dc1d5541aebdff8da
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{ "status":1, "request":"authorized" } |
Account Logout
Simple log out request. Token needs to be disregarded from future use.
Route: a/account/logout
Method: POST
Panel | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Example request:
POST: rt=a/account/logout , token=58fb1592f0c59b8dc1d5541aebdff8da
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{
"status":1,
"success":"Logged out"
} |
Customer Account Details
Get basic customer Details.
Route: a/account/account
Method: POST
Panel | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|