curl --request POST \
--url https://uat-interface.haipay.asia/idr/pay/apply \
--header 'Content-Type: application/json' \
--data '
{
"appId": 123,
"orderId": "<string>",
"amount": "<string>",
"accountType": "<string>",
"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 (retrieved from the backend; must pass the corresponding ID for the currency in the URL)
Merchant order ID (must be unique, max length 48)
48Transaction amount (unit: IDR)
Account type: BANK_ACCOUNT, EWALLET
User bank account number
Recipient name (format: English or Indonesian letters, case-insensitive, spaces allowed, 1-30 characters, "firstName middleName lastName" (middleName is optional), special characters allowed: '.-))
1 - 30^[A-Za-z\s\'\-\.]+$Valid phone number
Valid email
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
Payment remark (transaction title, product name, payment reason)
Remark details
curl --request POST \
--url https://uat-interface.haipay.asia/idr/pay/apply \
--header 'Content-Type: application/json' \
--data '
{
"appId": 123,
"orderId": "<string>",
"amount": "<string>",
"accountType": "<string>",
"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>"
}
}