Please note that when I am trying to refund a transaction I am getting error code 54 in the response.
Below are some details for the transactions the I am trying to refund.
{ "authorize": { "responseCode": "1", "authCode": "VY1HJA", "avsResultCode": "Y", "cvvResultCode": "P", "cavvResultCode": "2", "transId": "60177506194", "refTransID": "", "transHash": "", "testRequest": "0", "accountNumber": "XXXX0002", "accountType": "AmericanExpress", "messages": { "message": [ { "code": "1", "description": "This transaction has been approved." } ] }, "transHashSha2": "", "profile": { "customerProfileId": "902067778", "customerPaymentProfileId": "901916432" }, "networkTransId": "3VI24NKBLOH4TPOSS48JR2R" }, "lastFour": "0002", "expirationDate": "12\/24" }
{ "authorize": { "responseCode": "1", "authCode": "R8FCA1", "avsResultCode": "Y", "cvvResultCode": "P", "cavvResultCode": "2", "transId": "60177503762", "refTransID": "", "transHash": "", "testRequest": "0", "accountNumber": "XXXX0002", "accountType": "AmericanExpress", "messages": { "message": [ { "code": "1", "description": "This transaction has been approved." } ] }, "transHashSha2": "", "profile": { "customerProfileId": "902060304", "customerPaymentProfileId": "901909039" }, "networkTransId": "Q4W42FGQEBNFYKI9IAQUSM2" }, "lastFour": "0002", "expirationDate": "12\/24" }
11-11-2021 01:47 AM - edited 11-11-2021 01:48 AM
Hello @satisfiedshoes
Ref: https://developer.authorize.net/api/reference/responseCodes.html?code=54
CODE: 54
EXPLANATION: The referenced transaction does not meet the criteria for issuing a credit.
INTEGRATION SUGGESTIONS: The referenced transaction does not meet the criteria for issuing a credit. It may be unsettled, an invalid type, the wrong currency, an invalid reference transaction ID or settled more than 180 days ago.
In your case it seems you submitted refund requests against (60177506194 ; 60177503762) shortly after these two transactions were created, unsettled transactions cannot be refunded, they can only be voided.
Mansour
11-30-2021 06:48 AM