Skip to main content

Payment Completion Notification (Webhook)

You can receive the payment completion result at the notifyUrl specified during transaction creation. Your server must be implemented to handle this notification as described below.

Retry Policy & Fallback
  • Retry Schedule: If KICC does not receive a success response (Ack) from your server, the notification will be resent at the following intervals:
    • 2 min, 10 min, 1 hr, 2 hrs, 6 hrs, 15 hrs, then every 24 hrs.
    • Note: This schedule is subject to change based on Alipay's policies.
  • Fallback: If you do not receive a notification for a certain period, please use the Check Payment Status API to verify the transaction status.
Critical Requirements
  • Registration: You must inform your KICC sales representative of your notifyUrl before launching the service.
  • Integrity Check: If the amount in the notification differs from your internal order amount, you MUST cancel the transaction immediately.
  • DB Failure: If you fail to update your database after receiving the notification, you MUST cancel the transaction.
  • Timeout: Your server must respond to the notification within 30 seconds.

Firewall Settings​

Please configure your server's firewall to allow inbound traffic from the following IPs.

EnvironmentSource IPDescription
Production203.233.74.25INBOUND
Development203.233.74.22INBOUND

Integration Guide​

HTTP Header​

The notification is sent as a POST request with the following header.

Header Info
POST https://{Your notifyUrl}
Content-type: application/json; charset=utf-8

HTTP Body (Incoming Request)​

Field NameTypeLengthRequiredDescription
resCdString4Byte✅Result Code (Success: "0000")
resMsgString1000Byte✅Result Message
mallIdString8ByteMerchant ID assigned by KICC
shopOrderNoString40ByteMerchant Order No.
pgCnoString20BytePG Transaction ID
approvalDateString14ByteApproval Date/Time (yyyyMMddHHmmss)
walletBrandNameString20ByteAlipay Wallet Name (e.g., CONNECT_WALLET)
amountInfoObjectPayment Amount Info (See amountInfo below)

amountInfo (Payment Amount Info)​

Field NameTypeLengthRequiredDescription
currencyString2Byte✅Currency Code
amountNumber✅Payment Amount

Response Requirement (Ack)​

Your server must respond with a JSON object containing the result of your internal processing.

Field NameTypeLengthRequiredDescription
resCdString4Byte✅Response Code (Success: "0000")
resMsgString1000Byte✅Response Message (Failure reason if applicable)
pgCnoString20Byte✅PG Transaction ID (Echo back the received value)
Response Example
{  
// If processed successfully
"resCd": "0000",
"resMsg": "Success",
"pgCno": "{Received PG Transaction ID}"

// If internal processing failed
"resCd": "5001",
"resMsg": "Internal DB Error",
"pgCno": "{Received PG Transaction ID}"
}