cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Refund - The referenced transaction does not meet the criteria for issuing a credit.

Each time I try to do a refund, I get this error message: The referenced transaction does not meet the criteria for issuing a credit.

I used to be able to refund a transaction, I changed nothing in my code since a while.

I tried multiple them to contact Authorize via their support page (https://developer.authorize.net/support/contact_us.html), but they never answered me

Payment response:

 

{
    "messages": {
        "message": [
            {
                "code": "I00001",
                "text": "Successful."
            }
        ],
        "resultCode": "Ok"
    },
    "refId": "myRef-1",
    "transactionResponse": {
        "SupplementalDataQualificationIndicator": 0,
        "accountNumber": "XXXXXXXXX",
        "accountType": "MasterCard",
        "authCode": "123456",
        "avsResultCode": "X",
        "cavvResultCode": "",
        "cvvResultCode": "M",
        "messages": [
            {
                "code": "1",
                "description": "This transaction has been approved."
            }
        ],
        "refTransID": "",
        "responseCode": "1",
        "testRequest": "0",
        "transHash": "",
        "transHashSha2": "*******************************",
        "transId": "123456789"
    }
}

 

Refund Request

 

{
    "createTransactionRequest": {
        "merchantAuthentication": {
            "name": "**************",
            "transactionKey": "***************"
        },
        "refId": "myRef-1",
        "transactionRequest": {
            "amount": 3422,
            "payment": {
                "creditCard": {
                    "cardNumber": "XXXX",
                    "expirationDate": "XXXX"
                }
            },
            "refTransId": "123456789",
            "transactionType": "refundTransaction"
        }
    }
}

 

Refund response

{
    "messages": {
        "message": [
            {
                "code": "E00027",
                "text": "The transaction was unsuccessful."
            }
        ],
        "resultCode": "Error"
    },
    "refId": "myRef-1",
    "transactionResponse": {
        "SupplementalDataQualificationIndicator": 0,
        "accountNumber": "XXXXXXXX",
        "accountType": "MasterCard",
        "authCode": "",
        "avsResultCode": "P",
        "cavvResultCode": "",
        "cvvResultCode": "",
        "errors": [
            {
                "errorCode": "54",
                "errorText": "The referenced transaction does not meet the criteria for issuing a credit."
            }
        ],
        "refTransID": "123456789",
        "responseCode": "3",
        "testRequest": "0",
        "transHash": "",
        "transHashSha2": "***********************************",
        "transId": "0"
    }
}

 

sebastien-fey
Member
2 REPLIES 2

It seems to me that you are working in a sandbox account that does not permit the transaction, whereas a production account would.

marine2026
Trusted Contributor

I am not on a sandBox account, I am pointing to this endpoint: https://api.authorize.net/xml/v1/request.api with a production account

We have been using the Authorize API for years to take payments and do refunds.