Api Function Name

dp_3000_login_dealer


This function will verify the credentials of a dealerpanel user and provide a Session Token for the user to be able to use the dealer panel.

End Point URL

The url end point is: https://api.arcticspascore.com/live/

Parameters

action Type Example Required Description
action varchar dp_3000_login_dealer yes

Name of the action

username varchar joebloggs yes

Username of the user

password varchar abc123 yes

Password of the user

Response Codes

Response Code Response Message
3001 username was empty
3002 password was empty
3003 there was an issue with your login, login details were either incorrect or user does not exist
3004 login was successful

Example Responses

Response Code Response Format Example
3004 json
{
    "MainResponse": {
        "APIName": "Arctic Spas Core Live API",
        "APIFunctionName": "dp_3000_login_dealer",
        "HttpResponseCode": 200,
        "RequestID": 4915,
        "QueryDateTimeGMT": "2018-04-27 08:53:40",
        "ResponseTime": 0.12954211235,
        "ResponseCode": 3004,
        "ResponseMessage": "here is the dealer session_token"
    },
    "SessionData": {
        "WPUserID": 635,
        "SessionToken": "8f20ebe6f539c56897579a6741747159",
        "Role": "dealer"
    }
}