Error codes

This section contains the list of error codes. Please note that this is to give you an idea of possible error codes, but the actual number of error codes and messages may be different to the below list. Please make sure your application accepts and handles it dynamically and it is not hardcoded in the code.

Invalid from_currency 
{
    "errorCode": "QU:Rate:0003",
    "message": "Currency PNR is not valid",
    "errors": [
        {
            "errorCode": "QU:Rate:0003",
            "fieldName": "BuyCurrency",
            "message": "Currency PNR is not valid"
        }
    ]
}
 
Invalid to_currency 
{
    "errorCode": "QU:Rate:0003",
    "message": "Currency PNR is not valid",
    "errors": [
        {
            "errorCode": "QU:Rate:0003",
            "fieldName": "SellCurrency",
           "message": "Currency PNR is not valid"
        }
    ]
}
 
Zero amount
{
    "errorCode": "QU:Rate:0004",
    "message": "Amount must be greater then Zero",
    "errors": [
        {
            "errorCode": "QU:Rate:0004",
            "fieldName": "BuyAmount",
            "message": "Amount must be greater then Zero"
        }
    ]
}
 
Amount is negative
{
    "errorCode": "QU:Rate:0004",
    "message": "Amount must be greater then Zero",
    "errors": [
        {
            "errorCode": "QU:Rate:0004",
            "fieldName": "BuyAmount",
            "message": "Amount must be greater then Zero"
        }
    ]
}