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
mallIdString8ByteMerchant ID assigned by KICC
shopTransactionIdString60ByteMerchant Transaction ID (API Idempotency Key)
shopOrderNoString40ByteMerchant Order No. Must be Unique.
goodsNameString100ByteProduct Name (English Only)
goodsDetailString1000ByteProduct Detail (English Only)
returnUrlString256ByteURL to redirect to after authentication completes
walletBrandNameString20ByteAlipay Wallet Name
Integrated (Alipay+): “CONNECT_WALLET”
Specific: ALIPAY_CN, ALIPAY_HK, etc.
terminalTypeString3ByteTerminal Type
“APP”, “WEB”, “WAP”
osTypeString7ByteOS Type (“IOS”, “ANDROID”)
Required if terminalType is APP/WAP
notifyUrlString256ByteWebhook URL for Payment Completion
Must whitelist KICC IPs (Inbound)
amountInfoObjectPayment Amount Info (See amountInfo below)
customerInfoObjectCustomer Info (See customerInfo below)

amountInfo (Payment Amount Info)

Field NameTypeLengthRequiredDescription
currencyString3ByteCurrency Code (KRW: "KRW", USD: "USD")
totalAmountNumberTotal 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
resCdString4ByteResponse Code (Success: “0000”)
resMsgString1000ByteResponse Message
shopTransactionIdString60ByteReturns 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)