GET api/Payment/ExchangeRate?currency={currency}&amount={amount}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
currency | string |
Required |
|
amount | decimal number |
Required |
Body Parameters
None.
Response Information
Resource Description
APIOrderOnlineResultOfConvertCurrencyResultName | Description | Type | Additional information |
---|---|---|---|
Data | ConvertCurrencyResult |
None. |
|
Success | boolean |
None. |
|
ErrorMessage | string |
None. |
|
ErrorType | OrderOnlineAPIErrorType |
None. |
|
Total | integer |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Data": { "Status": true, "Rate": 2.0, "AmountConvert": 3, "CurrencyTarget": "sample string 4", "Message": "sample string 5" }, "Success": true, "ErrorMessage": "sample string 2", "ErrorType": 0, "Total": 3, "Message": "sample string 4" }
application/xml, text/xml
Sample:
<APIOrderOnlineResultOfConvertCurrencyResultHwd4PmMc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.QLNH.BE.BO"> <Data> <AmountConvert>3</AmountConvert> <CurrencyTarget>sample string 4</CurrencyTarget> <Message>sample string 5</Message> <Rate>2</Rate> <Status>true</Status> </Data> <ErrorMessage>sample string 2</ErrorMessage> <ErrorType>None</ErrorType> <Message>sample string 4</Message> <Success>true</Success> <Total>3</Total> </APIOrderOnlineResultOfConvertCurrencyResultHwd4PmMc>