Api Function Name

dp_7000_get_shop_details


This will get the details of a specific shop.

End Point URL

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

Parameters

action Type Example Required Description
action varchar dp_7000_get_shop_details yes

Name of the action

wp_user_id int 123

User id of the user

session_token varchar abc123 yes

Session of the user

store_id varchar 123 yes

The id of the store

Response Codes

Response Code Response Message
7001 wp_user_id was empty
7002 session_token was empty
7003 store_id was empty
7004 user does not have permission to access that store
7005 invalid store_id
7006 here is the store details

Example Responses

Response Code Response Format Example
7006 json
{
    "MainResponse": {
        "APIName": "Arctic Spas Core Live API",
        "APIFunctionName": "dp_7000_get_shop_details",
        "HttpResponseCode": 200,
        "RequestID": 4930,
        "QueryDateTimeGMT": "2018-04-27 10:33:39",
        "ResponseTime": 0.123451948166,
        "ResponseCode": 7006,
        "ResponseMessage": "here is the store details"
    },
    "StoreDetails": {
        "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\":\"\"}]"
    }
}