Exchange rate query

2021-04-09 21:25:59


The exchange rate is instant and accurate.

TYPE:

GET & POST

URL:

https://api.modenpay.io/pay/inquire/exchange_rate

 

Request parameter


ParameterTypeRequiredDescriptionReference
currency_codestringYesCurrency code (uppercase string)VND

 

 

 

Request example


 

curl -X POST https://api.modenpay.io/pay/inquire/currency_code \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: Basic <Your Basic Auth>'
  -D '{
		"currency_code" : "VND"	
}' 

 

Example 200 response


 

{
    "status": "success",
    "data": {
    	"currency_code": "VND",
        "exchange_rate": "22917.22"
    }
}

 

Example 412 response


 

{
	"status" : "fail",
	"code" : 10000,
	"message" : "xxxxxxx"
}

This is an error json return, you can find the corresponding error information according to the error code code. Error code reference table