# OnlinePaymentApi.ToRfundApi

All URIs are relative to *http://115.159.113.37:15400/*

Method | HTTP request | Description
------------- | ------------- | -------------
[**onlinePaymentToRefundPost**](ToRfundApi.md#onlinePaymentToRefundPost) | **POST** /onlinePayment/toRefund | \u8C03\u7528\u9000\u6B3E


<a name="onlinePaymentToRefundPost"></a>
# **onlinePaymentToRefundPost**
> ToRefund onlinePaymentToRefundPost(token, payChannel, payType, outTradeNo, totalFee, refundFee, refundReason, notifyUrl)

\u8C03\u7528\u9000\u6B3E

\u8FD9\u662F\u9000\u6B3E\u63A5\u53E3.\n

### Example
```javascript
var OnlinePaymentApi = require('online-payment-api');

var apiInstance = new OnlinePaymentApi.ToRfundApi()

var token = "token_example"; // {String} \u7528\u6237\u4EE4\u724C.

var payChannel = "payChannel_example"; // {String} \u652F\u4ED8\u6E20\u9053 1:\u5FAE\u4FE1 2:\u652F\u4ED8\u5B9D 3:\u94F6\u8054.

var payType = "payType_example"; // {String} \u652F\u4ED8\u7C7B\u578B 1:web 2:app 3:wap.

var outTradeNo = "outTradeNo_example"; // {String} \u652F\u4ED8\u6D41\u6C34\u53F7.

var totalFee = "totalFee_example"; // {String} \u603B\u91D1\u989D.

var refundFee = "refundFee_example"; // {String} \u9000\u6B3E\u91D1\u989D.

var refundReason = "refundReason_example"; // {String} \u9000\u6B3E\u539F\u56E0.

var notifyUrl = "notifyUrl_example"; // {String} \u9000\u6B3E\u901A\u77E5\u5730\u5740.


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.onlinePaymentToRefundPost(token, payChannel, payType, outTradeNo, totalFee, refundFee, refundReason, notifyUrl, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **token** | **String**| \u7528\u6237\u4EE4\u724C. | 
 **payChannel** | **String**| \u652F\u4ED8\u6E20\u9053 1:\u5FAE\u4FE1 2:\u652F\u4ED8\u5B9D 3:\u94F6\u8054. | 
 **payType** | **String**| \u652F\u4ED8\u7C7B\u578B 1:web 2:app 3:wap. | 
 **outTradeNo** | **String**| \u652F\u4ED8\u6D41\u6C34\u53F7. | 
 **totalFee** | **String**| \u603B\u91D1\u989D. | 
 **refundFee** | **String**| \u9000\u6B3E\u91D1\u989D. | 
 **refundReason** | **String**| \u9000\u6B3E\u539F\u56E0. | 
 **notifyUrl** | **String**| \u9000\u6B3E\u901A\u77E5\u5730\u5740. | 

### Return type

[**ToRefund**](ToRefund.md)

### Authorization

No authorization required

### HTTP reuqest headers

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

