Create collection order
curl --request POST \
--url https://uat-interface.haipay.asia/usd/collect/apply \
--header 'Content-Type: application/json' \
--data '
{
"appId": 123,
"orderId": "<string>",
"name": "<string>",
"phone": "<string>",
"email": "<string>",
"amount": "<string>",
"payType": "<string>",
"inBankCode": "<string>",
"callBackUrl": "<string>",
"callBackFailUrl": "<string>",
"subject": "<string>",
"partnerUserId": "<string>",
"sign": "<string>",
"clientIp": "<string>",
"notifyUrl": "<string>",
"body": "<string>"
}
'{
"status": "<string>",
"error": "<string>",
"msg": "<string>",
"data": {
"orderId": "<string>",
"orderNo": "<string>",
"payUrl": "<string>",
"bankCode": "<string>",
"clientToken": "<string>",
"sign": "<string>"
}
}Business ID (obtained from backend, must pass corresponding business ID based on currency in URL)
Merchant refund application order number
User name, recommended to use real name, format: firstName and lastName separated by space, example: Donald John Trump
Real phone number
Real email address
Transaction amount (accurate to two decimal places; do not add punctuation, e.g., ",")
URL to redirect after successful payment
URL to redirect after failed payment
Payment remark
Unique user identifier (e.g., userId), used for risk control, must be real and valid, otherwise it will affect transactions. Format requirements: digits, uppercase and lowercase letters or common symbols -~!@#$%&*()_.
Signature
Client IP address
Callback URL
Remark details
curl --request POST \
--url https://uat-interface.haipay.asia/usd/collect/apply \
--header 'Content-Type: application/json' \
--data '
{
"appId": 123,
"orderId": "<string>",
"name": "<string>",
"phone": "<string>",
"email": "<string>",
"amount": "<string>",
"payType": "<string>",
"inBankCode": "<string>",
"callBackUrl": "<string>",
"callBackFailUrl": "<string>",
"subject": "<string>",
"partnerUserId": "<string>",
"sign": "<string>",
"clientIp": "<string>",
"notifyUrl": "<string>",
"body": "<string>"
}
'{
"status": "<string>",
"error": "<string>",
"msg": "<string>",
"data": {
"orderId": "<string>",
"orderNo": "<string>",
"payUrl": "<string>",
"bankCode": "<string>",
"clientToken": "<string>",
"sign": "<string>"
}
}