Skip to main content
POST
/
usdc
/
collect
/
apply
USDC Collection Application
curl --request POST \
  --url https://uat-interface.haipay.asia/usdc/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>",
  "clientType": "APP",
  "currency": "<string>",
  "partnerUserId": "<string>",
  "sign": "<string>",
  "subject": "<string>",
  "body": "<string>",
  "notifyUrl": "<string>"
}
'
{
  "status": "1",
  "error": "00000000",
  "msg": "",
  "data": {}
}

Secret Key & Private Key (Generate Signature)

Body

application/json
appId
integer
required

Business ID (obtained in the backend; must correspond to the currency in the URL)

orderId
string
required

Merchant order number

Maximum string length: 48
name
string
required

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

phone
string
required

Real mobile number

email
string<email>
required

Real email address

amount
string
required

Transaction amount (prohibited to add punctuation marks such as ",") Range reference: 0.01-5000000

Pattern: ^\d+\.?\d{0,2}$
payType
string
required
inBankCode
string
required
callBackUrl
string<uri>
required

Redirect URL after successful payment

callBackFailUrl
string<uri>
required

Redirect URL after failed payment

clientType
enum<string>
required

APP, WEB, WAP, MINIAPP, OTHERS

Available options:
APP,
WEB,
WAP,
MINIAPP,
OTHERS
currency
string
required

Fiat currency. If no currency conversion is required, pass USDT/USDC

partnerUserId
string
required

Unique user identifier (e.g., userId), used for risk control system, must be valid, otherwise it will affect the transaction. Format: digits, letters, or symbols -~!@#$%&*()_.

Pattern: ^\d+$
sign
string
required

Signature

subject
string

Payment note (title, product name, reason)

body
string

Note details

notifyUrl
string<uri>

webhook URL

Response

200 - application/json
status
string
default:1

1: Normal, 0: Exception

error
string
default:00000000

Error code

msg
string
default:""

Error description

data
object
Last modified on April 10, 2026