Recurring Billing API

Provides recurring billing charge, cancellation, and related information and transaction history queries.

※ A recurring billing key can be obtained by setting rglPmtYn: Y on the initial payment request, or through a separate key issuance process.


Recurring Billing Charge

Submit a payment request using an issued recurring billing key.

API Information

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

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 (no Korean characters).
└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).
└trdAmtN(13)Numeric, up to 13 bytes*
Transaction amount.
└rglChrgKeyAN(32)Alphanumeric, up to 32 bytes*
Recurring billing key.
└splAmtN(13)Numeric, up to 13 bytes
Supply amount (pre-tax amount).
└vatN(13)Numeric, up to 13 bytes
Value-added tax amount.
└svcAmtN(13)Numeric, up to 13 bytes
Service charge amount.
└pmtPrdtNmAN(50)Alphanumeric, up to 50 bytes
Product name.
└custAcntSumryAN(7)Alphanumeric, up to 7 bytes
Bank statement descriptor.
└csrslssReqYnA(1)Alphabetic, up to 1 bytes
Cash receipt issuance flag.
└csrcIssPsblYnA(1)Alphabetic, up to 1 bytes
Cash receipt issuance eligibility flag.
└taxTypeCdA(1)Alphabetic, up to 1 bytes
Tax exemption flag (required when csrslssReqYn is Y).
Y: Tax-exempt N: Taxable
└csrcReqPrposYnN(1)Numeric, up to 1 bytes
Cash receipt purpose (required when csrslssReqYn is Y).
0: Income deduction 1: Expense proof
└csrcRegNoDivCdN(1)Numeric, up to 1 bytes
Cash receipt identifier type (required when csrslssReqYn is Y).
1: Card number 2: Resident registration number 3: Business registration number 4: Mobile phone number
└csrcRegNoAN(20)Alphanumeric, up to 20 bytesAES-256AES-256/ECB/PKCS5Padding + Base64 (Standard)
Cash receipt identifier value (required when csrslssReqYn is Y).
*Actual value corresponding to csrcRegNoDivCd
└cupDepositAmtN(13)Numeric, up to 13 bytes
Cup deposit amount.
└addDdtTypeCdA(1)Alphabetic, up to 1 bytes
Additional deduction type (required when csrslssReqYn is Y).
Y: Public transit C: Books and performance fees
└custIpAN(15)Alphanumeric, up to 15 bytes
Customer IP address.
└pktHashAN(200)Alphanumeric, up to 200 bytes*SHA-256(실시간 생성)
SHA-256 HMAC signature.
NOTE

Signature composition

mchtId + mchtCustId + reqDt + reqTm + trdAmt (plaintext) + rglChrgKey + 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.
└mchtTrdNoAN(100)Alphanumeric, up to 100 bytes*OID201902210001
Merchant order number.
└trdNoAN(40)Alphanumeric, up to 40 bytesSTFP_FIRM12345678901234567890
Transaction reference number.
└rglPmtProcStatCdA(1)Alphabetic, up to 1 bytes
Recurring billing processing status.
R: Requires reprocessing C: Scheduled for cancellation
└trdAmtN(13)Numeric, up to 13 bytes1000
Transaction amount.
└svcDivCdN(4)Numeric, up to 4 bytes1
Service used for payment.
1: Firm Banking

💬

Need technical support?

무엇이든 물어보세요