Create collection order
curl --request POST \
--url https://uat-interface.haipay.asia/global/cashier/collect/apply \
--header 'Content-Type: application/json' \
--data '
{
"appId": 123,
"orderId": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"amount": "<string>",
"currency": "<string>",
"callBackUrl": "<string>",
"callBackFailUrl": "<string>",
"subject": "<string>",
"region": "<string>",
"partnerUserId": "<string>",
"sign": "<string>",
"notifyUrl": "<string>",
"body": "<string>"
}
'{
"status": "1",
"error": "00000000",
"msg": "",
"data": {}
}Business ID (retrieved from the backend; must use the Cashier-specific APPID, currency is CASHIER)
Merchant order ID
48User full name (recommended to use real name). Format: firstName + lastName, separated by a space, e.g., Donald John Trump
Valid email address
Transaction amount (accurate to two decimals; do not use punctuation symbols such as “,”)
^\d+\.\d{2}$Transaction currency. Supported: USD (minimum 0.99 USD). For other currencies, see Region Codes.
3Redirect URL after successful payment
Redirect URL after failed payment
Payment note (transaction title, product name, reason for payment, etc.)
use 2-letter code
2Unique user identifier (e.g., userId), used for risk control. Must be real/valid, otherwise it may affect transactions. Allowed format: numbers, letters, or symbols -~!@#$%&*()_.
^[A-Za-z0-9\-~!@#$%&*()_]+$Signature
Callback URL
Detailed remarks
curl --request POST \
--url https://uat-interface.haipay.asia/global/cashier/collect/apply \
--header 'Content-Type: application/json' \
--data '
{
"appId": 123,
"orderId": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"amount": "<string>",
"currency": "<string>",
"callBackUrl": "<string>",
"callBackFailUrl": "<string>",
"subject": "<string>",
"region": "<string>",
"partnerUserId": "<string>",
"sign": "<string>",
"notifyUrl": "<string>",
"body": "<string>"
}
'{
"status": "1",
"error": "00000000",
"msg": "",
"data": {}
}