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

Secret Key & Private Key (Generate Signature)

Body

application/json
appId
integer
required

Business ID (obtained from backend, must pass corresponding business ID based on currency in URL)

orderId
string
required

Merchant refund application order number

name
string
required

User name, recommended to use real name, format: firstName and lastName separated by space, example: Donald John Trump

phone
string
required

Real phone number

email
string
required

Real email address

amount
string
required

Transaction amount (accurate to two decimal places; do not add punctuation, e.g., ",")

payType
string
required
inBankCode
string
required
callBackUrl
string
required

URL to redirect after successful payment

callBackFailUrl
string
required

URL to redirect after failed payment

subject
string
required

Payment remark

partnerUserId
string
required

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

sign
string
required

Signature

clientIp
string

Client IP address

notifyUrl
string

Callback URL

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