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/v2/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 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 "10" for Standalone)
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
cashInfoObjectCash Receipt Info
See cashInfo 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
See cardMethodInfo below
mobileMethodInfoObjectMobile Config Info
See mobileMethodInfo below

payMethodInfo > cardMethodInfo (Credit Card Config)

Field NameTypeLengthRequiredDescription
installmentMonthListArrayList of installment months to display.
Empty: Lump-sum for Cards / DB lookup for Simple Pay.
Lump-sum only: [0]
Up to 6 months: [0, 2, 3, 4, 5, 6]
setFreeInstallmentString1ByteUse Interest-free ("Y"/"N") (See Inquiry)
setCardPointString1ByteUse Card Points ("Y"/"N")
setCouponInfoString1ByteUse Instant Discount Coupon ("Y") (See Inquiry)
chainCodeString1ByteCard Window Control Code
"3": App Card payment only
onlyCreditCardString1ByteKB Kookmin Card Parameter
"1": KB Pay App allows KB Card only
appCodeString20ByteWoori Card Control Code
Empty: Show all, "WONCARD": Woori Card only, "WONBANK": Woori Bank only
joinCdString4ByteAffiliate Service Code
usedSpayCodeArrayList of Simple Pay providers (See Codes). Only 1 allowed.
Must include ["CRD"] if payment method is Credit Card.
cardInfoListArrayList of Credit Card companies to display
See cardInfoList below
couponInfoArrayInstant Discount Coupon Usage Info
See couponInfo below

payMethodInfo > cardMethodInfo > cardInfoList (Credit Card List)

Field NameTypeLengthRequiredDescription
cardCdString3ByteCard Company Code to display (See Codes). Only 1 allowed.
cardPointString2ByteCard Point Value. Fixed at "60" if setCardPoint is "Y".
cardNoString20ByteCard Number for 3D-Secure (Overseas: Visa, Master, JCB, Amex)
expireDateString4ByteExpiry Date for 3D-Secure (YYMM). e.g., Nov 2026 -> "2611"

payMethodInfo > cardMethodInfo > couponInfo (Instant Discount Coupon Info)

Field NameTypeLengthRequiredDescription
cponIdString10ByteCoupon Group ID (Use coupon_id from Coupon Inquiry API)
cponAmountNumberDiscount Amount (For rates, round to the nearest integer)
cponNoString44ByteCoupon Number. Fixed at "123456789".

payMethodInfo > mobileMethodInfo (Mobile Config)

Field NameTypeLengthRequiredDescription
mobileCdString3ByteCarrier Code (See Codes)

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

cashInfo (Cash Receipt Info)

Field NameTypeLengthRequiredDescription
issueTypeString2ByteIssue Purpose
"01": Tax Deduction, "02": Expenditure Proof, "03": Voluntary
authTypeString1ByteAuth Type
"1": Card No, "3": Mobile No, "4": Biz No
authValueString20ByteIdentity Data (Numbers only)
Fixed at "0100001234" for Voluntary Issuance.

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": "11", // Credit Card
"currency": "00",
"clientTypeCode": "00",
"returnUrl": "{Merchant Return URL}",
"deviceTypeCode": "mobile",
"orderInfo": {
"goodsName": "Sample Product Name"
},
"payMethodInfo": {
"cardMethodInfo": {
"usedSpayCode": ["CRD"], // Credit Card
"installmentMonthList": [0],
"cardInfoList": [
{
"cardCd": "026", // Card Company Code
"cardPoint": "60"
}
],
}
}
}

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}"
}