According to the document (https://developer.payeezy.com/payeezy-api/apis/post/transactions/%7Bid%7D-5)
Following is the URL for VOID
https://api-cert.payeezy.com/v1/transactions/1400320000000007314943
Following is the payload
{
"transaction_type": "void",
"method": "ach",
"amount": "1299",
"currency_code": "USD",
"ach": {
"token": "2000000002085179"
}
}
Following is response
400 Bad Request
{
"correlation_id": "228.1485946931990",
"Error": {
"messages": [
{
"code": "decline_reason",
"description": "FAIL L2M 79"
}
]
},
"transaction_status": "declined",
"validation_status": "success",
"transaction_type": "void",
"transaction_id": "1400320000000007314943",
"method": "ach",
"amount": "1299",
"currency": "USD",
"gateway_resp_code": "79",
"gateway_message": "0"
}
Please let me know the right way to void the transaction
Thanks.
Extra information
TRANSACTION ID
i got the transaction id (1400320000000007314943) by making an authorize call
Following is the response of authorize call
{
"correlation_id": "228.1485946396405",
"transaction_status": "Not Processed",
"validation_status": "success",
"transaction_type": "authorize",
"transaction_id": "1400320000000007314943",
"method": "ach",
"amount": "1299",
"currency": "USD",
"gateway_resp_code": "24",
"gateway_message": "0"
}
TOKEN
i got the token (2000000002085179) by making a call to enroll the account
Following is the response
{
"token": "2000000002085179",
"status_code": "70",
"status_description": "PENDING_VALIDATIONS",
"response_verbiage": "Enrollment Response Page 8 - Approved/Pending BAA/Device Mailed",
"tele_check_trace_id": "1400320000000007314940",
"tck_response_code": "07",
"approve_code": "3114",
"display_text": "APPROVED ",
"sequence_id": "103",
"eca_offered_code": "Y"
}