cancel
Showing results for 
Search instead for 
Did you mean: 

PreAuth Card API – Receiving 'transId' as '0'

Hi Team,

We are testing Preauth API in sandbox environment and getting response as transId '0'.

 

Request:

curl --location 'https://apitest.authorize.net/xml/v1/request.api' \
--header 'Content-Type: application/json' \
--data '{
    "createTransactionRequest": {
        "merchantAuthentication": {
            "name": "9NGajc72Wj4",
            "transactionKey": "66Sqg58D846TJguW"
        },
        "refId": "123456",
        "transactionRequest": {
            "transactionType": "authOnlyTransaction",
            "amount": "100",
            "payment": {
                "creditCard": {
                    "cardNumber": "5424000000000015",
                    "expirationDate": "2025-12",
                    "cardCode": "999"
                }
            },
            "authorizationIndicatorType": {
                "authorizationIndicator": "pre"
            }
        }
    }
}'

Response:

{
    "transactionResponse": {
        "responseCode": "1",
        "authCode": "000000",
        "avsResultCode": "P",
        "cvvResultCode": "",
        "cavvResultCode": "",
        "transId": "0",
        "refTransID": "",
        "transHash": "",
        "testRequest": "1",
        "accountNumber": "XXXX0015",
        "accountType": "MasterCard",
        "messages": [
            {
                "code": "1",
                "description": "This transaction has been approved."
            }
        ],
        "transHashSha2": "AA8B94F8BC9A9D4CCBCC72BD50291C3E98AF64590C30D1921FB22CEE85EE3EDA1EAB9B0695F1488BBBB7867150E74643BCB2F0794BB780EA447FFB1F829F6018",
        "SupplementalDataQualificationIndicator": 0
    },
    "refId": "123456",
    "messages": {
        "resultCode": "Ok",
        "message": [
            {
                "code": "I00001",
                "text": "Successful."
            }
        ]
    }
}
Finmont
New Member
0 REPLIES 0