Skip to main content

Check Payment Status

This API is used to verify the payment status if you do not receive a payment completion notification within a certain timeframe.

Critical Integrity Checks
  • Amount Mismatch: If the payment amount in the approval result differs from your requested amount, you MUST cancel the transaction immediately.
  • DB Update Failure: If you fail to update your internal database after receiving a successful approval result, you MUST cancel the transaction.

Request​

Request URL
POST https://{API Domain}/api/trades/alipay/find
Content-type: application/json; charset=utf-8
Note

Supports API Idempotency (See API Idempotency)

Caution

Since retrieving the final status from the global network may take time, you must set the timeout to 30 seconds.

Parameters​

Field NameTypeLengthRequiredDescription
mallIdString8Byte✅Merchant ID assigned by KICC
shopTransactionIdString60Byte✅Merchant Transaction ID (API Idempotency Key)
pgCnoString60Byte✅PG Transaction ID (Received in Transaction Creation Response)
Request Example
{  
"mallId": "{Merchant ID}",
"shopTransactionId": "{API Idempotency Key}",
"pgCno": "{PG Transaction ID}"
}

Response​

Parameters​

Field NameTypeLengthRequiredDescription
resCdString4Byte✅Response Code
resMsgString1000Byte✅Response Message
shopTransactionIdString60Byte✅Returns the value sent in the request
mallIdString8ByteMerchant ID assigned by KICC
approvalDateString14ByteAlipay Approval Date/Time (yyyyMMddHHmmss)
statusCdString4ByteTransaction Status
Approved: “TS01”
Full Cancel: “TS02”
Partial Cancel: “TS06”
Network Cancel (Void): “TS12”
walletBrandNameString20ByteName of the Alipay wallet actually used by the customer
amountInfoObjectPayment Amount Info (See amountInfo below)
exchangeCurrencyInfoObjectExchange Rate Info (See exchangeCurrencyInfo below)

amountInfo (Payment Amount Info)​

Field NameTypeLengthRequiredDescription
currencyString2Byte✅Currency Code
totAmountNumber✅Total Payment Amount

exchangeCurrencyInfo (Exchange Rate Info)​

Field NameTypeLengthRequiredDescription
baseCurrencyString3ByteBase Currency Code
exchangeCurrencyString3ByteExchange Currency Code
exchangeCurrencyRateString16ByteBase Exchange Rate
Response Example
{
"resCd": "0000",
"resMsg": "Success",
"shopTransactionId": "{API Idempotency Key}",
"mallId": "{Merchant ID}",
"approvalDate": "20230312000512",
"statusCd": "TS01",
"walletBrandName": "CONNECT_WALLET",
"amountInfo": {
"currency": "KRW",
"totAmount": 1000
}
}