# PaycometRestApi.ExchangeApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**exchange**](ExchangeApi.md#exchange) | **POST** /v1/exchange | Converts a certain amount from a currency to another.

<a name="exchange"></a>
# **exchange**
> InlineResponse2007 exchange(opts)

Converts a certain amount from a currency to another.

Gets the exchange of an amount.

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

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

### Parameters

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

### Return type

[**InlineResponse2007**](InlineResponse2007.md)

### Authorization

No authorization required

### HTTP request headers

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

