Skip to main content

Create Transaction

This API registers order information to invoke the payment screen and receives the Payment Window URL in the response.

Request​

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

Supports API Idempotency (See API Idempotency)

Parameters​

Field NameTypeLengthRequiredDescription
mallIdString8Byte✅Merchant ID assigned by KICC
shopTransactionIdString60Byte✅Merchant Transaction ID (API Idempotency Key)
shopOrderNoString40Byte✅Merchant Order No. Must be Unique.
goodsNameString100Byte✅Product Name (English Only)
goodsDetailString1000Byte✅Product Detail (English Only)
returnUrlString256Byte✅URL to redirect to after authentication completes
walletBrandNameString20Byte✅Alipay Wallet Name
Integrated (Alipay+): “CONNECT_WALLET”
Specific: ALIPAY_CN, ALIPAY_HK, etc.
terminalTypeString3Byte✅Terminal Type
“APP”, “WEB”, “WAP”
osTypeString7Byte✅OS Type (“IOS”, “ANDROID”)
Required if terminalType is APP/WAP
notifyUrlString256ByteWebhook URL for Payment Completion
Must whitelist KICC IPs (Inbound)
amountInfoObject✅Payment Amount Info (See amountInfo below)
customerInfoObjectCustomer Info (See customerInfo below)

amountInfo (Payment Amount Info)​

Field NameTypeLengthRequiredDescription
currencyString3Byte✅Currency Code (KRW: "KRW", USD: "USD")
totalAmountNumber✅Total Payment Amount
For USD: Amount * 100 (e.g., $12.03 -> 1203)

customerInfo (Customer Information)​

Field NameTypeLengthRequiredDescription
customerIdString20ByteCustomer ID
customerNameString20ByteCustomer Name
customerMailString50ByteCustomer Email
customerContactNoString11ByteCustomer Contact No. (Numbers only)
customerAddrString200ByteCustomer Address
Request Example
{
"mallId": "{Merchant ID}",
"shopTransactionId": "{API Idempotency Key}",
"shopOrderNo": "{Merchant Order No}",
"goodsName": "Sample Product",
"goodsDetail": "Sample Details",
"returnUrl": "{Merchant Return URL}",
"walletBrandName": "CONNECT_WALLET",
"terminalType": "WEB",
"osType": "IOS",
"notifyUrl": "{Webhook URL}",
"amountInfo": {
"currency": "KRW",
"totalAmount": 1000
},
"customerInfo": {
"customerId": "User123",
"customerName": "John Doe",
"customerMail": "test@email.com",
"customerContactNo": "01012345678",
"customerAddr": "Seoul, Korea"
}
}

Response​

Parameters​

Field NameTypeLengthRequiredDescription
resCdString4Byte✅Response Code (Success: “0000”)
resMsgString1000Byte✅Response Message
shopTransactionIdString60Byte✅Returns the value sent in the request
pgCnoString20BytePG Transaction ID
paymentPageUrlString2048BytePayment Window URL (Redirect user here)
normalUrlString2048Byte(Reserved)
schemeUrlString2048Byte(Reserved)
appLinkUrlString2048Byte(Reserved)
Response Example
{
"resCd": "0000",
"resMsg": "Success",
"shopTransactionId": "{API Idempotency Key}",
"pgCno": "{PG Transaction ID}",
"paymentPageUrl": "{Payment Window URL}"
}

Alipay Wallet Names (walletBrandName)​

Integrated Payment (Alipay+) is a service that provides access to all wallets available in the standard payment system.

TypeWallet NameDescription
Integrated (Alipay+)CONNECT_WALLETUnified Wallet provided by Alipay
Specific WalletALIPAY_CNAlipay (China)
ALIPAY_HKAlipay (Hong Kong)
TRUEMONEYTrueMoney (Thailand)
TNGTouch 'n Go (Malaysia)
GCASHGCash (Philippines)
DANADANA (Indonesia)
KAKAOPAYKakaoPay (Korea)