Skip to main content
Before reading this API documentation, please make sure to check API Description Guide
If needed, you may contact HaiPay to unify all business key configuration information into one set.

Collection API

Collection Apply

Description:
  • Create a collection order
URL: /global/cashier/collect/apply Parameters:
Parameter NameRequiredTypeDescription
appIdYesLongBusiness ID (retrieved from the backend; must use the Cashier-specific APPID, currency = CASHIER)
orderIdYesStringMerchant order number (must be unique, max length 48)
nameYesStringUser full name (recommended to use real name). Format: firstName + lastName, separated by a space, e.g., Donald John Trump
emailYesStringValid email address
amountYesStringTransaction amount (accurate to two decimals; do not use punctuation symbols such as “,”)
currencyYesStringTransaction currency. Supported: USD (minimum 0.99 USD). For other currencies, see Region Codes.
callBackUrlYesStringRedirect URL after successful payment
callBackFailUrlYesStringRedirect URL after failed payment
notifyUrlNoStringCallback URL
subjectYesStringPayment note (transaction title, product name, reason for payment, etc.)
bodyNoStringDetailed remarks
regionYesStringRegion Code, use 2-letter code
partnerUserIdYesStringUnique user identifier (e.g., userId), used for risk control. Must be real/valid, otherwise it may affect transactions. Allowed format: numbers, letters, or symbols -~!@#$%&*()_.
signYesStringSignature
Response Data
Parameter NameTypeDescription
orderIdStringMerchant order ID
orderNoStringPlatform order ID
payUrlStringPayment URL
signStringSignature

Collection Query

Description:
  • Query collection order
URL: /global/cashier/collect/query Parameters:
Parameter NameRequiredTypeDescription
appIdYesLongBusiness ID (retrieved from the backend; must use the Cashier-specific APPID, currency = CASHIER)
orderIdYesStringMerchant order ID
orderNoYesStringPlatform order ID
signYesStringSignature
Response Data
Parameter NameTypeDescription
orderIdStringMerchant order ID
orderNoStringPlatform order ID
amountStringOrder amount
actualAmountStringActual received amount
feeStringTransaction fee
statusIntegerStatus (0 Not Started, 1 In Progress, 2 Success (final), 3 Failed (final), -1 Exception Pending Confirmation)
payTimeStringPayment success time (present when status=2, local time), format: yyyy-MM-dd HH:mm:ss
errorMsgStringFailure reason (present when status=3)
signStringSignature

Collection Query v2

Description:
  • Query collection order
URL: /global/cashier/collect/query/v2 Parameters:
Parameter NameRequiredTypeDescription
appIdYesLongBusiness ID (retrieved from the backend; must use the Cashier-specific APPID, currency is CASHIER)
orderIdYesStringMerchant order ID
orderNoYesStringPlatform order ID
signYesStringSignature
Response Data
Parameter NameTypeDescription
orderIdStringMerchant order ID
orderNoStringPlatform order ID
currencyStringCurrency (available after selecting a specific payment method)
amountStringOrder amount
actualAmountStringActual received amount
feeStringTransaction fee
statusIntegerStatus (0 Not Started, 1 In Progress, 2 Success (final), 3 Failed (final), -1 Exception Pending Confirmation)
payTimeStringPayment success time (present when status=2, local time), format: yyyy-MM-dd HH:mm:ss
errorMsgStringFailure reason (present when status=3)
originalCurrencyStringOriginal payment currency
floatExchangeRateStringExchange rate used in currency conversion
originalAmountStringOriginal payment amount
signStringSignature

Region Codes

CodeRegion NameSupported Currency
AEUnited Arab EmiratesAED
ATAustriaEUR
BEBelgiumEUR
BHBahrainBHD
BRBrazilBRL
EGEgyptEGP
GBUnited KingdomGBP
HKHong KongHKD, USD
IDIndonesiaIDR, USD
INIndiaINR
JPJapanJPY, USD
KRSouth KoreaKRW, USD
KWKuwaitKWD
MYMalaysiaMYR, USD
NLNetherlandsEUR
OMOmanOMR
PHPhilippinesPHP
PKPakistanPKR
PLPolandEUR
QAQatarQAR
SASaudi ArabiaSAR
SGSingaporeSGD, USD
THThailandTHB, USD
TRTürkiyeTRY
TWTaiwanTWD, USD
USUnited StatesUSD
VNVietnamVND, USD
ITItalyEUR
EUEuropean UnionEUR
Last modified on April 15, 2026