Skip to main content
POST
/
idr
/
collect
/
apply
IDR Collection Application
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>"
  }
}

Secret Key & Private Key (Generate Signature)

Body

application/json
appId
integer
required

Business ID (retrieved from the backend; must pass the corresponding ID for the currency in the URL)

orderId
string
required

Merchant order ID

Maximum string length: 48
name
string
required

Payer'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 !-))

Required string length: 1 - 30
Pattern: ^[A-Za-z\u0000-\u007F\s!-]+$
phone
string
required

Valid phone number

Pattern: ^08[0-9]{8,11}$
email
string<email>
required

Valid email

amount
string
required

Transaction amount (unit: IDR)

Pattern: ^[0-9]+$
payType
string
required
inBankCode
string
required
callBackUrl
string<uri>
required

Redirect URL after successful payment

callBackFailUrl
string<uri>
required

Redirect URL after failed payment

partnerUserId
string
required

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 -~!@#$%&*()_.

Pattern: ^[A-Za-z0-9\-~!@#$%&*()_]+$
sign
string
required

Signature

notifyUrl
string<uri>

Callback URL

currency
string
default:IDR

Currency (default: IDR)

subject
string

Payment remark (transaction title, product name, payment reason)

body
string

Remark details

Response

200 - application/json
status
string

1: Normal, 0: Exception

error
string

Error code

msg
string

Error description

data
object
Last modified on April 10, 2026