Skip to main content

Open Registration Window

Transaction Registration (Request Window URL)

To open the registration screen, you must first register the customer information and receive the Billing Key Registration Window URL as a response.

The flow is as follows:

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. Fixed at 0.
payMethodTypeCodeString2ByteFixed at "81" for Recurring Payment.
currencyString2ByteCurrency Code (KRW: “00”)
returnUrlString256ByteURL to redirect to after authentication completes.
deviceTypeCodeString20ByteClient Device Type
PC: “pc”, Mobile: “mobile”
clientTypeCodeString2ByteWindow Type Code (Fixed at "00" for Integrated)
langFlagString3ByteKOR: Korean, ENG: English, JPN: Japanese, CHN: Chinese
orderInfoObjectOrder Info (See orderInfo below)
payMethodInfoObjectPayment Method Info (See payMethodInfo below)
shopValueInfoObjectMerchant Custom Fields (Do not include PII/Sensitive Data)
orderInfo (Order Information)
Field NameTypeLengthRequiredDescription
goodsNameString50ByteProduct Name
goodsTypeCodeString1ByteProduct Type Code
Physical: "0", Digital/Content: "1"
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 Info)
Field NameTypeLengthRequiredDescription
billKeyMethodInfoObjectInput Option Info (See billKeyMethodInfo below)
payMethodInfo > billKeyMethodInfo (Input Option Info)
Field NameTypeLengthRequiredDescription
certTypeString1ByteCredit Card Auth Type (Determines displayed fields)
"0": Card No, Expiry, DOB, Password
"1": Card No, Expiry, DOB
"2": Card No, Expiry
shopValueInfo (Merchant Custom Fields)
Field NameTypeLengthRequiredDescription
value1String64ByteField 1
value2String64ByteField 2
value3String32ByteField 3
value4String32ByteField 4
value5String64ByteField 5
value6String64ByteField 6
value7String64ByteField 7
Request Example
{  
"mallId": "T5102001",
"shopOrderNo": "{Merchant Order No}",
"amount": 0,
"payMethodTypeCode": "81",
"currency": "00",
"clientTypeCode": "00",
"returnUrl": "{Merchant Return URL}",
"deviceTypeCode": "mobile",
"orderInfo": {
"goodsName": "Sample Product Name"
}
}

Response

Parameters

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

Handle Registration Result (Return URL)

After authentication is complete, the result is sent to the merchant's returnUrl via POST.

Request (Incoming to Merchant)

Incoming Request
POST {Merchant Return URL}
Content-type: application/x-www-form-urlencoded

Parameters (Response Data)

Field NameTypeLengthRequiredDescription
resCdString4ByteResponse Code (Success: “0000”)
resMsgString1000ByteResponse Message
shopOrderNoString40ByteMerchant Order No. Returns the value sent during registration.
authorizationIdString60ByteAuthorization ID. (Required for Billing Key Issuance API)
shopValue1String64ByteField 1, Returns the value sent during registration
shopValue2String64ByteField 2, Returns the value sent during registration
shopValue3String32ByteField 3, Returns the value sent during registration
shopValue4String32ByteField 4, Returns the value sent during registration
shopValue5String64ByteField 5, Returns the value sent during registration
shopValue6String64ByteField 6, Returns the value sent during registration
shopValue7String64ByteField 7, Returns the value sent during registration