# PaycometRestApi.IpApi

All URIs are relative to *https://rest.paycomet.com*

Method | HTTP request | Description
------------- | ------------- | -------------
[**getCountrybyIP**](IpApi.md#getCountrybyIP) | **POST** /v1/ip | Retrieves country info by IP
[**getRemoteAddress**](IpApi.md#getRemoteAddress) | **POST** /v1/ip/remote | Retrieves request remote address IP

<a name="getCountrybyIP"></a>
# **getCountrybyIP**
> InlineResponse20010 getCountrybyIP(opts)

Retrieves country info by IP

Country by IP

### Example
```javascript
import {PaycometRestApi} from 'paycomet_rest_api';

let apiInstance = new PaycometRestApi.IpApi();
let opts = { 
  'body': new PaycometRestApi.V1IpBody(), // V1IpBody | 
  'PAYCOMET_API_TOKEN': "PAYCOMET_API_TOKEN_example" // String | PAYCOMET API key (Query privilege required)
};
apiInstance.getCountrybyIP(opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**V1IpBody**](V1IpBody.md)|  | [optional] 
 **PAYCOMET_API_TOKEN** | **String**| PAYCOMET API key (Query privilege required) | [optional] 

### Return type

[**InlineResponse20010**](InlineResponse20010.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="getRemoteAddress"></a>
# **getRemoteAddress**
> InlineResponse20011 getRemoteAddress(opts)

Retrieves request remote address IP

Remote address by request

### Example
```javascript
import {PaycometRestApi} from 'paycomet_rest_api';

let apiInstance = new PaycometRestApi.IpApi();
let opts = { 
  'body': new PaycometRestApi.IpRemoteBody(), // IpRemoteBody | 
  'PAYCOMET_API_TOKEN': "PAYCOMET_API_TOKEN_example" // String | PAYCOMET API key (Query privilege required)
};
apiInstance.getRemoteAddress(opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**IpRemoteBody**](IpRemoteBody.md)|  | [optional] 
 **PAYCOMET_API_TOKEN** | **String**| PAYCOMET API key (Query privilege required) | [optional] 

### Return type

[**InlineResponse20011**](InlineResponse20011.md)

### Authorization

No authorization required

### HTTP request headers

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

