Integration Preparation

This guide covers the prerequisites and basic information to know before starting Real-Time Firm Banking integration.


Credentials by Environment

Real-Time Firm Banking uses credentials provided by Hecto Financial after signing a contract.

EnvironmentMerchant IDPurpose
SandboxProvided by Hecto FinancialDevelopment and testing
ProductionMerchant-specific IDLive service operation

Merchant Credential Issuance (After Contract)

After signing a contract with Hecto Financial, you will receive the following information for use in the production environment.

ItemDescription
Merchant IDUnique merchant identifier (12 digits)
Bank codeOpening bank code contracted for firm banking (3 digits)
Server IP and PortConnection information for the integration server

Server Integration Environment

Communication Method

Real-Time Firm Banking uses TCP/IP socket communication.

ItemDetails
ProtocolTCP/IP
Communication typeSupports synchronous and asynchronous communication
Message formatFixed-length message (300 bytes)
Session maintenancePolling method (default 5-minute interval)

Server Address and Network Information

Server connection information for Real-Time Firm Banking is provided separately after contracting with Hecto Financial.

EnvironmentServiceConnection Info
SandboxFirm Banking serverProvided by Hecto Financial
ProductionFirm Banking serverProvided by Hecto Financial (Main/DR redundancy)
NOTE

IDC Redundancy Configuration

• The Hecto Financial firm banking system operates with a primary center (Main) and a backup center (DR). • In the event of a Main center failure, switching to DR is done manually, so you must keep connection information for both servers.

Development Environment Requirements

Real-Time Firm Banking is a server-to-server TCP/IP socket communication.

ComponentRole
Backend (required)Sends and receives firm banking messages via TCP/IP socket communication
NOTE

TCP/IP Socket Communication

Real-Time Firm Banking uses TCP/IP socket communication, not HTTP. You must implement socket connection and message send/receive logic on the backend.

Message Structure

Real-Time Firm Banking uses a fixed-length message format. KRW and foreign currency messages differ in size.

KRW Firm Banking Message Structure

ComponentLengthDescription
Length header4 ByteTotal message length ("0300")
Common header100 ByteCommon header information for all messages
Individual body200 ByteMessage-specific data
Total304 ByteLength(4) + Common header(100) + Individual body(200)

Foreign Currency Firm Banking Message Structure

ComponentLengthDescription
Length header4 ByteTotal message length ("2000")
Common header100 ByteCommon header information for all messages (same as KRW)
Individual body1900 ByteMessage-specific data (larger than KRW)
Total2004 ByteLength(4) + Common header(100) + Individual body(1900)
NOTE

KRW vs Foreign Currency Message Size

• KRW firm banking: 304 Byte (Individual body 200 Byte) • Foreign currency firm banking: 2004 Byte (Individual body 1900 Byte) • The common header is 100 Byte for both KRW and foreign currency.

Common Header Key Fields

NoFieldPositionLengthRequiredDescription
1Identification code09YRecipient's TRANSACTION CODE
2Merchant ID912YMerchant ID assigned by Hecto Financial
3Bank code213YOpening bank code contracted for firm banking
4Message type code244YMessage code (request/response)
5Business type code283YBusiness type
6Transmission count311YFixed value '1'
7Message sequence number326YDaily unique sequence number (MAX 950,000)
8Transmission date388YMessage transmission date (YYYYMMDD)
9Transmission time466YMessage transmission time (hhmmss)
10Response code524-Response code (error code), SPACE on request
11Reserved area5644-Hecto Financial proprietary area

Fixed-Length Message

All fields must match the exact length. Insufficient length must be padded with SPACE; numbers must be zero-padded on the left.

Communication Methods

Real-Time Firm Banking supports two communication methods.

MethodDescriptionSuitable For
Synchronous communicationOpens and closes a socket connection per transactionLow transaction frequency
Asynchronous communicationMaintains a session to process multiple transactionsHigh transaction frequency, bulk transaction processing
NOTE

Detailed Communication Flow

For detailed step-by-step flows for synchronous/asynchronous communication, refer to the 'Full Integration Flow' document.

Notes

TCP/IP Communication Notes

  • Fixed-length messages: All fields must match the exact length.
  • Character set: EUC-KR
  • Numeric padding: Numeric fields are zero-padded on the left.
  • Text padding: Text fields are space-padded on the right.
  • Message sequence number: Unique value per day (MAX 950,000)

Session Maintenance Notes

  • Business start required: Send the business start message (1000/100) every day before starting operations.
  • Polling interval: Send polling messages every 5 minutes (300 seconds).

Financial Institution Business Hours

Business Hours Notice

Hecto Financial recommends transactions between 01:00 and 23:30. Bank maintenance windows may be extended.

For detailed business hours by financial institution, refer to the Management Messages document.


Integration Steps


Documentation by Feature

💬

Need technical support?