GET api/EPayment/CalculateHostPaymentByExchangeRate?paymentAmount={paymentAmount}&exchangeRange={exchangeRange}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| paymentAmount | decimal number |
Required |
|
| exchangeRange | decimal number |
Required |
Body Parameters
None.
Response Information
Resource Description
TotalEPaymentVM| Name | Description | Type | Additional information |
|---|---|---|---|
| MerchantFee | decimal number |
None. |
|
| PaymentAmount | decimal number |
None. |
|
| IsPercentage | boolean |
None. |
|
| HostAmount | decimal number |
None. |
|
| Total | decimal number |
None. |
|
| Amount | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{
"MerchantFee": 1.0,
"PaymentAmount": 1.0,
"IsPercentage": true,
"HostAmount": 1.0,
"Total": 1.0,
"Amount": 1.0
}
application/xml, text/xml
Sample:
<TotalEPaymentVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Debtrak.BusinessObjects.ViewModels.EPayment"> <Amount>1</Amount> <HostAmount>1</HostAmount> <IsPercentage>true</IsPercentage> <MerchantFee>1</MerchantFee> <PaymentAmount>1</PaymentAmount> <Total>1</Total> </TotalEPaymentVM>