# DmtApi.RemitterApi

All URIs are relative to *http://180.179.217.85/uvarechargeapi/dmt_api.aspx*

Method | HTTP request | Description
------------- | ------------- | -------------
[**createremitterPost**](RemitterApi.md#createremitterPost) | **POST** /createremitter | Remitter Register
[**resendotpPost**](RemitterApi.md#resendotpPost) | **POST** /resendotp | RESEND-OTP
[**searchremitterPost**](RemitterApi.md#searchremitterPost) | **POST** /searchremitter | Get Remitter Information
[**updatePost**](RemitterApi.md#updatePost) | **POST** /update | Update with OTP


<a name="createremitterPost"></a>
# **createremitterPost**
> createremitterPost(_function, uniqueid, rmobile, rfname, rLname)

Remitter Register

If remitter does not exist then prompt for creation of remitter

### Example
```javascript
var DmtApi = require('dmt_api');

var apiInstance = new DmtApi.RemitterApi();

var _function = "createremitter"; // String | Function Name

var uniqueid = 56; // Number | UVA UNIQ ID

var rmobile = 56; // Number | Remitter Mobile

var rfname = "rfname_example"; // String | REMITTER FIRST NAME

var rLname = "rLname_example"; // String | REMITTER LAST NAME


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.createremitterPost(_function, uniqueid, rmobile, rfname, rLname, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **_function** | **String**| Function Name | [default to createremitter]
 **uniqueid** | **Number**| UVA UNIQ ID | 
 **rmobile** | **Number**| Remitter Mobile | 
 **rfname** | **String**| REMITTER FIRST NAME | 
 **rLname** | **String**| REMITTER LAST NAME | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/x-www-form-urlencoded
 - **Accept**: application/json

<a name="resendotpPost"></a>
# **resendotpPost**
> resendotpPost(_function, uniqueid, rmobile)

RESEND-OTP

Resend OTP to a remitter for verification.

### Example
```javascript
var DmtApi = require('dmt_api');

var apiInstance = new DmtApi.RemitterApi();

var _function = "resendotp"; // String | FUNCTION NAME

var uniqueid = 56; // Number | UVA UNIQ ID

var rmobile = 56; // Number | Remitter Mobile


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.resendotpPost(_function, uniqueid, rmobile, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **_function** | **String**| FUNCTION NAME | [default to resendotp]
 **uniqueid** | **Number**| UVA UNIQ ID | 
 **rmobile** | **Number**| Remitter Mobile | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/x-www-form-urlencoded
 - **Accept**: application/json

<a name="searchremitterPost"></a>
# **searchremitterPost**
> InlineResponse200 searchremitterPost(_function, uniqueid, rmobile)

Get Remitter Information

As a first step there is requirement of searching remitter, if remitter exists then api will send the result, like remitter name and the limit ( of transfer ) remaining. If no remitter then next step would be to activate create remitter api

### Example
```javascript
var DmtApi = require('dmt_api');

var apiInstance = new DmtApi.RemitterApi();

var _function = "searchremitter"; // String | function name

var uniqueid = 789; // Number | UVA UNIQ ID

var rmobile = 56; // Number | Remitter Mobile


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **_function** | **String**| function name | [default to searchremitter]
 **uniqueid** | **Number**| UVA UNIQ ID | 
 **rmobile** | **Number**| Remitter Mobile | 

### Return type

[**InlineResponse200**](InlineResponse200.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/x-www-form-urlencoded
 - **Accept**: application/json

<a name="updatePost"></a>
# **updatePost**
> updatePost(_function, uniqueid, rmobile, rfname, rLname, otp)

Update with OTP

each remitter require OTP verification hence need of this API to send the OTP received on the remitter phone

### Example
```javascript
var DmtApi = require('dmt_api');

var apiInstance = new DmtApi.RemitterApi();

var _function = "rotp"; // String | Function Name

var uniqueid = 56; // Number | UVA UNIQ ID

var rmobile = 56; // Number | Remitter Mobile

var rfname = "rfname_example"; // String | REMITTER FIRST NAME

var rLname = "rLname_example"; // String | REMITTER LAST NAME

var otp = 56; // Number | OTP


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.updatePost(_function, uniqueid, rmobile, rfname, rLname, otp, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **_function** | **String**| Function Name | [default to rotp]
 **uniqueid** | **Number**| UVA UNIQ ID | 
 **rmobile** | **Number**| Remitter Mobile | 
 **rfname** | **String**| REMITTER FIRST NAME | 
 **rLname** | **String**| REMITTER LAST NAME | 
 **otp** | **Number**| OTP | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/x-www-form-urlencoded
 - **Accept**: application/json

