Cancel Subscription API

This API deletes a KakaoPay Subscription Key.

Test Key Information


API Information

POST/spay/APIPZSubsDelKey.do
Content-Typeapplication/json
테스트https://tbgw.settlebank.co.kr/spay/APIPZSubsDelKey.do
운영https://gw.settlebank.co.kr/spay/APIPZSubsDelKey.do

Important Notes

Subscription Key deletion warning

Deleted Subscription Keys cannot be recovered. Please verify carefully before deleting.
  • Subscription Key status inquiry uses a separate API (/spay/APIPZSubsStatus.do).

Request Parameters

타입 표기법
N숫자A영문H한글AN영문+숫자AHN영문+한글+숫자
예: AN(10) = 영문+숫자, 최대 10byte

params Object

mchtIdAN(10)Alphanumeric, up to 10 bytes*
Unique merchant ID assigned by Hecto Financial
nxkkp_auto: KakaoPay subscription (automatic payment)
verAN(4)Alphanumeric, up to 4 bytes*
Message version
*Fixed value
methodA(2)Alphabetic, up to 2 bytes*
Payment method
*Fixed value (PZ: Digital Wallet)
bizTypeAN(2)Alphanumeric, up to 2 bytes*
Business type code
*Fixed value (C1: Deletion)
encCdN(2)Numeric, up to 2 bytes*
Encryption classification code
*Fixed value
mchtTrdNoAN(100)Alphanumeric, up to 100 bytes*
Unique order number generated by the merchant
trdDtN(8)Numeric, up to 8 bytes*
Request date (yyyyMMdd)
trdTmN(6)Numeric, up to 6 bytes*
Request time (HH24MISS)
mobileYnA(1)Alphabetic, up to 1 bytes
Mobile indicator
Y: Mobile web/app N: PC or other
osTypeA(1)Alphabetic, up to 1 bytes
OS type
A: Android I: iOS W: Windows M: Mac E: Other

data Object

pktHashAN(64)Alphanumeric, up to 64 bytes*SHA-256(실시간 생성)
Hash value generated using SHA256
NOTE

Hash generation combination

trdDt + trdTm + mchtId + mchtTrdNo + hashKey
corpPayCodeAN(40)Alphanumeric, up to 40 bytes*
Digital wallet provider ID
KKP: KakaoPay NVP: NaverPay
billKeyAN(50)Alphanumeric, up to 50 bytes*
Subscription Key issued by Hecto Financial
pmtOrdN(3)Numeric, up to 3 bytes
Payment method sequence number

Response Parameters

타입 표기법
N숫자A영문H한글AN영문+숫자AHN영문+한글+숫자
예: AN(10) = 영문+숫자, 최대 10byte

params Object

mchtIdAN(10)Alphanumeric, up to 10 bytes*nxkkp_auto
Merchant ID
verAN(4)Alphanumeric, up to 4 bytes0A19
Message version
methodA(2)Alphabetic, up to 2 bytesPZ
Payment method
bizTypeAN(2)Alphanumeric, up to 2 bytesC1
Business type code
encCdN(2)Numeric, up to 2 bytes*23
Encryption classification code
mchtTrdNoAN(100)Alphanumeric, up to 100 bytes*ORDER20211231100000
Merchant order number
trdNoAN(40)Alphanumeric, up to 40 bytes*STFP_PGPZnx_mid_hd0230315153232M1196602
Hecto Financial transaction number
trdDtN(8)Numeric, up to 8 bytes*20211231
Request date (YYYYMMDD)
trdTmN(6)Numeric, up to 6 bytes*100000
Request time (HHMMSS)
outStatCdAN(4)Alphanumeric, up to 4 bytes*0021
Transaction status code (success/failure)
0021: Success 0031: Failure
outRsltCdAN(4)Alphanumeric, up to 4 bytes*0000
Result code
outRsltMsgAHN(200)Alphanumeric + Korean, up to 200 bytes*Processed successfully.
Result message

data Object

pktHashAN(64)Alphanumeric, up to 64 bytes*f395b6725a9a18...
Hash value from the request returned as-is

Webhook

NOTE

No webhook

The Cancel Subscription API does not send a webhook. Please confirm the result from the response message.
💬

Need technical support?