Skip to main content

Register Transaction

By registering order information to open the payment screen, you can receive the Payment Window URL in the response.

Request

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

Parameters

Field NameTypeLengthRequiredDescription
mallIdString8ByteMerchant ID assigned by KICC
shopOrderNoString40ByteMerchant Order No. Must be Unique.
amountNumberPayment Amount
payMethodTypeCodeString2BytePayment Method Code (See Payment Method Codes). Request "00" if not selecting a specific method.
currencyString2ByteCurrency Code (KRW: “00”)
returnUrlString256ByteURL to redirect to after authentication completes.
deviceTypeCodeString20ByteDevice Type
PC: “pc”, Mobile: “mobile”
clientTypeCodeString2ByteWindow Type Code (Fixed at "00" for Integrated)
langFlagString3ByteKOR: Korean, ENG: English, JPN: Japanese, CHN: Chinese
appSchemeString256ByteMerchant App Scheme (Required for iOS App-to-App return)
See WebView Guide
orderInfoObjectOrder Info
See orderInfo below
payMethodInfoObjectPayment Method Management Info
See payMethodInfo below
taxInfoObjectComplex Tax Info (Required if using Complex Tax)
See taxInfo below
shopValueInfoObjectMerchant Custom Fields (Returned in Approval/Notify response)
See shopValueInfo below
depositInfoListArrayResource Circulation Deposit List
See depositInfoList below
escrowInfoObjectEscrow Info (Required if using Escrow)
See escrowInfo below
basketInfoListArrayBasket List (Required if using Split Settlement)
See basketInfoList below

orderInfo (Order Information)

Field NameTypeLengthRequiredDescription
goodsNameString50ByteProduct Name
customerInfoObjectCustomer Info
See customerInfo below

orderInfo > customerInfo (Customer Information)

Field NameTypeLengthRequiredDescription
customerIdString20ByteCustomer ID
customerNameString20ByteCustomer Name
customerMailString50ByteCustomer Email
customerContactNoString11ByteContact Number (Numbers only)
customerAddrString200ByteCustomer Address

payMethodInfo (Payment Method Management Info)

Field NameTypeLengthRequiredDescription
cardMethodInfoObjectCredit Card Config Info (Required only if customizing Card or Simple Pay display)
See cardMethodInfo below
virtualAccountMethodInfoObjectVirtual Account Config Info (Required only if customizing Bank display)
See virtualAccountMethodInfo below

payMethodInfo > cardMethodInfo (Credit Card Config)

Field NameTypeLengthRequiredDescription
paymentTypeString1ByteCredit Card Payment Type
Empty: General
"0": Key-in Auth
"1": Key-in Non-auth
installmentMonthListArrayList of installment months to display
Lump-sum only: [0]
Up to 6 months: [0, 2, 3, 4, 5, 6]
setFreeInstallmentString1ByteUse Interest-free: Y/N (Follows ledger settings if empty)
setCardPointString1ByteUse Card Points: Y/N (Follows ledger settings if empty)
joinCdString4ByteAffiliate Service Code (Contact sales to use)
displayAreaArrayDisplay Area List (Follows ledger settings if empty)
"CARD": Credit Card only, "SPAY": Simple Pay only
usedSpayCodeArrayList of Simple Pay providers to display (See CP Codes)
Example (KakaoPay only): ["KKO"]
cardInfoListArrayList of Credit Card companies to display
See cardInfoList below

payMethodInfo > cardMethodInfo > cardInfoList (Credit Card List)

Field NameTypeLengthRequiredDescription
cardCdString3ByteCard Company Code to display (See Window Card Codes)
cardPointString2ByteCard Point Value. Use "60" if setCardPoint is "Y".
freeInstallmentMonthListArrayInterest-free Month List. Applied if setFreeInstallment is "Y".
Example (2~6 months): [2,3,4,5,6]

payMethodInfo > virtualAccountMethodInfo (Virtual Account Config)

Field NameTypeLengthRequiredDescription
bankListArrayList of Banks to display (See Bank Codes)
expiryDateString8ByteExpiration Date (yyyyMMdd)
expiryTimeString6ByteExpiration Time (hhmmss)

taxInfo (Complex Tax Info)

Field NameTypeLengthRequiredDescription
taxAmountNumberTaxable Amount
freeAmountNumberTax-free Amount
vatAmountNumberVAT Amount

shopValueInfo (Merchant Custom Fields)

Field NameTypeLengthRequiredDescription
value1String64ByteField 1
value2String64ByteField 2
value3String32ByteField 3
value4String32ByteField 4
value5String64ByteField 5
value6String64ByteField 6
value7String64ByteField 7

depositInfoList (Resource Circulation Deposit List)

Field NameTypeLengthRequiredDescription
dpsTypeString1ByteDeposit Type (Cup Deposit: “C”)
dpsAmountNumberDeposit Amount (Total amount per type)
Request Example
{  
"mallId": "{Merchant ID}",
"shopOrderNo": "{Merchant Order No}",
"amount": 1000,
"payMethodTypeCode": "00",
"currency": "00",
"clientTypeCode": "00",
"returnUrl": "{Merchant Return URL}",
"deviceTypeCode": "mobile",
"orderInfo": {
"goodsName": "Sample Product Name"
}
}

To use the Escrow Service, please add the following information to your request.

escrowInfo (Escrow Information)

Field NameTypeLengthRequiredDescription
escrowTypeCodeString1ByteEscrow Type. Fixed at "K".
deliveryCodeString4ByteDelivery Type ("DE01": Self, "DE02": Courier)
goodsInfoListArrayBasket List (Max 20 items)
recvInfoObjectRecipient Info
escrowInfo > goodsInfoList (Basket List)
Field NameTypeLengthRequiredDescription
productNoString40ByteUnique Product No. Must be unique within the basket.
productNameString50ByteProduct Name
productAmountNumberProduct Amount
escrowInfo > recvInfo (Recipient Info)
Field NameTypeLengthRequiredDescription
recvNameString20ByteRecipient Name
recvMobileNoString11ByteRecipient Contact No. (Numbers only)
recvMailString50ByteRecipient Email
recvZipCodeString6ByteRecipient Zip Code
recvAddr1String100ByteAddress Line 1
recvAddr2String100ByteAddress Line 2
Request Example
{  
"mallId": "{Merchant ID}",
"shopOrderNo": "{Merchant Order No}",
"amount": 1000,
"payMethodTypeCode": "00",
"currency": "00",
"clientTypeCode": "00",
"returnUrl": "{Merchant Return URL}",
"deviceTypeCode": "mobile",
"orderInfo": {
"goodsName": "Sample Product Name"
},
"escrowInfo": {
"escrowType": "K",
"deliveryCode": "DE01",
"goodsInfoList": [
{
"productNo": "{Unique Product No}",
"productName": "{Product Name}",
"productAmount": 1000
}
],
"recvInfo": {
"recvName": "Recipient Name",
"recvMobileNo": "01012345678",
"recvMail": "test@email.com",
"recvAddr": "Seoul, Korea",
"recvZipCode": "00000",
"recvAddr1": "Address Line 1",
"recvAddr2": "Address Line 2"
}
}
}

Response

Parameters

Field NameTypeLengthRequiredDescription
resCdString4ByteResponse Code (Success: “0000”)
resMsgString1000ByteResponse Message
authPageUrlString256BytePayment Window URL
Response Example
{
"resCd": "0000",
"resMsg": "Success",
"authPageUrl": "{Payment Window URL}"
}