Unlike other payment methods, virtual accounts send a webhook at each transaction stage: issuance, deposit, cancellation, refund, and more. Implement processing logic for each webhook type.
Webhook Type Summary
Virtual account webhooks are distinguished by the combination of outStatCd (transaction status) and bizType (business type).
Webhook Type
outStatCd
bizType
Status
Trigger
Issuance Complete
0051
A0
Awaiting deposit
Account issued (not Fixed-type Recurring)
Deposit Complete
0021
B1
Payment complete
Customer deposits
Issuance Cancel
0021
A2
Issuance cancelled
Issuance cancel API called
Auto-Cancel
0121
B2
Cancelled after deposit
Bank cancels after deposit (opt-in)
Refund Complete
0021
C0
Refund complete
Refund registered via refund API
NOTE
010 Virtual Account Webhook — See Separate Documentation
For 010 virtual account (bizType=A4) issuance/deposit webhooks, refer to the dedicated 010 virtual account webhook documentation.
Webhook URL
A webhook is a Server-to-Server request from Hecto Financial to your server, sent to one of the three URLs below. For the concept, see the Result Notification URL Guide.
Label
Meaning
Request notiUrl
The notiUrl parameter passed in the issuance request
Registered URL
The webhook URL registered in your merchant settings through your sales representative
Registered receipt inquiry URL
The receipt inquiry URL registered in your merchant settings (separate from the registered URL)
Destination URL by account type and webhook type. A → B means the webhook is sent to B if A is not available.
Webhook Type
Rotating-type / Fixed-type
Fixed-type Recurring
Issuance Complete
Request notiUrl → Registered URL
Not sent
Deposit Complete
Request notiUrl → Registered URL
Registered URL
Issuance Cancel
Registered URL → Request notiUrl
Registered URL
Receipt Inquiry / P Receipt Inquiry
Registered receipt inquiry URL
Registered receipt inquiry URL
Key Points
Unlike other webhooks, issuance cancel webhooks use the registered URL first.
Fixed-type Recurring accounts have no request notiUrl, so you must register a URL in your merchant settings to receive webhooks.
Differences by Account Type
Use acntType to identify the account type. Fixed-type Recurring (3) sends different parameters.
Item
Rotating-type (1) / Fixed-type (2)
Fixed-type Recurring (3)
Issuance complete webhook
Sent
Not sent
mchtTrdNo
Order number from issuance
Always 0000000 (use vAcntNo)
trdNo
Transaction number from issuance
Per-deposit number (refund orgTrdNo)
Processing Notes
No webhook is sent when the deposit deadline (expireDt) passes. Handle expiration on your side.
The depositor name (dpstrNm) may differ from the name entered at order time. Use it for reference only.
Process the refund as complete when the refund complete webhook arrives. The customer deposit is made on the next business day, with no further webhook.
Communication Specification
Item
Description
Method
POST
Content-Type
application/x-www-form-urlencoded; charset=UTF-8
Response Format
Plain Text (OK or FAIL)
Webhook Parameters — Rotating-type / Fixed-type
Webhook parameters sent from Rotating-type (acntType=1) and Fixed-type (acntType=2) virtual accounts.
Used for all webhook types including Issuance Complete (0051), Deposit Complete (0021), and Auto-Cancel (0121, when enabled).
Type Notation
NNumericAAlphabeticHKoreanANAlphanumericAHNAlphanumeric + Korean
e.g. AN(10) = alphanumeric, up to 10 bytes
└outStatCdN(4)Numeric, up to 4 bytes*Transaction status0021
└mchtIdAN(12)Alphanumeric, up to 12 bytes*Merchant ID assigned by Hecto Financialnxva_jt_il
Merchant ID assigned by Hecto Financial
Parameter
Type
Description
Example
mchtIdRequired
AN(12)
Merchant ID assigned by Hecto Financial
nxva_jt_il
└mchtTrdNoAN(100)Alphanumeric, up to 100 bytes*Unique order number generated by the merchantORDER20211231100000
Unique order number generated by the merchant
Parameter
Type
Description
Example
mchtTrdNoRequired
AN(100)
Unique order number generated by the merchant
ORDER20211231100000
└mchtCustNmAHN(30)Alphanumeric + Korean, up to 30 bytesOrderer nameMerchantName_HongGilDong
Orderer name
Parameter
Type
Description
Example
mchtCustNm
AHN(30)
Orderer name
MerchantName_HongGilDong
└mchtNameAHN(20)Alphanumeric + Korean, up to 20 bytesActual seller name. If no actual seller name is provided in the transaction request, the merchant name contracted with Hecto Financial is used.Hecto Financial
Actual seller name. If no actual seller name is provided in the transaction request, the merchant name contracted with Hecto Financial is used.
Parameter
Type
Description
Example
mchtName
AHN(20)
Actual seller name. If no actual seller name is provided in the transaction request, the merchant name contracted with Hecto Financial is used.
Hecto Financial
└pmtprdNmAHN(128)Alphanumeric + Korean, up to 128 bytesProduct name ordered by the customerTest Product
Product name ordered by the customer
Parameter
Type
Description
Example
pmtprdNm
AHN(128)
Product name ordered by the customer
Test Product
└trdDtmN(14)Numeric, up to 14 bytes*Transaction date and time. Format: YYYYMMDDhhmmss20211231100000
Transaction date and time. Format: YYYYMMDDhhmmss
Parameter
Type
Description
Example
trdDtmRequired
N(14)
Transaction date and time. Format: YYYYMMDDhhmmss
20211231100000
└trdAmtN(12)Numeric, up to 12 bytesTransaction amount1000
Transaction amount
Parameter
Type
Description
Example
trdAmt
N(12)
Transaction amount
1000
└bankCdAN(10)Alphanumeric, up to 10 bytesBank code011
Bank code
Parameter
Type
Description
Example
bankCd
AN(10)
Bank code
011
└bankNmAHN(10)Alphanumeric + Korean, up to 10 bytesBank nameNH NongHyup
└vAcntNoN(64)Numeric, up to 64 bytesVirtual account number0123456789
Virtual account number
Parameter
Type
Description
Example
vAcntNo
N(64)
Virtual account number
0123456789
└expireDtN(14)Numeric, up to 14 bytesVirtual account deposit expiration date and time20271231235959
Virtual account deposit expiration date and time
Parameter
Type
Description
Example
expireDt
N(14)
Virtual account deposit expiration date and time
20271231235959
└AcntPrintNmAHN(12)Alphanumeric + Korean, up to 12 bytesBank statement description displayed on the customer's bank statement. The value passed in the payment request is used. If no value, the merchant name contracted with Hecto Financial is used.Hecto Financial
Bank statement description displayed on the customer's bank statement. The value passed in the payment request is used. If no value, the merchant name contracted with Hecto Financial is used.
Parameter
Type
Description
Example
AcntPrintNm
AHN(12)
Bank statement description displayed on the customer's bank statement. The value passed in the payment request is used. If no value, the merchant name contracted with Hecto Financial is used.
Hecto Financial
└dpstrNmAHN(30)Alphanumeric + Korean, up to 30 bytesName of the person who actually deposited into the virtual account (provided in the deposit webhook)Hong Gil-dong
Name of the person who actually deposited into the virtual account (provided in the deposit webhook)
Parameter
Type
Description
Example
dpstrNm
AHN(30)
Name of the person who actually deposited into the virtual account (provided in the deposit webhook)
Hong Gil-dong
└emailAN(60)Alphanumeric, up to 60 bytesMerchant customer emailHongGilDong@example.com
Merchant customer email
Parameter
Type
Description
Example
email
AN(60)
Merchant customer email
HongGilDong@example.com
└mchtCustIdAN(50)Alphanumeric, up to 50 bytesMerchant customer IDHongGilDong
Merchant customer ID
Parameter
Type
Description
Example
mchtCustId
AN(50)
Merchant customer ID
HongGilDong
└orgTrdNoAN(40)Alphanumeric, up to 40 bytesOriginal transaction number (for cancellation and refund)STFP_PGVAnxva_jt_il0211129135810M1494620
Original transaction number (for cancellation and refund)
Parameter
Type
Description
Example
orgTrdNo
AN(40)
Original transaction number (for cancellation and refund)
STFP_PGVAnxva_jt_il0211129135810M1494620
└orgTrdDtN(8)Numeric, up to 8 bytesOriginal transaction date (for cancellation and refund)20211231
Original transaction date (for cancellation and refund)
Parameter
Type
Description
Example
orgTrdDt
N(8)
Original transaction date (for cancellation and refund)
20211231
└csrcIssNoAN(9)Alphanumeric, up to 9 bytesCash receipt approval number0123456789
Cash receipt approval number
Parameter
Type
Description
Example
csrcIssNo
AN(9)
Cash receipt approval number
0123456789
└cnclTypeN(2)Numeric, up to 2 bytesCancellation type00
Cancellation type
00: Full cancellation10: Partial cancellation
Parameter
Type
Description
Example
cnclType
N(2)
Cancellation type
00: Full cancellation / 10: Partial cancellation
00
└mchtParamAHN(4000)Alphanumeric + Korean, up to 4000 bytesThe value passed in the request is returned as-is.name=HongGilDong&age=25
The value passed in the request is returned as-is.
Parameter
Type
Description
Example
mchtParam
AHN(4000)
The value passed in the request is returned as-is.
name=HongGilDong&age=25
└pktHashAN(64)Alphanumeric, up to 64 bytes*SHA256 hash valuea2d6d597d55d7c9b689baa2e08c1ddf0ce71f4248c5b9b59fe61bfbf949543e1
outStatCd + transaction date (first 8 digits of trdDtm) + transaction time (last 6 digits of trdDtm) + mchtId + mchtTrdNo + trdAmt (plaintext) + hashKey
Webhook Parameters — Fixed-type Recurring
Webhook parameters sent from Fixed-type Recurring (acntType=3) virtual accounts.
Fixed-type Recurring Specific Notes
Fixed-type Recurring accounts do not send an issuance webhook (outStatCd=0051). They receive the deposit complete webhook (outStatCd=0021 / bizType=B1) by default and also receive the auto-cancel webhook (outStatCd=0121 / bizType=B2) when it is enabled. Also, mchtTrdNo is always fixed as '0000000', making it impossible to identify individual orders, so orders must be distinguished using vAcntNo (virtual account number).
Type Notation
NNumericAAlphabeticHKoreanANAlphanumericAHNAlphanumeric + Korean
e.g. AN(10) = alphanumeric, up to 10 bytes
└outStatCdN(4)Numeric, up to 4 bytes*Transaction status. Deposit complete is 0021 by default; 0121 is also received when the auto-cancel webhook is enabled.0021
Transaction status. Deposit complete is 0021 by default; 0121 is also received when the auto-cancel webhook is enabled.
└trdNoAN(40)Alphanumeric, up to 40 bytes*Unique transaction number assigned by Hecto FinancialSTFP_PGVAnxva_fix20211129135810M1494620
Unique transaction number assigned by Hecto Financial
*For Fixed-type Recurring, this is a per-deposit transaction number and differs from the transaction number issued at issuance. Use this deposit transaction number as the original transaction number (orgTrdNo) for follow-up transactions such as refunds.
Parameter
Type
Description
Example
trdNoRequired
AN(40)
Unique transaction number assigned by Hecto Financial
* For Fixed-type Recurring, this is a per-deposit transaction number and differs from the transaction number issued at issuance. Use this deposit transaction number as the original transaction number (orgTrdNo) for follow-up transactions such as refunds.
STFP_PGVAnxva_fix20211129135810M1494620
└methodA(2)Alphabetic, up to 2 bytes*Payment methodVA
Payment method
VA: Virtual Account
Parameter
Type
Description
Example
methodRequired
A(2)
Payment method
VA: Virtual Account
VA
└bizTypeAN(2)Alphanumeric, up to 2 bytes*Business type. Deposit notification is B1 by default; B2 is also received when the auto-cancel webhook is enabled.B1
Business type. Deposit notification is B1 by default; B2 is also received when the auto-cancel webhook is enabled.
└mchtIdAN(12)Alphanumeric, up to 12 bytes*Merchant ID assigned by Hecto Financialnxva_fix2
Merchant ID assigned by Hecto Financial
Parameter
Type
Description
Example
mchtIdRequired
AN(12)
Merchant ID assigned by Hecto Financial
nxva_fix2
└mchtTrdNoAN(100)Alphanumeric, up to 100 bytes*Fixed-type Recurring accounts always send '0000000' as a fixed value. Use vAcntNo to distinguish orders.0000000
Fixed-type Recurring accounts always send '0000000' as a fixed value. Use vAcntNo to distinguish orders.
Parameter
Type
Description
Example
mchtTrdNoRequired
AN(100)
Fixed-type Recurring accounts always send '0000000' as a fixed value. Use vAcntNo to distinguish orders.
0000000
└trdDtmN(14)Numeric, up to 14 bytes*Transaction date and time. Format: YYYYMMDDhhmmss20211231100000
Transaction date and time. Format: YYYYMMDDhhmmss
Parameter
Type
Description
Example
trdDtmRequired
N(14)
Transaction date and time. Format: YYYYMMDDhhmmss
20211231100000
└trdAmtN(12)Numeric, up to 12 bytesTransaction amount1000
Transaction amount
Parameter
Type
Description
Example
trdAmt
N(12)
Transaction amount
1000
└bankCdAN(10)Alphanumeric, up to 10 bytesBank code011
Bank code
Parameter
Type
Description
Example
bankCd
AN(10)
Bank code
011
└bankNmAHN(10)Alphanumeric + Korean, up to 10 bytesBank nameNH NongHyup
Bank name
Parameter
Type
Description
Example
bankNm
AHN(10)
Bank name
NH NongHyup
└acntTypeN(1)Numeric, up to 1 bytesAccount type. Fixed-type Recurring is always 3.3
Account type. Fixed-type Recurring is always 3.
3: Fixed-type Recurring
Parameter
Type
Description
Example
acntType
N(1)
Account type. Fixed-type Recurring is always 3.
3: Fixed-type Recurring
3
└vAcntNoN(64)Numeric, up to 64 bytesVirtual account number. Since mchtTrdNo is a fixed value, this field must be used to distinguish orders.0123456789
Virtual account number. Since mchtTrdNo is a fixed value, this field must be used to distinguish orders.
Parameter
Type
Description
Example
vAcntNo
N(64)
Virtual account number. Since mchtTrdNo is a fixed value, this field must be used to distinguish orders.
0123456789
└expireDtN(14)Numeric, up to 14 bytesVirtual account deposit expiration date and time20271231235959
Virtual account deposit expiration date and time
Parameter
Type
Description
Example
expireDt
N(14)
Virtual account deposit expiration date and time
20271231235959
└AcntPrintNmAHN(12)Alphanumeric + Korean, up to 12 bytesBank statement description displayed on the customer's bank statement. The value passed in the payment request is used. If no value, the merchant name contracted with Hecto Financial is used.Hecto Financial
Bank statement description displayed on the customer's bank statement. The value passed in the payment request is used. If no value, the merchant name contracted with Hecto Financial is used.
Parameter
Type
Description
Example
AcntPrintNm
AHN(12)
Bank statement description displayed on the customer's bank statement. The value passed in the payment request is used. If no value, the merchant name contracted with Hecto Financial is used.
Hecto Financial
└dpstrNmAHN(30)Alphanumeric + Korean, up to 30 bytesName of the person who actually deposited into the virtual accountHong Gil-dong
Name of the person who actually deposited into the virtual account
Parameter
Type
Description
Example
dpstrNm
AHN(30)
Name of the person who actually deposited into the virtual account
Hong Gil-dong
└pktHashAN(64)Alphanumeric, up to 64 bytes*SHA256 hash valuea2d6d597d55d7c9b689baa2e08c1ddf0ce71f4248c5b9b59fe61bfbf949543e1
outStatCd + transaction date (first 8 digits of trdDtm) + transaction time (last 6 digits of trdDtm) + mchtId + mchtTrdNo + trdAmt (plaintext) + hashKey
Webhook Response (Merchant → Hecto Financial)
The merchant sends a response to Hecto Financial.
Response
Description
OK
Success (uppercase). Processed as webhook received.
FAIL or others
Recognized as failure; resent up to the configured number of times per merchant. Sending stops after exceeding the resend deadline.
Response Format Note
The response must be plain text 'OK' only. If spaces or other characters are included, it will be considered a failure and resending may occur.
NOTE
Distinguishing Issuance and Deposit Webhooks
outStatCd alone does not identify the webhook type. 0021 is shared by deposit complete, issuance cancel, and refund, so check bizType as well. Process the actual payment in the deposit complete webhook (0021 / B1).
Hash Verification
Hash Verification Required
To check for data tampering, you must verify the hash value received via notiUrl. Only provide the service when the hash matches.
Item
Combination Fields
pktHash
Transaction status code + transaction date (first 8 digits of trdDtm) + transaction time (last 6 digits of trdDtm) + merchant ID + merchant order number + transaction amount (plaintext) + hash key