2 posts / 0 new
Last post
christopherfelp...
Simple Void request returning "Bad Request (69) - Invalid Transaction Tag"

I'm unable to get any refund or void functionality work using the online test interface and also in code. List below is the request flow for a purchase and void request. Any insights would be appreciated.

PURCHASE REQUEST
{
"merchant_ref": "Purchase-Test",
"transaction_type": "purchase",
"method": "credit_card",
"amount": "1299",
"partial_redemption": "false",
"currency_code": "USD",
"credit_card": {
"type": "visa",
"cardholder_name": "John Smith",
"card_number": "4788250000028291",
"exp_date": "1020",
"cvv": "123"
}
}

PURCHASE RESPONSE
{
"correlation_id": "228.5193097697616",
"transaction_status": "approved",
"validation_status": "success",
"transaction_type": "purchase",
"transaction_id": "ET102432",
"transaction_tag": "2243591603",
"method": "credit_card",
"amount": "1299",
"currency": "USD",
"cvv2": "M",
"token": {
"token_type": "FDToken",
"token_data": {
"value": "8751234778958291"
}
},
"card": {
"type": "visa",
"cardholder_name": "John Smith",
"card_number": "8291",
"exp_date": "1020"
},
"bank_resp_code": "100",
"bank_message": "Approved",
"gateway_resp_code": "00",
"gateway_message": "Transaction Normal"
}

VOID REQUEST
{
"merchant_ref": "Purchase-Test",
"transaction_tag": "2243591603",
"transaction_type": "void",
"method": "credit_card",
"amount": "1299",
"currency_code": "USD"
}

VOID RESPONSE
{
"correlation_id": "228.1930989750068",
"Error": {
"messages": [
{
"code": "400",
"description": "Bad Request (69) - Invalid Transaction Tag"
}
]
},
"transaction_status": "Not Processed"
}


christopherlord730
Re: Simple Void request returning "Bad Request (69) - Invalid...

The incorrect transaction_id is referenced in the void. You need to reference ET102432 in the URL you call since that was returned with the purchase transaction.

228.1930989750068|/api/transactions/ET170242