Create collection order
curl --request POST \
--url https://uat-interface.haipay.asia/idr/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>",
"partnerUserId": "<string>",
"sign": "<string>",
"notifyUrl": "<string>",
"currency": "IDR",
"subject": "<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 (retrieved from the backend; must pass the corresponding ID for the currency in the URL)
Merchant order ID
48Payer's name (Payer's name format: 1-30 characters, English or Indonesian letters (case-insensitive), follows "firstName middleName lastName" structure (middleName optional), allows spaces and special characters !-))
1 - 30^[A-Za-z\u0000-\u007F\s!-]+$Valid phone number
^08[0-9]{8,11}$Valid email
Transaction amount (unit: IDR)
^[0-9]+$Redirect URL after successful payment
Redirect URL after failed payment
Unique user identifier (e.g., userId). Required for risk control system. Must be valid, otherwise transactions may be affected. Format: numbers, letters, or common symbols -~!@#$%&*()_.
^[A-Za-z0-9\-~!@#$%&*()_]+$Signature
Callback URL
Currency (default: IDR)
Payment remark (transaction title, product name, payment reason)
Remark details
curl --request POST \
--url https://uat-interface.haipay.asia/idr/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>",
"partnerUserId": "<string>",
"sign": "<string>",
"notifyUrl": "<string>",
"currency": "IDR",
"subject": "<string>",
"body": "<string>"
}
'{
"status": "<string>",
"error": "<string>",
"msg": "<string>",
"data": {
"orderId": "<string>",
"orderNo": "<string>",
"payUrl": "<string>",
"bankNo": "<string>",
"bankCode": "<string>",
"qrCode": "<string>",
"sign": "<string>"
}
}