Query the currency supported by the system

2021-03-22 18:21:22


The currency supported by the system is dynamic.

Type:

GET & POST

URL:

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

 

Request parameter


None

 

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>'

 

Example 200 response


 

{
    "status": "success",
    "data": [
        {
            "currency_code": "VND"
        },
        {
            "currency_code": "USD"
        }
    ]
}

 

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