# PaycometRestApi.RefundApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**executeRefund**](RefundApi.md#executeRefund) | **POST** /v1/payments/{order}/refund | Perform a refund

<a name="executeRefund"></a>
# **executeRefund**
> InlineResponse20015 executeRefund(order, PAYCOMET_API_TOKEN, opts)

Perform a refund

execute_refund

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

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

### Parameters

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

### Return type

[**InlineResponse20015**](InlineResponse20015.md)

### Authorization

No authorization required

### HTTP request headers

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

