DEV Community

Sonali Gupta
Sonali Gupta

Posted on

Why H2H Over API? Understanding the Difference in Banking Integrations

1. Introduction: What is an API?
An API (Application Programming Interface) is an interface that allows two different software applications to communicate with each other and exchange information.

For example, suppose XYZ Company wants to make a payment from its bank account using ABC platform.

The process works like this:

1.XYZ Company initiates a payment through ABC.

2.ABC sends an API request to the bank.

3.The bank receives and processes the request.

4.The bank sends a response to ABC.

5.ABC displays the payment response or status

This communication generally happens through individual API requests and responses.

Example:

XYZ Company wants to pay ₹50,000 to a vendor.

1.ABC sends the payment request to the bank.

2.The bank processes the request.

3.The bank responds with a success, failure or pending status.

The same process can be repeated for other payments. Alternatively, a bank may provide APIs that support bulk payment submissions.

2. What is H2H (Host-to-Host)?
H2H stands for Host-to-Host. It is a method of establishing direct and secure communication between two systems, such as a company's software and a bank's system.

Unlike a typical individual API request, H2H commonly uses file-based communication to exchange information in bulk.

Let's understand with the same XYZ Company example.

Suppose XYZ Company needs to make 500 vendor payments.

Instead of sending 500 individual payment requests, the company can:

Prepare a payment file containing details of all 500 transactions.

Place the file in a designated secure folder or transfer it through SFTP (Secure File Transfer Protocol).

The bank receives the file.

The bank validates and processes the transactions according to its rules and approval requirements.

The bank shares a response or status file containing the results of the transactions.

This allows the company to submit multiple transactions together rather than initiating each one separately.

Top comments (0)