010 Virtual Account Deposit Webhook
When a customer deposits to a 010 virtual account, Hecto Financial sends a deposit webhook to your server.
Webhook Overview
010 virtual account transactions deliver a total of two webhooks: an issuance webhook and a deposit webhook.
| Webhook Type | outStatCd | bizType | Description |
|---|---|---|---|
| Issuance Webhook | 0051 | A4 | Delivered at the time of virtual account number issuance |
| Deposit Webhook | 0021 | B1 | Delivered at the time of customer deposit |
Webhook Parameters (Hecto Financial → Merchant)
타입 표기법
N숫자A영문H한글AN영문+숫자AHN영문+한글+숫자예: AN(10) = 영문+숫자, 최대 10byte
└outStatCdAN(4)Alphanumeric, up to 4 bytes*Transaction status
0021Transaction status
0021: Success (deposit complete) 0051: Virtual account awaiting deposit (issuance complete)└trdNoAN(40)Alphanumeric, up to 40 bytes*Unique transaction number assigned by Hecto Financial
STBK0123456789Unique transaction number assigned by Hecto Financial
└methodA(2)Alphabetic, up to 2 bytes*Payment method
VAPayment method
VA: Virtual Account└bizTypeAN(2)Alphanumeric, up to 2 bytes*Business type
B1Business type
A4: Issuance A2: Issuance Cancel B1: Deposit Webhook C0: Refund└mchtIdAN(10)Alphanumeric, up to 10 bytes*Merchant ID
nxva_sb_ilMerchant ID
└mchtTrdNoAN(100)Alphanumeric, up to 100 bytes*Merchant order number
ORDER20211231100000Merchant order number
└mchtCustNmAHN(30)Alphanumeric + Korean, up to 30 bytesCustomer name
Hong Gil-dongCustomer name
└mchtNameAHN(20)Alphanumeric + Korean, up to 20 bytesMerchant name (Korean)
Hecto FinancialMerchant name (Korean)
└pmtprdNmAHN(128)Alphanumeric + Korean, up to 128 bytesProduct name
Test ProductProduct name
└trdDtmN(14)Numeric, up to 14 bytes*Transaction datetime (yyyyMMddHHmmss)
20211231010101Transaction datetime (yyyyMMddHHmmss)
└trdAmtN(9)Numeric, up to 9 bytesTransaction amount
1000Transaction amount
└bankCdAN(10)Alphanumeric, up to 10 bytesBank code
089Bank code
└bankNmAHN(10)Alphanumeric + Korean, up to 10 bytesBank name
KbankBank name
└vAcntNoN(64)Numeric, up to 64 bytesVirtual account number
01012345678Virtual account number
└expireDtN(14)Numeric, up to 14 bytesVirtual account deposit expiry datetime
20211231235959Virtual account deposit expiry datetime
└AcntPrintNmAHN(12)Alphanumeric + Korean, up to 12 bytesBank statement name
010가상계좌Bank statement name
*B2C: fixed as '010가상계좌', B2B: '010_CustomerName'
└dpstrNmAHN(30)Alphanumeric + Korean, up to 30 bytesDepositor name (name of the person who actually deposited)
Hong Gil-dongDepositor name (name of the person who actually deposited)
└emailAN(60)Alphanumeric, up to 60 bytesCustomer email
HongGilDong@example.comCustomer email
└mchtCustIdAN(50)Alphanumeric, up to 50 bytesMerchant customer ID
HongGilDongMerchant customer ID
└orgTrdNoAN(40)Alphanumeric, up to 40 bytesOriginal transaction number (for partial cancel)
STBK0123456789Original transaction number (for partial cancel)
└orgTrdDtN(8)Numeric, up to 8 bytesOriginal transaction date (for partial cancel)
20211231Original transaction date (for partial cancel)
└csrcIssNoN(9)Numeric, up to 9 bytesCash receipt approval number
0123456789Cash receipt approval number
└cnclTypeN(2)Numeric, up to 2 bytesCancel transaction type
00Cancel transaction type
00: Full cancel 10: Partial cancel└mchtParamAHN(4000)Alphanumeric + Korean, up to 4000 bytesMerchant reserved field
Merchant reserved fieldMerchant reserved field
└pktHashAN(64)Alphanumeric, up to 64 bytes*SHA256 hash value
SHA256 hash value
*Transaction status code + transaction date + transaction time + merchant ID + merchant order number + transaction amount + hash key
Webhook Response (Merchant → Hecto Financial)
The merchant sends the webhook receipt result to Hecto Financial.
| Response | Description |
|---|---|
OK | Success (uppercase) |
FAIL | Failure (uppercase) - recognized as explicit failure, webhook resent |
| Other | Recognized as abnormal failure; resent the configured number of times |
Webhook Example
outStatCd=0021&trdNo=STBK0123456789&method=VA&bizType=B1&mchtId=nxva_sb_il&mchtTrdNo=ORDER20211231100000&mchtCustNm=Hong Gil-dong&mchtName=Hecto Financial&pmtprdNm=Test Product&trdDtm=20211231010101&trdAmt=1000&bankCd=089&bankNm=Kbank&vAcntNo=01012345678&expireDt=20211231235959&AcntPrintNm=010가상계좌&dpstrNm=Hong Gil-dong&mchtCustId=HongGilDong&pktHash=hash value
Important Notes
NOTE
Webhook Processing Recommendations
All payment-related DB processing must be handled in notiUrl. Use nextUrl only for screen display purposes.
- Webhooks are delivered via POST to
notiUrl. - If no response is received after webhook delivery, or if it is not
FAIL, the webhook is resent. - The merchant server's firewall must allow Hecto Financial's webhook server IP.
Need technical support?
Code Samples
HectoFinancial GitHub