Recurring Billing Key Issuance API

The merchant server requests Hecto Financial to issue a recurring billing key. After account enrollment, call this API to obtain a recurring billing key for the enrolled account.


API Information

POST/v1/api/regular/reg
Content-Typeapplication/json; charset=UTF-8
테스트https://tbnpay.settlebank.co.kr/v1/api/regular/reg
운영https://npay.settlebank.co.kr/v1/api/regular/reg

Request Parameters

타입 표기법
N숫자A영문H한글AN영문+숫자AHN영문+한글+숫자
예: AN(10) = 영문+숫자, 최대 10byte
└hdInfoAN(50)Alphanumeric, up to 50 bytes*
Message information code.
*Fixed value
└mchtIdAN(8)Alphanumeric, up to 8 bytes*
Merchant ID.
└mchtTrdNoAN(100)Alphanumeric, up to 100 bytes*
Merchant order number.
└mchtCustIdAN(100)Alphanumeric, up to 100 bytes*AES-256AES-256/ECB/PKCS5Padding + Base64 (Standard)
Customer ID.
└reqDtAN(8)Alphanumeric, up to 8 bytes*
Request date (yyyyMMdd).
└reqTmAN(6)Alphanumeric, up to 6 bytes*
Request time (HH24MISS).
└bankCdAN(3)Alphanumeric, up to 3 bytes*
Bank code.
└custAcntKeyAN(50)Alphanumeric, up to 50 bytes
Account key — serial number of the enrolled direct debit account.
└pktHashAN(200)Alphanumeric, up to 200 bytes*SHA-256(실시간 생성)
SHA-256 HMAC signature.
NOTE

Signature composition

mchtId + mchtTrdNo + mchtCustId + reqDt + reqTm + bankCd + hashKey

Response Parameters

└outStatCdAN(4)Alphanumeric, up to 4 bytes*0021
Transaction status code.
0021: Success 0031: Failure
└outRsltCdAN(4)Alphanumeric, up to 4 bytes*0000
Decline code.
└outRsltMsgAN(300)Alphanumeric, up to 300 bytes*Processed successfully.
Result message.
└trdNoAN(40)Alphanumeric, up to 40 bytes*SFP_FRIM12345678901234567890
Transaction reference number.
└rglChrgKeyAN(32)Alphanumeric, up to 32 bytes*
Recurring billing key.
💬

Need technical support?

무엇이든 물어보세요