Skip to main content

Payment Approval

This API requests the final payment approval using the information such as tokens obtained during the simple payment authentication stage.

Critical Implementation Guidelines
  • Network Error/Timeout: If you do not receive a response due to a Read Timeout or Network Error, the transaction might have actually been approved. In such cases, you MUST call the Net-Cancel API to ensure data consistency.
  • Amount Mismatch: If the approved amount in the response differs from the merchant's requested amount, you MUST initiate a cancellation.
  • Internal Process Failure: If your internal database fails to process the result after a successful approval, you MUST cancel the transaction.

Request

Request URL
POST https://{API Domain}/smpy/kiccpay/reqAprv
Content-type: application/json; charset=utf-8
Caution

The final approval process may take time. Please set your client's network timeout to 30 seconds.

Parameters

Field NameTypeLengthRequiredDescription
tidString10ByteKICC Terminal ID
svcIdString10ByteKICC Simple Payment Service ID
bizrNoString10ByteMerchant Business Registration Number
mercTrxNoString40ByteMerchant Transaction Number (20Byte recommended)
tokenKeyString128ByteToken data received after authentication. Must encrypt the authorizationId (received in the auth response) using AES256.
alotMonthString2ByteInstallment Period (Default: "00" - Lump-sum)
trxAmtNumberTotal Payment Amount
vatAmtNumberVAT (Can be omitted if the total amount includes VAT)
svcAmtNumberService Charge
taxFreeAmtNumberTax-free Amount
tranDtString8ByteMerchant Transmission Date (yyyyMMdd)
tranTmString6ByteMerchant Transmission Time (HH24MISS)
userDataString512ByteMerchant Custom Data (Echo field)
Request Example
{
"tid": "T123456789",
"svcId": "SVC_SIMPLE",
"bizrNo": "1234567890",
"mercTrxNo": "ORD_20231225_0001",
"tokenKey": "TOKEN_ABC123XYZ...",
"alotMonth": "00",
"trxAmt": 10000,
"vatAmt": 909,
"svcAmt": 0,
"taxFreeAmt": 0,
"tranDt": "20231225",
"tranTm": "120000",
"userData": "User_001"
}

Response

Parameters

Field NameTypeLengthRequiredDescription
respCdString4ByteResult Code (Success: “0000”)
respMsgString128ByteResult Message
tidString10ByteKICC Terminal ID sent in request
svcIdString10ByteService ID sent in request
bizrNoString10ByteMerchant Business Registration Number
mercTrxNoString20ByteMerchant Transaction Number
trxDtString8ByteVAN Processing Request Date
trxTmString6ByteVAN Processing Request Time
issFmCdString4ByteIssuer Code (Refer to Card Codes)
issFmNmString20ByteIssuer Name
purchFmCdString4ByteAcquirer Code (Refer to Card Codes)
purchFmNmString20ByteAcquirer Name
joShopNoString15ByteCard Issuer Merchant Number
aprvDtString8ByteCard Issuer Approval Date (yyyyMMdd)
aprvTmString6ByteCard Issuer Approval Time (HH24MISS)
aprvNoString10ByteCredit Approval Number
vanTrxNoString12ByteVAN Unique Transaction Number
cardConfirmNoString40ByteMasked Card Number
Response Example
{
"respCd": "0000",
"respMsg": "Approval Success",
"tid": "T123456789",
"svcId": "SVC_SIMPLE",
"bizrNo": "1234567890",
"mercTrxNo": "ORD_20231225_0001",
"trxDt": "20231225",
"trxTm": "120001",
"issFmCd": "06",
"issFmNm": "KB Kookmin Card",
"purchFmCd": "06",
"purchFmNm": "KB Kookmin Card",
"joShopNo": "1234567890",
"aprvDt": "20231225",
"aprvTm": "120002",
"aprvNo": "12345678",
"vanTrxNo": "V12345678901",
"cardConfirmNo": "1234-56**-****-1234"
}