Api Function Name

dp_6000_get_shops_for_user


This will get a list of shops that the logged in user can access and the response 6004 will contain some of the data related to the shop.

End Point URL

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

Parameters

action Type Example Required Description
action varchar This will get a list of shops that the logged in user can access. yes

Name of the action

session_token varchar abc123

Session token for the user

wp_user_id int 123

USer id of the user

Response Codes

Response Code Response Message
6001 wp_user_id was empty
6002 session_token was empty
6003 Sorry the user does not have any stores assigned to them
6004 list of shops

Example Responses

Response Code Response Format Example
6004 json
{
    "MainResponse": {
        "APIName": "Arctic Spas Core Live API",
        "APIFunctionName": "dp_6000_get_shops_for_user",
        "HttpResponseCode": 200,
        "RequestID": 4925,
        "QueryDateTimeGMT": "2018-04-27 10:24:39",
        "ResponseTime": 0.125415086746,
        "ResponseCode": 6004,
        "ResponseMessage": "here is a list of the shops this user can edit"
    },
    "Stores": [
        {
            "store_id": "24884",
            "store_name": "4 Deluxe GmbH Berlin",
            "opening_hours": "[{\"day_name\":\"Monday\",\"status\":\"open\",\"slot1from\":\"09:00\",\"slot1to\":\"18:00 Uhr\",\"slot2from\":\"\",\"slot2to\":\"\",\"custom_text\":\"\"},{\"day_name\":\"Tuesday\",\"status\":\"open\",\"slot1from\":\"09:00\",\"slot1to\":\"17:00 Uhr\",\"slot2from\":\"\",\"slot2to\":\"\",\"custom_text\":\"\"},{\"day_name\":\"Wednesday\",\"status\":\"open\",\"slot1from\":\"09:00\",\"slot1to\":\"18:00 Uhr\",\"slot2from\":\"\",\"slot2to\":\"\",\"custom_text\":\"\"},{\"day_name\":\"Thursday\",\"status\":\"open\",\"slot1from\":\"09:00\",\"slot1to\":\"18:00 Uhr\",\"slot2from\":\"\",\"slot2to\":\"\",\"custom_text\":\"\"},{\"day_name\":\"Friday\",\"status\":\"open\",\"slot1from\":\"09:00\",\"slot1to\":\"18:00 Uhr\",\"slot2from\":\"\",\"slot2to\":\"\",\"custom_text\":\"\"},{\"day_name\":\"Saturday\",\"status\":\"open\",\"slot1from\":\"10.00\",\"slot1to\":\"17.00 Uhr\",\"slot2from\":\"\",\"slot2to\":\"\",\"custom_text\":\"\"},{\"day_name\":\"Sunday\",\"status\":\"open\",\"slot1from\":\"12:00\",\"slot1to\":\"16:00 Uhr\",\"slot2from\":\"\",\"slot2to\":\"\",\"custom_text\":\"\"}]"
        },
        {
            "store_id": "15820",
            "store_name": "Arctic Spas Marbella",
            "opening_hours": "[{\"day_name\":\"Monday\",\"status\":\"open\",\"slot1from\":\"10am\",\"slot1to\":\"8pm\",\"slot2from\":\"\",\"slot2to\":\"\",\"custom_text\":\"\"},{\"day_name\":\"Tuesday\",\"status\":\"open\",\"slot1from\":\"10am\",\"slot1to\":\"5pm\",\"slot2from\":\"\",\"slot2to\":\"\",\"custom_text\":\"\"},{\"day_name\":\"Wednesday\",\"status\":\"open\",\"slot1from\":\"10am\",\"slot1to\":\"5pm\",\"slot2from\":\"\",\"slot2to\":\"\",\"custom_text\":\"\"},{\"day_name\":\"Thursday\",\"status\":\"open\",\"slot1from\":\"10am\",\"slot1to\":\"5pm\",\"slot2from\":\"\",\"slot2to\":\"\",\"custom_text\":\"\"},{\"day_name\":\"Friday\",\"status\":\"open\",\"slot1from\":\"10am\",\"slot1to\":\"3pm\",\"slot2from\":\"\",\"slot2to\":\"\",\"custom_text\":\"We close early on a friday\"},{\"day_name\":\"Saturday\",\"status\":\"open\",\"slot1from\":\"10am\",\"slot1to\":\"12pm\",\"slot2from\":\"\",\"slot2to\":\"\",\"custom_text\":\"We close a bit earlier on saturdays\"},{\"day_name\":\"Sunday\",\"status\":\"closed\",\"slot1from\":\"\",\"slot1to\":\"\",\"slot2from\":\"\",\"slot2to\":\"\",\"custom_text\":\"\"}]"
        }
    ]
}