Skip to main content

Register SMS Payment

This API registers reservation payment information and either sends a payment link via SMS or generates a payment link URL.

Note

To receive payment completion notifications, please refer to the Webhook (Notification) guide to prepare your server, and then register your URL in the Merchant Admin > Notification Registration menu.

Request​

Request URL
POST https://{API Domain}/directapi/trades/directSmsUrlPayReg
Content-type: application/json; charset=utf-8

Parameters​

Field NameTypeLengthRequiredDescription
directRegInfoObject✅SMS Registration Info (See directRegInfo below)
directOrderInfoObject✅Reservation Order Info (See directOrderInfo below)

directRegInfo (SMS Registration Info)​

Field NameTypeLengthRequiredDescription
mallIdString8Byte✅Merchant ID assigned by KICC
regTxtypeString2Byte✅Registration Type (See Code Table)
Send SMS: "51" Generate URL: "52"
regSubtypeString2Byte✅Registration Sub-Type (See Code Table)
amountNumber✅Payment Amount
currencyString2Byte✅Currency Code (KRW: “00”)
payCodeString2Byte✅Payment Method Code (See Codes)
All Methods: "00"
pgCnoString20ByteRegistered PG Transaction ID (Required for SMS Resend)
rcvMobileNoString11ByteCustomer Mobile No. (Numbers only). Required for SMS Send Request.
sndTelNoString11ByteSender Mobile No. (Numbers only). Required for SMS Send Request.
mallNameString14ByteMerchant Name. Required for SMS Send Request.
dispMsgString200ByteMessage to display on Payment Window
installmentMonthString2byteInstallment Month (Lump-sum: "00")
smsPayExprString14BytePayment Expiration Date (yyyyMMddHHmmss). Default: D+7 if not set.
certTypeString1ByteKey-in Payment Auth Type (Only for Key-in Merchants)
Card No+Exp+DOB+PWD: "0"
Card No+Exp: "1"

directOrderInfo (Reservation Order Info)​

Field NameTypeLengthRequiredDescription
shopOrderNoString40Byte✅Merchant Order No. Must be Unique.
goodsNameString50Byte✅Product Name
goodsAmountNumber✅Product Amount (Same as Payment Amount)
customerIdString20ByteCustomer ID
customerNameString20ByteCustomer Name
customerMailString50ByteCustomer Email
customerContactNoString11ByteCustomer Contact No. (Numbers only)
value1String1000ByteCustom Field 1
value2String64ByteCustom Field 2
value3String32ByteCustom Field 3
Request Example
{  
"directRegInfo": {
"mallId": "{Merchant ID}",
"regTxtype": "51",
"regSubtpye": "10",
"amount": 1000,
"currency": "00",
"payCode": "00",
"rcvMobileNo": "{Customer Mobile No}",
"sndTelNo": "{Sender No}",
"mallName": "{Merchant Name}",
"dispMsg": "{Display Message}",
"smsPayExpr": "{Expiration Date}"
},
"directOrderInfo": {
"shopOrderNo": "{Merchant Order No}",
"goodsName": "Sample Product",
"goodsAmount": 1000,
"value1": "Custom Data 1",
"value2": "Custom Data 2",
"value3": "Custom Data 3"
}
}

Response​

Parameters​

Field NameTypeLengthRequiredDescription
resCdString4Byte✅Response Code (Success: “0000”)
resMsgString1000Byte✅Response Message
mallIdString8ByteMerchant ID assigned by KICC
shopOrderNoString40ByteReturns the value sent in the request
pgCnoString20ByteRegistered PG Transaction ID
amountNumberReturns the value sent in the request
expiryDateString14BytePayment Expiration Date (yyyyMMddHHmmss)
authPageUrlString100BytePayment Link URL
Response Example
{
"resCd": "0000",
"resMsg": "Success",
"mallId": "{Merchant ID}",
"shopOrderNo": "{Merchant Order No}",
"pgCno": "{Registered PG Transaction ID}",
"amount": 1000,
"expiryDate": "{Expiration Date}",
"authPageUrl": "{Payment Link URL}"
}

Registration Codes​

Registration Type (regTxtype)​

CodeTypeDescription
51Send SMSRequest to send the payment link via SMS
52Generate URLRequest to generate the payment link only (Merchant sends the link)

Registration Sub-Type (regSubtype)​

CodeTypeDescription
10New RegistrationRequest a new transaction registration
11Resend RequestRequest to resend an existing SMS