Skip to main content

Transaction Registration

This API registers order information to invoke the authentication screen and returns the Authentication Window URL in the response.

info
  • This API is provided for PG payment services.

Request

Request URL
POST https://{API Domain}/easypay/auth/paymentAuthReg.do
Content-type: application/json; charset=euc-kr
Note

Supports API Idempotency (See API Idempotency)

Parameters

Field NameTypeLengthRequiredDescription
mallIdString8ByteMerchant ID assigned by KICC
customerKeyString60ByteSimple Payment User Unique Key
easypayVirtualNoString60BytePayment Method Virtual Number selected by customer
payMethodTypeCodeString2BytePayment Method Code (See PayMethod Code)
payMethodDetailCodeString3BytePayment Method Detail Code (See Card Code)
shopTransactionIdString60ByteMerchant Transaction ID (API Idempotency Key)
shopOrderNoString40ByteMerchant Order No.
currencyString2ByteCurrency Code (KRW: “00”)
amountNumberPayment Request Amount
comTaxAmtNumberTaxable Amount
comFreeAmtNumberTax-free Amount
comVatAmtNumberVAT Amount
goodsNameString100ByteProduct Name
Merchants using UTF-8 must URL Encode this value
installmentMonthNumberInstallment Months (Card Only) Required for Credit Card
isFreeInstallmentBooleanInterest-free Y/N (Card Only) Required for Credit Card
isCardPointUsageCheckBooleanPoint Usage Y/N (Card Only) Required for Credit Card
joinCdString4ByteAffiliate Service Code (Only for specific merchants)
userEmailString50ByteUser Email (Sent upon approval/cancellation)
returnUrlString256ByteMerchant Return URL after auth (Redirects here, HTTPS Only)
msgAuthValueString200ByteMessage Integrity Verification Value (See Message Authentication)
Contact sales for Secret Key
cashReceiptInfoObjectCash Receipt Info (See cashReceiptInfo below)
depositListArrayResource Circulation Deposit List (See depositList below)
shopParameterString4000ByteMerchant Custom Data (Reserved Field)
Do not include personal information.

cashReceiptInfo (Cash Receipt Information)

Field NameTypeLengthRequiredDescription
usageString2ByteUsage Type
Income Deduction: "01", Expenditure Proof: "02"
issuingMethodString1ByteIssuing Method
Card: "1", Phone No: "3", Biz No: "4"
issuingValueString256ByteValue for issuance.
Must be SEED Encrypted and sent as HexString.

depositList (Resource Circulation Deposit List)

Field NameTypeLengthRequiredDescription
dpsTypeString1ByteDeposit Type (Cup Deposit: “C”)
dpsAmountNumberDeposit Amount (Total amount per type)
Request Example
{  
"mallId": "{Merchant ID}",
"customerKey": "{Simple Payment User Unique Key}",
"easypayVirtualNo": "{Virtual Number selected by customer}",
"payMethodTypeCode": "11",
"payMethodDetailCode": "026",
"shopTransactionId": "{API Idempotency Key}",
"shopOrderNo": "{Merchant Order No}",
"currency": "00",
"amount": 1000,
"goodsName": "Sample Product",
"installmentMonth": 0,
"isFreeInstallment": false,
"isCardPointUsageCheck": false,
"userEmail": "{User Email}",
"returnUrl": "{Merchant Return URL}",
"msgAuthValue": "{Message Auth Value}"
}

Response

Parameters

Field NameTypeLengthRequiredDescription
resCdString4ByteResult Code (Success: “0000”)
resMsgString1000ByteResult Message
shopTransactionIdString60ByteReturns the value sent in the request
authPageUrlString256ByteAuthentication Window URL (URL Encoded)
Response Example
{
"resCd": "0000",
"resMsg": "Success",
"shopTransactionId": "{API Idempotency Key}",
"authPageUrl": "{Authentication Window URL}"
}

Message Authentication Value

The Message Authentication Value is constructed by combining the fields below and hashing the result using HmacSHA256. (See Message Authentication)

customerKey + “|” + shopTransactionId + “|” + payMethodDetailCode + “|” + easypayVirtualNo + “|” + amount