# GrowthMapperApi.ServiceabilityApi

All URIs are relative to *https://growthmapper-dev.appspot.com/_ah/api*

Method | HTTP request | Description
------------- | ------------- | -------------
[**checkServiceablity**](ServiceabilityApi.md#checkServiceablity) | **GET** /serviceability/v1.4.0/check | fetches the store id


<a name="checkServiceablity"></a>
# **checkServiceablity**
> InlineResponse200 checkServiceablity(CLIENT_ID, CLIENT_SECRET, opts)

fetches the store id

To check if the user&#39;location is under serviceability of any store 

### Example
```javascript
var GrowthMapperApi = require('growth_mapper_api');

var apiInstance = new GrowthMapperApi.ServiceabilityApi();

var CLIENT_ID = "CLIENT_ID_example"; // String | SDK Client Id

var CLIENT_SECRET = "CLIENT_SECRET_example"; // String | SDK Client Secret

var opts = { 
  'latitude': "latitude_example", // String | latitude of user's location. Must be used together with `longitude`.This parameter is incompatible with `address`. 
  'longitude': "longitude_example", // String | longitude of user's location Must be used together with `latitude`.This parameter is incompatible with `address`. 
  'address': "address_example" // String | User's address. For an exact result, use `latitude` and `longitude` instead. 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.checkServiceablity(CLIENT_ID, CLIENT_SECRET, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **CLIENT_ID** | **String**| SDK Client Id | 
 **CLIENT_SECRET** | **String**| SDK Client Secret | 
 **latitude** | **String**| latitude of user&#39;s location. Must be used together with &#x60;longitude&#x60;.This parameter is incompatible with &#x60;address&#x60;.  | [optional] 
 **longitude** | **String**| longitude of user&#39;s location Must be used together with &#x60;latitude&#x60;.This parameter is incompatible with &#x60;address&#x60;.  | [optional] 
 **address** | **String**| User&#39;s address. For an exact result, use &#x60;latitude&#x60; and &#x60;longitude&#x60; instead.  | [optional] 

### Return type

[**InlineResponse200**](InlineResponse200.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

