Api Function Name

get_dealer_map


This is a simple api which produces a json list of dealer stores which are stored within the dealer system. The purpose of this data is to be able to generate google maps mashups (as the returned data contains geo data) or anywhere where we need to show a list of dealers.

End Point URL

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

Parameters

action Type Example Required Description
action varchar get_dealer_map yes

Name of the api request

show_hours int 1

Pass 1 to show opening hours or leave empty to exclude the hours from the dealer data. (Excluding hours from the feed makes the feed smaller).

show_other_areas int 1

Pass 1 to show the csv list of other areas or leave empty to exclude the other areas from the dealer data. (Excluding other areas from the feed makes the feed smaller).

Response Codes

Response Code Response Message
2001 here is the data for your dealer maps

Example Responses

Response Code Response Format Example
2001 json
{
    "MainResponse": {
        "APIName": "Arctic Spas Core Live API",
        "APIFunctionName": "get_dealer_map",
        "HttpResponseCode": 200,
        "RequestID": 3858,
        "QueryDateTimeGMT": "2018-04-24 10:46:43",
        "ResponseTime": 0.275432109833,
        "ResponseCode": 2001,
        "ResponseMessage": "here is the data for your dealer maps"
    },
    "DealerStats": [
        {
            "total_dealers": 149
        }
    ],
    "DealerData": [
        {
            "dealer_id": 25539,
            "store_name": "JBS Wellnes",
            "dealer_logo_url": "https://api.arcticspascore.com/live/images/default-dealer-logo.png",
            "address_line1": "370 avenue des Jourdies",
            "address_line2": "",
            "town": "Saint Pierre en Faucigny",
            "state": "Faucigny",
            "post_code": "74800",
            "country_name": "France",
            "tel_primary": "0033651281015",
            "tel_secondary": "",
            "web_site_url": "https://www.arcticspassaintpierreenfaucigny.com",
            "map_data": {
                "address": "370 avenue des Jourdies\tSaint Pierre en Faucigny\tna\t74800\tFrance",
                "lat": "46.07645220000001",
                "lng": "6.375352799999973"
            }
        },
]
}