ach ACH


Sale API

URL To Call: https://gateway2.tcbpay.com/apis/merchant_check21_process.php
Method of Form Submission: POST
Parameters:
Variable Name Description Required Expected Values
username TCB Pay Gateway Username Y TCB Pay Gateway Username
password TCB Pay Gateway Password Y TCB Pay Gateway Password
currency Currency of Transaction Y USD,EUR,GBP
account_number Account Number of the customer Y 201534353553
routing_number Routing Number of the customer Y 124343435
check_number Check Number of the customer Y 2015
bank_name Bank name of check Y Bank of America
amount Amount of the check Y 133.24
account_type Account Type of the customer Y Personal, business
first_name First name of Account Holder N Roberto
last_name Last name of Account Holder N Diaz
adress Address of the customer N 4446 Green Avenue, Suite 56
city City of the customer N Los Angeles
state State of the customer N CA
country_code Country of the customer N 209 (Follow Country List below)
zip_code Zipcode of the customer N 94085
phone_number Phone Number of the customer N 408-345-2323
e-mail Email ID of the customer N test@test.com
custom_field_1 Custom value 1 N -
custom_filed_2 Custom value 2 N -
custom_filed_3 Custom value 3 N -

Response:

Response Type of the API Call is an JSON Array. For Error, Elements are error_code and error_ description and for Successful transactions, Two Elements are returned. success_code, success_description. success_code is always 00.

Example:

                    
		Sample Form:
		
		<html lang="en">
		<head>
		<meta charset="UTF-8">
		<title>TCB Pay ACH API Test</title>
		</head>
		<body>
		<form name="" action="https://gateway2.tcbpay.com/apis/merchant_check21_process.php" method="post">
		<input type="text" name="username" value="tcbpayusername"/>
		<input type="text" name="password" value="tcbpaypassword"/>
		<input type="text" name="currency" value="USD"/>
		<input type="text" name="account_number" value="201534"/>
		<input type="text" name="routing_number" value="124343435"/>
		<input type="text" name="check_number" value="2015"/>
		<input type="text" name="bank_name" value="Bank of America"/>
		<input type="text" name="amount" value="133.24"/>
		<input type="text" name="account_type" value="personal"/>
		<input type="text" name="first_name" value="Roberto"/>
		<input type="text" name="last_name" value="Diaz"/>
		<input type="text" name="address" value="4446 Green Avenue, Suite 56"/>
		<input type="text" name="city" value="Los Angeles"/>
		<input type="text" name="state" value="CA"/>
		<input type="text" name="zip_code" value="94085"/>
		<input type="text" name="country_code" value="209"/>
		<input type="text" name="email" value="test@test.com"/>
		<input type="text" name="phone_number" value="408-345-2323"/>
		<br/>
		<input type="submit" value="submit"/>
		</form>
		</body>
		</html>
        
            

Sample Response :

{"response":{"error_code":"03","error_description":"Account Number is Missing or Invalid"}}

Report API:

This API allows you to perform pre-authorization payment.

URL To Call: https://gateway2.tcbpay.com/apis/ merchant_check21_reporting.php
Method of Form Submission: POST
Parameters:
Variable Name Description Required Expected Values
username TCB Pay Gateway Username Y TCB Pay Gateway Username
password TCB Pay Gateway Password Y TCB Pay Gateway Password
start_date From date Y YYYY-MM-DD
end_date To date Y YYYY-MM-DD

Response:

Response Type of the API Call is an JSON Array. For Error, Elements are error_code and error_ description and for Successful transactions, Two Elements are returned. success_code, transaction array. success_code is always 00.

Example:

                    
		Sample Form:		
					
		<html lang="en">
		<head>
		<meta charset="UTF-8">
		<title>TCB Pay ACH API Report Test</title>
		</head>
		<body>
		<form name="" action="https://gateway2.tcbpay.com/apis/ merchant_check21_reporting.php"
		method="post">
		<input type="text" name="username" value="tcbpayusername"/>
		<input type="text" name="password" value="tcbpaypassword"/>
		<input type="text" name="start_date" value="2019-04-01"/>
		<input type="text" name="end_date" value="2019-04-15"/>
		<br/>
		<input type="submit" value="submit"/>
		</form>
		</body>
		</html>
        
            

Sample Response :

{"response":{"error_code":"19","error_description":" Transaction Start Date is missing or invalid"}}

Error Codes:

Error Code Description
01 Merchant Information is Missing
02 Transaction Currency is Missing
03 Account Number is missing or Invalid
04 Routing Number is missing or invalid
05 Check Number is missing or invalid
06 Invalid Amount
07 Account Type is Missing
08 Proper Zipcode is missing
09 Proper Customer Email Id is missing
10 Invalid Processor
11 Requested Currency is not allowed for this Merchant
12 Invalid Merchant Information
13 Invalid Country Code
14 Sale Volume exceeded for this Merchant
15 Monthly Volume exceeded for this Merchant
16 Transaction Limit exceeded for this Merchant
17 IP wise transaction limit exceeded for this Merchant
18 Bank Name is missing
19 Transaction Start Date is missing or invalid
20 Transaction End Date is missing or invalid
A1 Transaction Entry Failure

Country List:

Country Code Country Name
31 Canada
209 United States

Currency List:

Currency Code Currency Name
USD United Sates Dollar