We are here 24/7, keeping an eye on things and making sure everything runs smoothly.
This API is responsible for creating new payment transactions, and this API is compatible with both encrypted and plain credit card methods of transactions.
This table describes the request parameters for Sale API.
Variable Name | Description | Required | Expected Value |
---|---|---|---|
username | Merchant service depot Gateway Username | Y | Merchant service depot Gateway Username |
api_key | Merchant service depot Gateway API Key | Y | Merchant service depot Gateway API Key |
account_number | Bank account number (Set the secret key in the account setting to encrypt account_number. Make sure to encrypt account_number with AES 128-bit ECB cipher code.) | Y | 0000000016 |
routing_number | Bank routing number (Set the secret key in the account setting to encrypt routing_number. Make sure to encrypt routing_number with AES 128-bit ECB cipher code.) | Y | 122105278 |
account_type | Bank account type | Y | SAVINGS, CHECKING, OTHER |
amount | Amount to be charged | Y | 133.24 |
currency | Currency of Transaction (allowed currencies will be determined during the time of merchant boarding). | Y | USD,EUR,GBP,CAD,AUD,NZD,AED, DKK,MXN,SEK,CHF |
company_name | Company Name of the cardholder | N | - |
first_name | First name of the cardholder | Y | Roberto |
last_name | Last name of the cardholder | Y | Diaz |
address | Address of the cardholder | N | 4446 Green Avenue, Suite 56 |
city | City of the cardholder | N | Los Angeles |
state | State of the cardholder | N | CA |
country_code | Country of the cardholder(ISO alpha-2) | Y | US, CN |
zip_code | Zip code of the cardholder | Y | 94085 |
phone_number | Phone Number of the cardholder | N | 408-345-2323 |
ship_address_as_bill_address | Billing address copy Shipping address | Y | Y or N (default value N) Y- Billing address copy to Shipping address N- Not copy |
ship_company_name | Shipping Company Name | N | - |
ship_first_name | Shipping First name | Y | Roberto |
ship_last_name | Shipping Last name | Y | Diaz |
ship_address | Shipping Address | N | 4446 Green Avenue, Suite 56 |
ship_city | Shipping City | N | Los Angeles |
ship_state | Shipping State | N | CA |
ship_country_code | Shipping Country (ISO alpha-2) | Y | US, CN |
ship_zip_code | Shipping Zip code | Y | 94085 |
ship_phone_number | Shipping Phone Number | N | 408-345-2323 |
Email ID of the cardholder | Y | test@test.com | |
email_receipt | Sends transaction details to specified cardholder email | N | Y or N (default value N) Y- Send email N- Not send |
emailReceiptDBAEmail | Email Receipt to Merchant DBA Contact Email | N | Y or N (default value N) Y- Send email N- Not send |
memo | Memo of the transaction | N | |
client_ip | Client IP address | N | 127.0.0.1 |
custom_field_1 | N | additional parameter 1 | |
custom_field_2 | N | additional parameter 2 | |
source | C | source=SHOPIFY if using Shopify otherwise it is not required | |
reference_id | Transaction reference id | N | Reference ID should be unique |
<form name="" id="formID" action="https://gateway2-stg.tcbpay.com/apis/ach_sale.php" method="post"> <input type="text" name="username" value="tcbpayusername"/> <input type="text" name="api_key" value="tcbpayapikey"/> <input type="text" name="account_number" value="0000000016"/> <input type="text" name="routing_number" value="122105278"/> <input type="text" name="account_type" value="CHECKING"/> <input type="text" name="amount" value="14.5"/> <input type="text" name="currency" value="USD"/> <input type="text" name="company_name" value="Merchant service depot"/> <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="country_code" value="US"/> <input type="text" name="zip_code" value="11111"/> <input type="text" name="phone_number" value="323-323-3223"/> <input type="text" name="client_ip" value="127.0.0.1"/> <input type="text" name="email" value="abcdef@mail.com"/> <input type="checkbox" name="email_receipt" value="Y"/> <br/> <input type="submit" value="submit"/> </form>
The response of the API Call is a JSON array. For Error, two elements are returned, code and description. For Successful transactions, three elements are returned, code, description, transaction_id, and reference_id. The response code for a successful API call is always 00.
{"response":{"code":"00","description":"Transaction Entry Success","transaction_id":8405,"total_amount":9.99,"convenience_fee":0,"reference_id":""}}
This API is responsible for creating new payment transactions, and this API is compatible with both encrypted and plain credit card methods of transactions.
This table describes the request parameters for Credit API.
Variable Name | Description | Required | Expected Value |
---|---|---|---|
username | Merchant service depot Gateway Username | Y | Merchant service depot Gateway Username |
api_key | Merchant service depot Gateway API Key | Y | Merchant service depot Gateway API Key |
account_number | Bank account number (Set the secret key in the account setting to encrypt account_number. Make sure to encrypt account_number with AES 128-bit ECB cipher code.) | Y | 0000000016 |
routing_number | Bank routing number (Set the secret key in the account setting to encrypt routing_number. Make sure to encrypt routing_number with AES 128-bit ECB cipher code.) | Y | 122105278 |
account_type | Bank account type | Y | SAVINGS, CHECKING, OTHER |
amount | Amount to be charged | Y | 133.24 |
currency | Currency of Transaction (allowed currencies will be determined during the time of merchant boarding). | Y | USD,EUR,GBP,CAD,AUD,NZD,AED, |
DKK,MXN,SEK,CHF | |||
company_name | Company Name of the cardholder | N | - |
first_name | First name of the cardholder | Y | Roberto |
last_name | Last name of the cardholder | Y | Diaz |
address | Address of the cardholder | N | 4446 Green Avenue, Suite 56 |
city | City of the cardholder | N | Los Angeles |
state | State of the cardholder | N | CA |
country_code | Country of the cardholder(ISO alpha-2) | Y | US, CN |
zip_code | Zip code of the cardholder | Y | 94085 |
phone_number | Phone Number of the cardholder | N | 408-345-2323 |
ship_address_as_bill_address | Billing address copy Shipping address | Y | Y or N (default value N) Y- Billing address copy to Shipping address N- Not copy |
ship_company_name | Shipping Company Name | N | - |
ship_first_name | Shipping First name | Y | Roberto |
ship_last_name | Shipping Last name | Y | Diaz |
ship_address | Shipping Address | N | 4446 Green Avenue, Suite 56 |
ship_city | Shipping City | N | Los Angeles |
ship_state | Shipping State | N | CA |
ship_country_code | Shipping Country (ISO alpha-2) | Y | US, CN |
ship_zip_code | Shipping Zip code | Y | 94085 |
ship_phone_number | Shipping Phone Number | N | 408-345-2323 |
Email ID of the cardholder | Y | test@test.com | |
email_receipt | Sends transaction details to specified cardholder email | N | Y or N (default value N) Y- Send email N- Not send |
email_receipt_DBA_email | Email Receipt to Merchant DBA Contact Email | N | Y or N (default value N) Y- Send email N- Not send |
memo | Memo of the transaction | N | |
client_ip | Client IP address | N | 127.0.0.1 |
custom_field_1 | N | additional parameter 1 | |
custom_field_2 | N | additional parameter 2 | |
source | C | source=SHOPIFY if using Shopify otherwise it is not required | |
reference_id | Transaction reference id | N | Reference ID should be unique |
<form name="" id="formID" action="https://gateway2-stg.tcbpay.com/apis/ach_credit.php" method="post"> <input type="text" name="username" value="tcbpayusername"/> <input type="text" name="api_key" value="tcbpayapikey"/> <input type="text" name="account_number" value="0000000016"/> <input type="text" name="routing_number" value="122105278"/> <input type="text" name="account_type" value="CHECKING"/> <input type="text" name="amount" value="14.5"/> <input type="text" name="currency" value="USD"/> <input type="text" name="company_name" value="Merchant service depot"/> <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="country_code" value="US"/> <input type="text" name="zip_code" value="11111"/> <input type="text" name="phone_number" value="323-323-3223"/> <input type="text" name="client_ip" value="127.0.0.1"/> <input type="text" name="email" value="abcdef@mail.com"/> <input type="checkbox" name="email_receipt" value="Y"/> <br/> <input type="submit" value="submit"/> </form>
The response of the API Call is a JSON array. For Error, two elements are returned, code and description. For Successful transactions, three elements are returned, code, description, transaction_id, and reference_id. The response code for a successful API call is always 00.
{"response":{"code":"00","description":"Transaction Entry Success","transaction_id":8405,"total_amount":9.99,"convenience_fee":0,"reference_id":""}}
This API is responsible for refunding an existing successful transaction.
This table describes the request parameters for Refund API.
Variable Name | Description | Required | Expected Value |
---|---|---|---|
username | Merchant service depot Gateway Username | Y | Merchant service depot Gateway Username |
api_key | Merchant service depot Gateway API Key | Y | Merchant service depot Gateway API Key |
transaction_id | Unique transaction ID generated by gateway | Y | - |
amount | Amount to be charged, <= original transaction amount | Y | 133.24 |
email_receipt | Send transaction details to the specified email during authorization | N | Y or N (default value N) Y- Send email N- Not send |
<form name="" action="https://gateway2-stg.tcbpay.com/apis/ach_refund.php" method="post"> <input type="text" name="username" value=" tcbpayusername"/> <input type="text" name="api_key" value=" tcbpayapikey"/> <input type="text" name="transaction_id" value=""/> <input type="text" name="amount" value="14.5"/> <input type="checkbox" name="email_receipt" value="Y"/> <br/> <input type="submit" value="submit"/> </form>
The response of the API Call is a JSON array. For Error, two elements are returned, code and description. For Successful transactions, three elements are returned, code, description, and transaction_id. The response code is always 00 for a successful API call.
{"response":{"code":"01","description":" Merchant Information is Missing"}}
This API is responsible for generating transaction reports.
This table describes the request parameters for Report API.
Variable Name | Description | Required | Expected Value |
---|---|---|---|
username | Merchant service depot Gateway Username | Y | Merchant service depot Gateway Username |
api_key | Merchant service depot Gateway API Key | Y | Merchant service depot Gateway API Key |
start_date | From transaction date | Y | date format YYYY-MM-DD |
end_date | To transaction date | Y | date format YYYY-MM-DD |
transaction_type | Type of transaction | N | (default all transaction) SALE,AUTHORIZE,CAPTURE,REFUND,VOID,CREDIT |
transaction_status | Status of transaction | N | (default all transaction) SUCCESS,FAIL |
transaction_id | TCBPay ID of the transaction, If we need to know the details of a specific transaction | N | 100000000000001605 |
page_no | Page number of the entire result set. Each page has a maximum of 100 records listed | N | (default 1) can be up to total page number |
reference_id | Transaction reference id | N | Reference ID should be unique |
<html lang="en"> <head> <meta charset="UTF-8"> <title>Merchant service depot ACH API Report Test</title> </head> <body> <form name="" action="https://gateway2.tcbpay.com/apis/ach_report.php" method="post"> <input type="text" name="username" value="tcbpayusername"/> <input type="text" name="api_key" value="tcbpayapikey"/> <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>
The response of the API Call is a JSON array. For Error, two elements are returned, code and description. For Successful transactions, three additional elements are returned along with code and description which are no_of_transactions, total_pages, current_page, and an array of transactions. The response code is always 00 for a successful API call.
{ "response": { "code": "00", "description": "success", "no_of_transactions": "1", "total_pages": 1, "current_page": "1", "transactions": [ { "transaction_id": "A9169", "parent_transaction_id": "", "transaction_type": "SALE", "transaction_source": "Moto", "initiated_by": "api_user (goutam@mailinator.com)", "transaction_status": "INACTIVE", "decline_reason": "", "transaction_time": "2025-01-30 07:20:49", "time_zone": "America/New_York", "gmt_time": "2025-01-30 12:20:49", "account_no": "********2222", "routing_no": "********0025", "account_type": "Checking", "auth_response_code": "Success", "error_response": "", "currency": "USD", "total_amount": "8.88", "amount": "8.88", "surcharge": "0", "tax": "0", "tip": "0", "first_name": "Grk", "last_name": "Karm", "company_name": "", "address_1": "555 West 5th Avenue", "address_2": "bill 2nd", "city": "Columbus", "state": "OH", "zip_code": "43201", "email": "goutam@tcbpay.com", "phone_no": "+19999999999", "subscription_id": null, "ship_first_name": "Grk", "ship_last_name": "Karm", "ship_company_name": "", "ship_address_1": "555 West 5th Avenue", "ship_address_2": "bill 2nd", "ship_city": "Columbus", "ship_state": "OH", "ship_zip_code": "43201", "ship_phone_no": "+19999999999", "is_risk_hold": "NO", "IP": null, "reference_id": null } ] } }
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 Zip code 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 |
P1 | Invalid page number |
A1 | Transaction entry failed |
Country Code | Country Name |
---|---|
US | United States |
CA | Canada |
Currency Code | Currency Name |
---|---|
USD | United States Dollar |
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 Zip code 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 |
P1 | Invalid page number |
A1 | Transaction entry failed |