Use the appId corresponding to THB. After successful user payment, the THB balance will be increased.
curl --request POST \
--url https://uat-interface.haipay.asia/thb/collect/apply \
--header 'Content-Type: application/json' \
--data '
{
"appId": 123,
"orderId": "<string>",
"name": "<string>",
"phone": "<string>",
"email": "jsmith@example.com",
"amount": "<string>",
"payType": "<string>",
"inBankCode": "<string>",
"callBackUrl": "<string>",
"callBackFailUrl": "<string>",
"subject": "<string>",
"partnerUserId": "<string>",
"sign": "<string>",
"notifyUrl": "<string>",
"body": "<string>"
}
'{
"status": "<string>",
"error": "<string>",
"msg": "<string>",
"data": {
"orderId": "<string>",
"orderNo": "<string>",
"payUrl": "<string>",
"bankNo": "<string>",
"bankCode": "<string>",
"qrCode": "<string>",
"sign": "<string>"
}
}Business ID (obtained from backend, must pass the corresponding business ID according to the currency in the URL)
Merchant order number
48Payee name (format: English letters with spaces allowed, 1–30 characters, "firstName middleName lastName" (middleName is optional, special characters allowed: !-))
1 - 30^[A-Za-z\s!-]+$Real mobile number (Format: starting with 0, 10 digits total)
Real email
Transaction amount (unit: ฿, precise to two decimal places; punctuation such as “,” is prohibited)
^\d+\.\d{2}$Transaction type
Redirect URL after successful payment
Redirect URL after failed payment
Payment note (transaction title, product name, payment reason)
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
Detailed note
curl --request POST \
--url https://uat-interface.haipay.asia/thb/collect/apply \
--header 'Content-Type: application/json' \
--data '
{
"appId": 123,
"orderId": "<string>",
"name": "<string>",
"phone": "<string>",
"email": "jsmith@example.com",
"amount": "<string>",
"payType": "<string>",
"inBankCode": "<string>",
"callBackUrl": "<string>",
"callBackFailUrl": "<string>",
"subject": "<string>",
"partnerUserId": "<string>",
"sign": "<string>",
"notifyUrl": "<string>",
"body": "<string>"
}
'{
"status": "<string>",
"error": "<string>",
"msg": "<string>",
"data": {
"orderId": "<string>",
"orderNo": "<string>",
"payUrl": "<string>",
"bankNo": "<string>",
"bankCode": "<string>",
"qrCode": "<string>",
"sign": "<string>"
}
}