# NodeSwaggerApi.DocumentChargeHistoryApi

All URIs are relative to *https://api.supremepay.lk:3011/api/admin*

Method | HTTP request | Description
------------- | ------------- | -------------
[**getDocumentChargeHistory**](DocumentChargeHistoryApi.md#getDocumentChargeHistory) | **GET** /loans/documents/history | 
[**getDocumentChargeHistoryById**](DocumentChargeHistoryApi.md#getDocumentChargeHistoryById) | **GET** /loans/documents/history/{id} | 


<a name="getDocumentChargeHistory"></a>
# **getDocumentChargeHistory**
> DocumentChargeHistory getDocumentChargeHistory(opts)



Returns document charge history details

### Example
```javascript
var NodeSwaggerApi = require('node_swagger_api');
var defaultClient = NodeSwaggerApi.ApiClient.instance;

// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

var apiInstance = new NodeSwaggerApi.DocumentChargeHistoryApi();

var opts = { 
  'page': 0, // Number | The number of items to skip before starting to collect the result set.
  'perpage': 10 // Number | The numbers of items to return.
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **page** | **Number**| The number of items to skip before starting to collect the result set. | [optional] [default to 0]
 **perpage** | **Number**| The numbers of items to return. | [optional] [default to 10]

### Return type

[**DocumentChargeHistory**](DocumentChargeHistory.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

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

<a name="getDocumentChargeHistoryById"></a>
# **getDocumentChargeHistoryById**
> DocumentChargeHistory getDocumentChargeHistoryById(id)



Returns document charge details according to the id

### Example
```javascript
var NodeSwaggerApi = require('node_swagger_api');
var defaultClient = NodeSwaggerApi.ApiClient.instance;

// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

var apiInstance = new NodeSwaggerApi.DocumentChargeHistoryApi();

var id = "id_example"; // String | if you want specific document charge history you want to give documentcharge id


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**| if you want specific document charge history you want to give documentcharge id | 

### Return type

[**DocumentChargeHistory**](DocumentChargeHistory.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

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

