汇率查询

2021-04-09 13:21:54


汇率是即时和准确的。

类型:

GET & POST

URL:

https://api.payotc365.com/pay/inquire/exchange_rate

 

请求参数


参数类型必填描述参考值
currency_codestringYes货币代码(大写字符串)VND

 

 

 

 

请求示例


 

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

 

示例 200 响应


 

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

 

示例 412 响应


 

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

这是一个错误的json返回,您可以根据错误 code 代码查找对应错误信息。错误代码参考表