curl --request POST \
--url https://uat-interface.haipay.asia/thb/pay/apply \
--header 'Content-Type: application/json' \
--data '
{
"appId": 123,
"orderId": "<string>",
"amount": "<string>",
"accountType": "EWALLET",
"bankCode": "<string>",
"accountNo": "<string>",
"name": "<string>",
"phone": "<string>",
"email": "jsmith@example.com",
"partnerUserId": "<string>",
"sign": "<string>",
"notifyUrl": "<string>",
"subject": "<string>",
"body": "<string>"
}
'{
"status": "<string>",
"error": "<string>",
"msg": "<string>",
"data": {
"orderId": "<string>",
"orderNo": "<string>",
"sign": "<string>"
}
}Business ID (obtained from backend, must pass the corresponding business ID according to the currency in the URL)
Merchant order number
48Transaction amount (unit: ฿, precise to two decimal places; punctuation such as “,” is prohibited)
^\d+\.\d{2}$Account type: EWALLET (e-wallet), BANK_ACCOUNT (bank)
EWALLET, BANK_ACCOUNT User account
Beneficiary name (Format: English letters, case-sensitive, spaces allowed, 1-30 characters, "firstName middleName lastName" (middleName optional, supports special characters '.-))
1 - 30^[A-Za-z\s'.-]+$Real mobile number (Format: starting with 0, 10 digits total)
^0\d{9}$Real email
User unique identifier (e.g., userId). Used for risk control. Must be valid, otherwise transaction may be affected. Format: numbers, letters, or common symbols -~!@#$%&*()_.
^[A-Za-z0-9\-~!@#$%&*()_]+$Signature
Callback URL
Payment note (transaction title, product name, payment reason)
Detailed note
curl --request POST \
--url https://uat-interface.haipay.asia/thb/pay/apply \
--header 'Content-Type: application/json' \
--data '
{
"appId": 123,
"orderId": "<string>",
"amount": "<string>",
"accountType": "EWALLET",
"bankCode": "<string>",
"accountNo": "<string>",
"name": "<string>",
"phone": "<string>",
"email": "jsmith@example.com",
"partnerUserId": "<string>",
"sign": "<string>",
"notifyUrl": "<string>",
"subject": "<string>",
"body": "<string>"
}
'{
"status": "<string>",
"error": "<string>",
"msg": "<string>",
"data": {
"orderId": "<string>",
"orderNo": "<string>",
"sign": "<string>"
}
}